COIN-OR::LEMON - Graph Library

source: lemon-1.0/test/CMakeLists.txt @ 199:e3aba2c72be4

Last change on this file since 199:e3aba2c72be4 was 171:02f4d5d9bfd7, checked in by Peter Kovacs <kpeter@…>, 11 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
Line 
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
10  dijkstra_test
11  dim_test
12  error_test
13  graph_test
14  graph_utils_test
15  kruskal_test
16  maps_test
17  path_test
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.