Changeset 627:20dac2104519 in lemon-main for test
- Timestamp:
- 04/28/09 14:51:34 (16 years ago)
- Branch:
- default
- Parents:
- 626:58357e986a08 (diff), 511:8a144437db7d (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
- Location:
- test
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r510 r627 1 1 INCLUDE_DIRECTORIES( 2 ${ CMAKE_SOURCE_DIR}2 ${PROJECT_SOURCE_DIR} 3 3 ${PROJECT_BINARY_DIR} 4 4 ) 5 5 6 LINK_DIRECTORIES(${ CMAKE_BINARY_DIR}/lemon)6 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) 7 7 8 8 SET(TESTS 9 adaptors_test 9 10 bfs_test 11 circulation_test 10 12 counter_test 11 13 dfs_test … … 13 15 dijkstra_test 14 16 dim_test 17 edge_set_test 15 18 error_test 19 euler_test 20 gomory_hu_test 16 21 graph_copy_test 17 22 graph_test 18 23 graph_utils_test 24 hao_orlin_test 19 25 heap_test 20 26 kruskal_test 21 27 maps_test 28 matching_test 29 min_cost_arborescence_test 30 min_cost_flow_test 31 path_test 32 preflow_test 33 radix_sort_test 22 34 random_test 23 path_test35 suurballe_test 24 36 time_measure_test 25 37 unionfind_test) 38 39 IF(LEMON_HAVE_LP) 40 ADD_EXECUTABLE(lp_test lp_test.cc) 41 SET(LP_TEST_LIBS lemon) 42 IF(LEMON_HAVE_GLPK) 43 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) 44 ENDIF(LEMON_HAVE_GLPK) 45 IF(LEMON_HAVE_CPLEX) 46 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES}) 47 ENDIF(LEMON_HAVE_CPLEX) 48 IF(LEMON_HAVE_CLP) 49 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES}) 50 ENDIF(LEMON_HAVE_CLP) 51 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) 52 ADD_TEST(lp_test lp_test) 53 54 IF(WIN32 AND LEMON_HAVE_GLPK) 55 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 56 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 57 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD 58 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} 59 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} 60 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 61 ) 62 ENDIF(WIN32 AND LEMON_HAVE_GLPK) 63 IF(WIN32 AND LEMON_HAVE_CPLEX) 64 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 65 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 66 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD 67 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 68 ) 69 ENDIF(WIN32 AND LEMON_HAVE_CPLEX) 70 ENDIF(LEMON_HAVE_LP) 71 72 IF(LEMON_HAVE_MIP) 73 ADD_EXECUTABLE(mip_test mip_test.cc) 74 SET(MIP_TEST_LIBS lemon) 75 IF(LEMON_HAVE_GLPK) 76 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) 77 ENDIF(LEMON_HAVE_GLPK) 78 IF(LEMON_HAVE_CPLEX) 79 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES}) 80 ENDIF(LEMON_HAVE_CPLEX) 81 IF(LEMON_HAVE_CBC) 82 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES}) 83 ENDIF(LEMON_HAVE_CBC) 84 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) 85 ADD_TEST(mip_test mip_test) 86 87 IF(WIN32 AND LEMON_HAVE_GLPK) 88 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 89 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 90 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD 91 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} 92 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} 93 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 94 ) 95 ENDIF(WIN32 AND LEMON_HAVE_GLPK) 96 IF(WIN32 AND LEMON_HAVE_CPLEX) 97 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 98 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 99 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD 100 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 101 ) 102 ENDIF(WIN32 AND LEMON_HAVE_CPLEX) 103 ENDIF(LEMON_HAVE_MIP) 26 104 27 105 FOREACH(TEST_NAME ${TESTS}) -
test/CMakeLists.txt
r621 r627 37 37 unionfind_test) 38 38 39 IF( HAVE_LP)39 IF(LEMON_HAVE_LP) 40 40 ADD_EXECUTABLE(lp_test lp_test.cc) 41 41 SET(LP_TEST_LIBS lemon) 42 IF( HAVE_GLPK)42 IF(LEMON_HAVE_GLPK) 43 43 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) 44 ENDIF( HAVE_GLPK)45 IF( HAVE_CPLEX)44 ENDIF(LEMON_HAVE_GLPK) 45 IF(LEMON_HAVE_CPLEX) 46 46 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES}) 47 ENDIF( HAVE_CPLEX)48 IF( HAVE_CLP)47 ENDIF(LEMON_HAVE_CPLEX) 48 IF(LEMON_HAVE_CLP) 49 49 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES}) 50 ENDIF( HAVE_CLP)50 ENDIF(LEMON_HAVE_CLP) 51 51 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) 52 52 ADD_TEST(lp_test lp_test) 53 53 54 IF(WIN32 AND HAVE_GLPK)54 IF(WIN32 AND LEMON_HAVE_GLPK) 55 55 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 56 56 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 60 60 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 61 61 ) 62 ENDIF(WIN32 AND HAVE_GLPK)63 IF(WIN32 AND HAVE_CPLEX)62 ENDIF(WIN32 AND LEMON_HAVE_GLPK) 63 IF(WIN32 AND LEMON_HAVE_CPLEX) 64 64 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 65 65 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 67 67 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 68 68 ) 69 ENDIF(WIN32 AND HAVE_CPLEX)70 ENDIF( HAVE_LP)69 ENDIF(WIN32 AND LEMON_HAVE_CPLEX) 70 ENDIF(LEMON_HAVE_LP) 71 71 72 IF( HAVE_MIP)72 IF(LEMON_HAVE_MIP) 73 73 ADD_EXECUTABLE(mip_test mip_test.cc) 74 74 SET(MIP_TEST_LIBS lemon) 75 IF( HAVE_GLPK)75 IF(LEMON_HAVE_GLPK) 76 76 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) 77 ENDIF( HAVE_GLPK)78 IF( HAVE_CPLEX)77 ENDIF(LEMON_HAVE_GLPK) 78 IF(LEMON_HAVE_CPLEX) 79 79 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES}) 80 ENDIF( HAVE_CPLEX)81 IF( HAVE_CBC)80 ENDIF(LEMON_HAVE_CPLEX) 81 IF(LEMON_HAVE_CBC) 82 82 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES}) 83 ENDIF( HAVE_CBC)83 ENDIF(LEMON_HAVE_CBC) 84 84 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) 85 85 ADD_TEST(mip_test mip_test) 86 86 87 IF(WIN32 AND HAVE_GLPK)87 IF(WIN32 AND LEMON_HAVE_GLPK) 88 88 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 89 89 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 93 93 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 94 94 ) 95 ENDIF(WIN32 AND HAVE_GLPK)96 IF(WIN32 AND HAVE_CPLEX)95 ENDIF(WIN32 AND LEMON_HAVE_GLPK) 96 IF(WIN32 AND LEMON_HAVE_CPLEX) 97 97 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 98 98 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 100 100 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 101 101 ) 102 ENDIF(WIN32 AND HAVE_CPLEX)103 ENDIF( HAVE_MIP)102 ENDIF(WIN32 AND LEMON_HAVE_CPLEX) 103 ENDIF(LEMON_HAVE_MIP) 104 104 105 105 FOREACH(TEST_NAME ${TESTS}) -
test/lp_test.cc
r575 r627 26 26 #endif 27 27 28 #ifdef HAVE_GLPK28 #ifdef LEMON_HAVE_GLPK 29 29 #include <lemon/glpk.h> 30 30 #endif 31 31 32 #ifdef HAVE_CPLEX32 #ifdef LEMON_HAVE_CPLEX 33 33 #include <lemon/cplex.h> 34 34 #endif 35 35 36 #ifdef HAVE_SOPLEX36 #ifdef LEMON_HAVE_SOPLEX 37 37 #include <lemon/soplex.h> 38 38 #endif 39 39 40 #ifdef HAVE_CLP40 #ifdef LEMON_HAVE_CLP 41 41 #include <lemon/clp.h> 42 42 #endif … … 380 380 lpTest(lp_skel); 381 381 382 #ifdef HAVE_GLPK382 #ifdef LEMON_HAVE_GLPK 383 383 { 384 384 GlpkLp lp_glpk1,lp_glpk2; … … 389 389 #endif 390 390 391 #ifdef HAVE_CPLEX391 #ifdef LEMON_HAVE_CPLEX 392 392 try { 393 393 CplexLp lp_cplex1,lp_cplex2; … … 400 400 #endif 401 401 402 #ifdef HAVE_SOPLEX402 #ifdef LEMON_HAVE_SOPLEX 403 403 { 404 404 SoplexLp lp_soplex1,lp_soplex2; … … 409 409 #endif 410 410 411 #ifdef HAVE_CLP411 #ifdef LEMON_HAVE_CLP 412 412 { 413 413 ClpLp lp_clp1,lp_clp2; -
test/mip_test.cc
r575 r627 23 23 #endif 24 24 25 #ifdef HAVE_CPLEX25 #ifdef LEMON_HAVE_CPLEX 26 26 #include <lemon/cplex.h> 27 27 #endif 28 28 29 #ifdef HAVE_GLPK29 #ifdef LEMON_HAVE_GLPK 30 30 #include <lemon/glpk.h> 31 31 #endif 32 32 33 #ifdef HAVE_CBC33 #ifdef LEMON_HAVE_CBC 34 34 #include <lemon/cbc.h> 35 35 #endif … … 130 130 { 131 131 132 #ifdef HAVE_GLPK132 #ifdef LEMON_HAVE_GLPK 133 133 { 134 134 GlpkMip mip1; … … 138 138 #endif 139 139 140 #ifdef HAVE_CPLEX140 #ifdef LEMON_HAVE_CPLEX 141 141 try { 142 142 CplexMip mip2; … … 148 148 #endif 149 149 150 #ifdef HAVE_CBC150 #ifdef LEMON_HAVE_CBC 151 151 { 152 152 CbcMip mip1;
Note: See TracChangeset
for help on using the changeset viewer.