Compare commits
4 Commits
v0.3.2
...
4f39308f13
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f39308f13 | |||
| 11786b7a06 | |||
| 7c18ddcc04 | |||
| e8303a9418 |
@@ -1,8 +1,3 @@
|
|||||||
# The following lines of boilerplate have to be in your project's CMakeLists
|
idf_component_register(SRCS_DIRS "."
|
||||||
# in this exact order for cmake to work correctly
|
INCLUDE_DIRS "."
|
||||||
cmake_minimum_required(VERSION 3.5)
|
REQUIRES unity relay_chn)
|
||||||
|
|
||||||
set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components"
|
|
||||||
"../../relay_chn")
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
||||||
project(relay_chn_test)
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
idf_component_register(SRCS_DIRS "."
|
|
||||||
PRIV_INCLUDE_DIRS "."
|
|
||||||
PRIV_REQUIRES unity test_utils relay_chn)
|
|
||||||
@@ -74,22 +74,4 @@ TEST_CASE("Relay channels do not change state for invalid channel", "[relay_chn]
|
|||||||
check_channels_state_unchanged();
|
check_channels_state_unchanged();
|
||||||
relay_chn_flip_direction(relay_chn_count + 1); // Flip the direction
|
relay_chn_flip_direction(relay_chn_count + 1); // Flip the direction
|
||||||
check_channels_state_unchanged();
|
check_channels_state_unchanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void setUp(void)
|
|
||||||
{
|
|
||||||
// Run before each test
|
|
||||||
}
|
|
||||||
|
|
||||||
void tearDown(void)
|
|
||||||
{
|
|
||||||
// Run after each test
|
|
||||||
}
|
|
||||||
|
|
||||||
// Test app entry point
|
|
||||||
void app_main(void)
|
|
||||||
{
|
|
||||||
// Run the Unity tests menu
|
|
||||||
unity_run_menu();
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user