Compare commits
2 Commits
4f39308f13
...
v0.3.1
| Author | SHA1 | Date | |
|---|---|---|---|
| fb425edc4b | |||
| 805df016fe |
@@ -1,3 +1,8 @@
|
||||
idf_component_register(SRCS_DIRS "."
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES unity relay_chn)
|
||||
# The following lines of boilerplate have to be in your project's CMakeLists
|
||||
# in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
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)
|
||||
3
test/main/CMakeLists.txt
Normal file
3
test/main/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
idf_component_register(SRCS_DIRS "."
|
||||
PRIV_INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES unity test_utils relay_chn)
|
||||
@@ -74,4 +74,22 @@ TEST_CASE("Relay channels do not change state for invalid channel", "[relay_chn]
|
||||
check_channels_state_unchanged();
|
||||
relay_chn_flip_direction(relay_chn_count + 1); // Flip the direction
|
||||
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