2024-07-27 18:59:09 +00:00
|
|
|
project(Tests)
|
|
|
|
|
|
|
|
# TEST_DIRS
|
2024-07-27 19:48:34 +00:00
|
|
|
add_subdirectory(Enable)
|
2024-07-27 18:59:09 +00:00
|
|
|
#add_subdirectory(usart)
|
|
|
|
add_subdirectory(MockADC)
|
|
|
|
add_subdirectory(ADC)
|
|
|
|
add_subdirectory(MockRegEdit)
|
|
|
|
add_subdirectory(RegEdit)
|
|
|
|
add_subdirectory(simple_test)
|
|
|
|
add_subdirectory(zero_cross_detection)
|
2024-09-14 20:05:27 +00:00
|
|
|
add_subdirectory(EnOut)
|
2024-07-29 00:01:54 +00:00
|
|
|
add_subdirectory(load)
|
2024-07-27 18:59:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
# TEST_RUNNER
|
|
|
|
add_executable(AllTests
|
|
|
|
AllTests.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(AllTests
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTest.a
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTestExt.a
|
|
|
|
# TEST_LINKS
|
2024-07-27 19:48:34 +00:00
|
|
|
test_Enable
|
2024-07-27 18:59:09 +00:00
|
|
|
test_ADC
|
|
|
|
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
|
|
|
|
test_MockADC
|
|
|
|
test_zero_cross_detection
|
2024-07-29 00:01:54 +00:00
|
|
|
test_load
|
2024-07-27 18:59:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2024-09-14 20:05:27 +00:00
|
|
|
add_executable(EnTests
|
|
|
|
EnTests.cpp
|
2024-07-27 18:59:09 +00:00
|
|
|
)
|
|
|
|
|
2024-09-14 20:05:27 +00:00
|
|
|
target_link_libraries(EnTests
|
2024-07-27 18:59:09 +00:00
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTest.a
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTestExt.a
|
2024-09-14 20:05:27 +00:00
|
|
|
test_EnOut
|
2024-07-27 18:59:09 +00:00
|
|
|
)
|