Prepare unit tests for LEDs
parent
9226230fd5
commit
c377674aee
|
|
@ -1,2 +1,3 @@
|
||||||
add_subdirectory(buttons)
|
add_subdirectory(buttons)
|
||||||
|
add_subdirectory(leds)
|
||||||
add_subdirectory(protocol)
|
add_subdirectory(protocol)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
# define the test executable
|
||||||
|
add_executable(leds_tests ../../../../src/modules/leds.cpp test_leds.cpp)
|
||||||
|
|
||||||
|
# define required search paths
|
||||||
|
target_include_directories(
|
||||||
|
leds_tests PUBLIC ${CMAKE_SOURCE_DIR}/src/modules ${CMAKE_SOURCE_DIR}/src/hal
|
||||||
|
)
|
||||||
|
|
||||||
|
# tell build system about the test case
|
||||||
|
add_catch_test(leds_tests)
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include "catch2/catch.hpp"
|
||||||
|
#include "leds.h"
|
||||||
|
|
||||||
|
using Catch::Matchers::Equals;
|
||||||
|
|
||||||
|
TEST_CASE("leds::basic", "[leds]") {
|
||||||
|
using namespace modules::leds;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue