COIN-OR::LEMON - Graph Library

Changeset 528:88bd39ef7d98 in lemon-main for test


Ignore:
Timestamp:
02/23/09 13:26:21 (16 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Parents:
527:c458e02723b1 (diff), 501:7f8560cb9d65 (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
Message:

Merge

Location:
test
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • test/CMakeLists.txt

    r501 r528  
    1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     1INCLUDE_DIRECTORIES(
     2  ${CMAKE_SOURCE_DIR}
     3  ${CMAKE_BINARY_DIR}
     4)
     5
     6IF(HAVE_GLPK)
     7  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
     8ENDIF(HAVE_GLPK)
    29
    310LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
    411
    512SET(TESTS
     13  adaptors_test
    614  bfs_test
     15  circulation_test
    716  counter_test
    817  dfs_test
     
    1019  dijkstra_test
    1120  dim_test
     21  edge_set_test
    1222  error_test
     23  euler_test
    1324  graph_copy_test
    1425  graph_test
     
    2031  max_matching_test
    2132  min_cost_arborescence_test
     33  path_test
     34  preflow_test
     35  radix_sort_test
    2236  random_test
    23   path_test
     37  suurballe_test
    2438  time_measure_test
    2539  unionfind_test)
     40
     41IF(HAVE_LP)
     42  ADD_EXECUTABLE(lp_test lp_test.cc)
     43  IF(HAVE_GLPK)
     44    TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES})
     45  ENDIF(HAVE_GLPK)
     46  ADD_TEST(lp_test lp_test)
     47
     48  IF(WIN32 AND HAVE_GLPK)
     49    GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
     50    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
     51    ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
     52      COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
     53      COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
     54      COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
     55    )
     56  ENDIF(WIN32 AND HAVE_GLPK)
     57ENDIF(HAVE_LP)
     58
     59IF(HAVE_MIP)
     60  ADD_EXECUTABLE(mip_test mip_test.cc)
     61  IF(HAVE_GLPK)
     62    TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES})
     63  ENDIF(HAVE_GLPK)
     64  ADD_TEST(mip_test mip_test)
     65
     66  IF(WIN32 AND HAVE_GLPK)
     67    GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
     68    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
     69    ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
     70      COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
     71      COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
     72      COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
     73    )
     74  ENDIF(WIN32 AND HAVE_GLPK)
     75ENDIF(HAVE_MIP)
    2676
    2777FOREACH(TEST_NAME ${TESTS})
  • test/CMakeLists.txt

    r522 r528  
    3030  maps_test
    3131  max_matching_test
     32  min_cost_arborescence_test
    3233  path_test
    3334  preflow_test
  • test/Makefile.am

    r501 r528  
    11EXTRA_DIST += \
    2         test/CMakeLists.txt \
    3         test/min_cost_flow_test.lgf \
    4         test/preflow_graph.lgf
     2        test/CMakeLists.txt
    53
    64noinst_HEADERS += \
    75        test/graph_test.h \
    8         test/test_tools.h
     6        test/test_tools.h
    97
    108check_PROGRAMS += \
     9        test/adaptors_test \
    1110        test/bfs_test \
    12         test/circulation_test \
    13         test/counter_test \
     11        test/circulation_test \
     12        test/counter_test \
    1413        test/dfs_test \
    1514        test/digraph_test \
    1615        test/dijkstra_test \
    17         test/dim_test \
     16        test/dim_test \
     17        test/edge_set_test \
    1818        test/error_test \
    19         test/graph_adaptor_test \
     19        test/euler_test \
    2020        test/graph_copy_test \
    2121        test/graph_test \
    2222        test/graph_utils_test \
     23        test/hao_orlin_test \
    2324        test/heap_test \
    2425        test/kruskal_test \
    25         test/hao_orlin_test \
    26         test/maps_test \
     26        test/maps_test \
    2727        test/max_matching_test \
    2828        test/min_cost_arborescence_test \
    29         test/random_test \
    30         test/path_test \
    31         test/preflow_test \
    32         test/suurballe_test \
    33         test/test_tools_fail \
    34         test/test_tools_pass \
    35         test/time_measure_test \
     29        test/path_test \
     30        test/preflow_test \
     31        test/radix_sort_test \
     32        test/random_test \
     33        test/suurballe_test \
     34        test/test_tools_fail \
     35        test/test_tools_pass \
     36        test/time_measure_test \
    3637        test/unionfind_test
     38
     39if HAVE_LP
     40check_PROGRAMS += test/lp_test
     41endif HAVE_LP
     42if HAVE_MIP
     43check_PROGRAMS += test/mip_test
     44endif HAVE_MIP
    3745
    3846TESTS += $(check_PROGRAMS)
    3947XFAIL_TESTS += test/test_tools_fail$(EXEEXT)
    4048
     49test_adaptors_test_SOURCES = test/adaptors_test.cc
    4150test_bfs_test_SOURCES = test/bfs_test.cc
    4251test_circulation_test_SOURCES = test/circulation_test.cc
     
    4655test_dijkstra_test_SOURCES = test/dijkstra_test.cc
    4756test_dim_test_SOURCES = test/dim_test.cc
     57test_edge_set_test_SOURCES = test/edge_set_test.cc
    4858test_error_test_SOURCES = test/error_test.cc
    49 test_graph_adaptor_test_SOURCES = test/graph_adaptor_test.cc
     59test_euler_test_SOURCES = test/euler_test.cc
    5060test_graph_copy_test_SOURCES = test/graph_copy_test.cc
    5161test_graph_test_SOURCES = test/graph_test.cc
     
    5464test_kruskal_test_SOURCES = test/kruskal_test.cc
    5565test_hao_orlin_test_SOURCES = test/hao_orlin_test.cc
     66test_lp_test_SOURCES = test/lp_test.cc
    5667test_maps_test_SOURCES = test/maps_test.cc
     68test_mip_test_SOURCES = test/mip_test.cc
    5769test_max_matching_test_SOURCES = test/max_matching_test.cc
    5870test_min_cost_arborescence_test_SOURCES = test/min_cost_arborescence_test.cc
    5971test_path_test_SOURCES = test/path_test.cc
    6072test_preflow_test_SOURCES = test/preflow_test.cc
     73test_radix_sort_test_SOURCES = test/radix_sort_test.cc
    6174test_suurballe_test_SOURCES = test/suurballe_test.cc
    6275test_random_test_SOURCES = test/random_test.cc
  • test/Makefile.am

    r522 r528  
    2626        test/maps_test \
    2727        test/max_matching_test \
     28        test/min_cost_arborescence_test \
    2829        test/path_test \
    2930        test/preflow_test \
     
    6768test_mip_test_SOURCES = test/mip_test.cc
    6869test_max_matching_test_SOURCES = test/max_matching_test.cc
     70test_min_cost_arborescence_test_SOURCES = test/min_cost_arborescence_test.cc
    6971test_path_test_SOURCES = test/path_test.cc
    7072test_preflow_test_SOURCES = test/preflow_test.cc
Note: See TracChangeset for help on using the changeset viewer.