2024-07-25 00:21:29 +00:00
|
|
|
project(Tests)
|
|
|
|
|
|
|
|
# TEST_DIRS
|
|
|
|
#add_subdirectory(usart)
|
|
|
|
add_subdirectory(MockADC)
|
|
|
|
add_subdirectory(ADC)
|
|
|
|
add_subdirectory(MockRegEdit)
|
|
|
|
add_subdirectory(RegEdit)
|
|
|
|
add_subdirectory(simple_test)
|
|
|
|
add_subdirectory(zero_cross_detection)
|
|
|
|
add_subdirectory(TriacOut)
|
|
|
|
|
|
|
|
|
|
|
|
# TEST_RUNNER
|
|
|
|
add_executable(AllTests
|
|
|
|
AllTests.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(AllTests
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTest.a
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTestExt.a
|
|
|
|
# TEST_LINKS
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(TriacTests
|
|
|
|
TriacTests.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(TriacTests
|
2024-07-27 01:19:16 +00:00
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTest.a
|
|
|
|
${CPPUTEST_LIBRARIES}/libCppUTestExt.a
|
2024-07-25 00:21:29 +00:00
|
|
|
test_TriacOut
|
|
|
|
)
|