Changes in test/CMakeLists.txt [927:16d466589b54:959:17e36e175725] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r927 r959 7 7 ${PROJECT_BINARY_DIR}/lemon 8 8 ) 9 10 SET(TEST_WITH_VALGRIND "NO" CACHE STRING 11 "Run the test with valgrind (YES/NO).") 12 SET(VALGRIND_FLAGS "" CACHE STRING "Valgrind flags used by the tests.") 9 13 10 14 SET(TESTS … … 28 32 heap_test 29 33 kruskal_test 34 lgf_test 30 35 maps_test 31 36 matching_test … … 62 67 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) 63 68 ADD_TEST(lp_test lp_test) 69 ADD_DEPENDENCIES(check lp_test) 64 70 65 71 IF(WIN32 AND LEMON_HAVE_GLPK) … … 103 109 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) 104 110 ADD_TEST(mip_test mip_test) 111 ADD_DEPENDENCIES(check mip_test) 105 112 106 113 IF(WIN32 AND LEMON_HAVE_GLPK) … … 130 137 ENDIF() 131 138 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) 132 ADD_TEST(${TEST_NAME} ${TEST_NAME}) 139 IF(TEST_WITH_VALGRIND) 140 ADD_TEST(${TEST_NAME} 141 valgrind --error-exitcode=1 ${VALGRIND_FLAGS} 142 ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME} ) 143 ELSE() 144 ADD_TEST(${TEST_NAME} ${TEST_NAME}) 145 ENDIF() 133 146 ADD_DEPENDENCIES(check ${TEST_NAME}) 134 147 ENDFOREACH()
Note: See TracChangeset
for help on using the changeset viewer.