test/CMakeLists.txt
author Balazs Dezso <deba@inf.elte.hu>
Sun, 21 Dec 2008 00:13:02 +0100
changeset 436 561be42c4b99
parent 203 215bfc30b14f
child 326 64ad48007fb2
child 441 4f7224faf3bd
child 510 d8ca76573eb3
permissions -rw-r--r--
Bug fix in heap unionfind (ticket #197)

The minimum item in the unionfind tree might become inconsistent when
the split operation merges two subtrees which have equal keys. The
current changeset fix the problem. It also fix a wrong index.
     1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     2 
     3 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
     4 
     5 SET(TESTS
     6   bfs_test
     7   counter_test
     8   dfs_test
     9   digraph_test
    10   dijkstra_test
    11   dim_test
    12   error_test
    13   graph_copy_test
    14   graph_test
    15   graph_utils_test
    16   heap_test
    17   kruskal_test
    18   maps_test
    19   random_test
    20   path_test
    21   time_measure_test
    22   unionfind_test)
    23 
    24 FOREACH(TEST_NAME ${TESTS})
    25   ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
    26   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    27   ADD_TEST(${TEST_NAME} ${TEST_NAME})
    28 ENDFOREACH(TEST_NAME)