COIN-OR::LEMON - Graph Library

Changeset 912:cc9bb4f95ed3 in lemon-1.2 for test


Ignore:
Timestamp:
03/17/11 18:12:25 (9 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
1.2
Parents:
910:4e36fdf856b7 (diff), 911:66156a3498ea (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Phase:
public
Message:

Merge #416 to branch 1.2

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/CMakeLists.txt

    r905 r912  
    77  ${PROJECT_BINARY_DIR}/lemon
    88)
     9
     10SET(TEST_WITH_VALGRIND "NO" CACHE STRING
     11  "Run the test with valgrind (YES/NO).")
     12SET(VALGRIND_FLAGS "" CACHE STRING "Valgrind flags used by the tests.")
    913
    1014SET(TESTS
     
    134138  ENDIF()
    135139  TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    136   ADD_TEST(${TEST_NAME} ${TEST_NAME})
     140    IF(TEST_WITH_VALGRIND)
     141      ADD_TEST(${TEST_NAME}
     142        valgrind --error-exitcode=1 ${VALGRIND_FLAGS}
     143        ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME} )
     144    ELSE()
     145      ADD_TEST(${TEST_NAME} ${TEST_NAME})
     146    ENDIF()
    137147  ADD_DEPENDENCIES(check ${TEST_NAME})
    138148ENDFOREACH()
  • test/CMakeLists.txt

    r911 r912  
    1414SET(TESTS
    1515  adaptors_test
     16  bellman_ford_test
    1617  bfs_test
    1718  circulation_test
     
    2526  error_test
    2627  euler_test
     28  fractional_matching_test
    2729  gomory_hu_test
    2830  graph_copy_test
     
    3638  min_cost_arborescence_test
    3739  min_cost_flow_test
     40  min_mean_cycle_test
    3841  path_test
     42  planarity_test
    3943  preflow_test
    4044  radix_sort_test
Note: See TracChangeset for help on using the changeset viewer.