test/CMakeLists.txt
author Peter Kovacs <kpeter@inf.elte.hu>
Mon, 12 Jan 2009 07:52:48 +0100
changeset 486 a2fd8b8d0b30
parent 443 346991bf7ddd
parent 464 4f7224faf3bd
child 481 7afc121e0689
child 488 2b5496c62ccd
permissions -rw-r--r--
Greatly extend and improve the test file for adaptors (#67)

- Add concept checks for the alterable, extendable, erasable
and clearable adaptors.
- Add test cases for modifying the underlying graphs through adaptors
whenever it is possible.
- Check the conversions between Node, Arc and Edge types.
- Add more test cases for the adaptor-specific functions and maps:
enable(), disable(), status(), forward(), backward(), CombinedArcMap,
CombinedNodeMap, ResidualCapacity etc.
- Use checkGraphIncEdgeArcLists() to simplify the test cases for
undirected graphs.
- Add test cases that use static graph structure (GridGraph) with
several adaptors combined.
- Add comments for the test cases.
alpar@225
     1
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
ladanyi@141
     2
alpar@225
     3
LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
ladanyi@141
     4
alpar@225
     5
SET(TESTS
ladanyi@141
     6
  bfs_test
alpar@443
     7
  circulation_test
ladanyi@141
     8
  counter_test
ladanyi@141
     9
  dfs_test
ladanyi@141
    10
  digraph_test
kpeter@170
    11
  dijkstra_test
ladanyi@141
    12
  dim_test
ladanyi@141
    13
  error_test
alpar@443
    14
  graph_adaptor_test
deba@200
    15
  graph_copy_test
ladanyi@141
    16
  graph_test
kpeter@171
    17
  graph_utils_test
deba@426
    18
  hao_orlin_test
deba@203
    19
  heap_test
ladanyi@141
    20
  kruskal_test
ladanyi@141
    21
  maps_test
deba@338
    22
  max_matching_test
deba@464
    23
  radix_sort_test
alpar@443
    24
  path_test
alpar@443
    25
  preflow_test
alpar@225
    26
  random_test
alpar@443
    27
  suurballe_test
ladanyi@141
    28
  time_measure_test
ladanyi@141
    29
  unionfind_test)
ladanyi@141
    30
alpar@225
    31
FOREACH(TEST_NAME ${TESTS})
alpar@225
    32
  ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
alpar@225
    33
  TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
alpar@225
    34
  ADD_TEST(${TEST_NAME} ${TEST_NAME})
alpar@225
    35
ENDFOREACH(TEST_NAME)