test/CMakeLists.txt
author Peter Kovacs <kpeter@inf.elte.hu>
Mon, 12 Jan 2009 07:52:48 +0100
changeset 463 a2fd8b8d0b30
parent 424 346991bf7ddd
parent 441 4f7224faf3bd
child 458 7afc121e0689
child 465 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.
     1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     2 
     3 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
     4 
     5 SET(TESTS
     6   bfs_test
     7   circulation_test
     8   counter_test
     9   dfs_test
    10   digraph_test
    11   dijkstra_test
    12   dim_test
    13   error_test
    14   graph_adaptor_test
    15   graph_copy_test
    16   graph_test
    17   graph_utils_test
    18   hao_orlin_test
    19   heap_test
    20   kruskal_test
    21   maps_test
    22   max_matching_test
    23   radix_sort_test
    24   path_test
    25   preflow_test
    26   random_test
    27   suurballe_test
    28   time_measure_test
    29   unionfind_test)
    30 
    31 FOREACH(TEST_NAME ${TESTS})
    32   ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
    33   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    34   ADD_TEST(${TEST_NAME} ${TEST_NAME})
    35 ENDFOREACH(TEST_NAME)