COIN-OR::LEMON - Graph Library

source: lemon-1.0/test/CMakeLists.txt @ 172:c94a80f38d7f

Last change on this file since 172:c94a80f38d7f was 171:02f4d5d9bfd7, checked in by Peter Kovacs <kpeter@…>, 16 years ago

Improve and redesign test programs + unify their output (ticket #25)

  • Move graph related utilities form test_tools.h to graph_test.h.
  • Move the contents of graph_utils_test.h to graph_utils_test.cc.
  • Rename map_test.h -> graph_maps_test.h.
  • Rename digraph_test.h -> graph_test.h.
  • Many improvements in the following files:
    • digraph_test.cc
    • graph_test.cc
    • graph_test.h
    • graph_maps_test.h
    • graph_utils_test.cc
    • bfs_test.cc
    • dfs_test.cc
    • counter_test.cc
  • Test programs print messages only if it really seems necessary.
  • Remove \file commands form .cc test files.
File size: 499 bytes
RevLine 
[141]1include_directories (${LEMON_SOURCE_DIR})
2
3link_directories (${LEMON_BINARY_DIR}/lemon)
4
5set (TESTS
6  bfs_test
7  counter_test
8  dfs_test
9  digraph_test
[170]10  dijkstra_test
[141]11  dim_test
12  error_test
13  graph_test
[171]14  graph_utils_test
[141]15  kruskal_test
16  maps_test
[171]17  path_test
[141]18  random_test
19  time_measure_test
20  unionfind_test)
21
22foreach (TEST_NAME ${TESTS})
23  add_executable (${TEST_NAME} ${TEST_NAME}.cc)
24  target_link_libraries (${TEST_NAME} lemon)
25  add_test(${TEST_NAME} ${TEST_NAME})
26endforeach (TEST_NAME)
Note: See TracBrowser for help on using the repository browser.