Changeset 1038:a2d142bb5d3c in lemon-main for test
- Timestamp:
- 03/01/13 17:59:08 (12 years ago)
- Branch:
- default
- Parents:
- 1030:4936be66d2f5 (diff), 1037:d3dcc49e6403 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r1030 r1038 53 53 suurballe_test 54 54 time_measure_test 55 tsp_test 55 56 unionfind_test 56 57 ) -
test/CMakeLists.txt
r1035 r1038 8 8 ) 9 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.") 13 10 14 SET(TESTS 11 15 adaptors_test 16 arc_look_up_test 12 17 bellman_ford_test 13 18 bfs_test 19 bpgraph_test 14 20 circulation_test 15 21 connectivity_test … … 30 36 heap_test 31 37 kruskal_test 38 lgf_reader_writer_test 39 lgf_test 32 40 maps_test 33 41 matching_test … … 70 78 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) 71 79 ADD_TEST(lp_test lp_test) 80 ADD_DEPENDENCIES(check lp_test) 72 81 73 82 IF(WIN32 AND LEMON_HAVE_GLPK) … … 85 94 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 86 95 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD 87 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex 91.dll ${TARGET_PATH}96 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex.dll ${TARGET_PATH} 88 97 ) 89 98 ENDIF() … … 111 120 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) 112 121 ADD_TEST(mip_test mip_test) 122 ADD_DEPENDENCIES(check mip_test) 113 123 114 124 IF(WIN32 AND LEMON_HAVE_GLPK) … … 126 136 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 127 137 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD 128 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex 91.dll ${TARGET_PATH}138 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex.dll ${TARGET_PATH} 129 139 ) 130 140 ENDIF() … … 138 148 ENDIF() 139 149 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) 140 ADD_TEST(${TEST_NAME} ${TEST_NAME}) 150 IF(TEST_WITH_VALGRIND) 151 ADD_TEST(${TEST_NAME} 152 valgrind --error-exitcode=1 ${VALGRIND_FLAGS} 153 ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME} ) 154 ELSE() 155 ADD_TEST(${TEST_NAME} ${TEST_NAME}) 156 ENDIF() 141 157 ADD_DEPENDENCIES(check ${TEST_NAME}) 142 158 ENDFOREACH()
Note: See TracChangeset
for help on using the changeset viewer.