2024-08-02 19:57:48 +00:00
|
|
|
project(Tests)
|
|
|
|
|
|
|
|
# TEST_DIRS
|
2024-08-22 02:59:14 +00:00
|
|
|
add_subdirectory(LedController)
|
2024-08-22 03:06:20 +00:00
|
|
|
#add_subdirectory(timer)
|
2024-08-02 19:57:48 +00:00
|
|
|
#add_subdirectory(usart)
|
|
|
|
add_subdirectory(MockRegEdit)
|
|
|
|
add_subdirectory(RegEdit)
|
|
|
|
add_subdirectory(simple_test)
|
2024-08-02 20:02:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-02 19:57:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
# TEST_RUNNER
|
|
|
|
add_executable(AllTests
|
|
|
|
AllTests.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(AllTests
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTest.a
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTestExt.a
|
|
|
|
# TEST_LINKS
|
2024-08-22 02:59:14 +00:00
|
|
|
test_LedController
|
2024-08-22 03:06:20 +00:00
|
|
|
#test_timer
|
2024-08-02 19:57:48 +00:00
|
|
|
test_RegEdit
|
|
|
|
simple_test
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(Mock_Tests
|
|
|
|
MockTests.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(Mock_Tests
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTest.a
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTestExt.a
|
|
|
|
test_MockRegEdit
|
|
|
|
)
|