Add test for cycle methods

This commit is contained in:
Alexey Rybalchenko
2020-07-13 15:13:42 +02:00
parent a737a1de9c
commit c8d59d11fb
3 changed files with 96 additions and 4 deletions

View File

@@ -90,6 +90,8 @@ set_target_properties(FairLogger PROPERTIES
)
if(BUILD_TESTING)
add_executable(cycleTest test/cycle.cxx)
target_link_libraries(cycleTest FairLogger)
add_executable(loggerTest test/logger.cxx)
target_link_libraries(loggerTest FairLogger)
add_executable(macrosTest test/macros.cxx)
@@ -143,6 +145,7 @@ install_cmake_package()
# Testing ######################################################################
if(BUILD_TESTING)
add_test(NAME cycle COMMAND $<TARGET_FILE:cycleTest>)
add_test(NAME logger COMMAND $<TARGET_FILE:loggerTest>)
add_test(NAME macros COMMAND $<TARGET_FILE:macrosTest>)
add_test(NAME nolog COMMAND $<TARGET_FILE:nologTest>)