Skip to content

Commit c921099

Browse files
committed
tests: disabled testmain and testbench for automatic testing
Signed-off-by: Johannes Meyer <[email protected]>
1 parent d99f540 commit c921099

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/CMakeLists.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ endif()
77

88
if(BUILD_TESTING)
99
set(TESTS
10-
testmain
1110
testCategory testFixedContextCategory testNDC testPattern
1211
testErrorCollision testPriority testFilter testProperties
1312
testConfig testPropertyConfig testRollingFileAppender testDailyRollingFileAppender
@@ -28,19 +27,23 @@ if(BUILD_TESTING)
2827
${PROJECT_SOURCE_DIR}/src
2928
)
3029

30+
add_executable(testmain EXCLUDE_FROM_ALL testmain.cpp)
31+
target_link_libraries(testmain ${LOG4CPP_LIBRARY_NAME} -pthread)
32+
#add_test(NAME testmain COMMAND testmain)
33+
34+
add_executable(testbench EXCLUDE_FROM_ALL Clock.cpp Clock.hh testbench.cpp)
35+
target_link_libraries(testbench ${LOG4CPP_LIBRARY_NAME} -pthread)
36+
#add_test(NAME testbench COMMAND testbench)
37+
3138
foreach(test ${TESTS})
3239
add_executable(${test} EXCLUDE_FROM_ALL ${test}.cpp)
3340
target_link_libraries(${test} ${LOG4CPP_LIBRARY_NAME} -pthread)
3441
add_test(NAME ${test} COMMAND ${test})
3542
endforeach()
3643

37-
add_executable(testbench EXCLUDE_FROM_ALL Clock.cpp Clock.hh testbench.cpp)
38-
target_link_libraries(testbench ${LOG4CPP_LIBRARY_NAME} -pthread)
39-
add_test(NAME testbench COMMAND testbench)
40-
4144
add_custom_target(check
4245
COMMAND ctest -V
43-
DEPENDS ${TESTS} testbench
46+
DEPENDS ${TESTS}
4447
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
4548
)
4649

0 commit comments

Comments
 (0)