From b7cdc5a06ce823d8ae4c618b8b9e4d5c0d24018c Mon Sep 17 00:00:00 2001 From: pdlotko Date: Tue, 18 Apr 2017 16:42:34 +0000 Subject: Trying to solve the problem of missing files for the tests running in different machines than mine. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/gudhi_stat@2363 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 52d4aed08bb6fa67119867b830ca8e88f27e5b68 --- src/Gudhi_stat/test/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Gudhi_stat/test/CMakeLists.txt b/src/Gudhi_stat/test/CMakeLists.txt index 3018dc1d..f621efe0 100644 --- a/src/Gudhi_stat/test/CMakeLists.txt +++ b/src/Gudhi_stat/test/CMakeLists.txt @@ -14,7 +14,7 @@ if (GPROF_PATH) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -pg") endif() -# copy data directory for tests purpose +# copy data directory for tests purpose. QUESTION -- DOEST IT WORK IF WE CREATE A NEW FOLDER FOR EACH TEST? i THINK THAT WE SHOULD MAKE THS COPYING TO EACH TEST FOLDER. file(COPY data DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) # Do not forget to copy test files in current binary dir file(COPY "${CMAKE_SOURCE_DIR}/src/Gudhi_stat/test/data" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) @@ -25,7 +25,8 @@ target_link_libraries(persistence_intervals_test ${Boost_SYSTEM_LIBRARY} ${Boost # Unitary tests add_test(NAME persistence_intervals_test - COMMAND ${CMAKE_CURRENT_BINARY_DIR}/persistence_intervals_test + COMMAND ${CMAKE_CURRENT_BINARY_DIR}/persistence_intervals_test + file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/persistence_intervals_test/data") # XML format for Jenkins xUnit plugin --log_format=XML --log_sink=${CMAKE_SOURCE_DIR}/persistence_intervals_UT.xml --log_level=test_suite --report_level=no) @@ -36,6 +37,7 @@ target_link_libraries(vector_representation_test ${Boost_SYSTEM_LIBRARY} ${Boost # Unitary tests add_test(NAME vector_representation_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/vector_representation_test + file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/vector_representation_test/data") # XML format for Jenkins xUnit plugin --log_format=XML --log_sink=${CMAKE_SOURCE_DIR}/vector_representation_UT.xml --log_level=test_suite --report_level=no) @@ -46,6 +48,7 @@ target_link_libraries(persistence_lanscapes_test ${Boost_SYSTEM_LIBRARY} ${Boost # Unitary tests add_test(NAME persistence_lanscapes_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/persistence_lanscapes_test + file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/persistence_lanscapes_test/data") # XML format for Jenkins xUnit plugin --log_format=XML --log_sink=${CMAKE_SOURCE_DIR}/persistence_lanscapes_UT.xml --log_level=test_suite --report_level=no) @@ -56,6 +59,7 @@ target_link_libraries(persistence_lanscapes_on_grid_test ${Boost_SYSTEM_LIBRARY} # Unitary tests add_test(NAME persistence_lanscapes_on_grid_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/persistence_lanscapes_on_grid_test + file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/persistence_lanscapes_on_grid_test/data") # XML format for Jenkins xUnit plugin --log_format=XML --log_sink=${CMAKE_SOURCE_DIR}/persistence_lanscapes_on_grid_UT.xml --log_level=test_suite --report_level=no) @@ -66,6 +70,7 @@ target_link_libraries(persistence_heat_maps_test ${Boost_SYSTEM_LIBRARY} ${Boost # Unitary tests add_test(NAME persistence_heat_maps_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/persistence_heat_maps_test + file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/persistence_heat_maps_test/data") # XML format for Jenkins xUnit plugin --log_format=XML --log_sink=${CMAKE_SOURCE_DIR}/persistence_heat_maps_UT.xml --log_level=test_suite --report_level=no) @@ -76,5 +81,6 @@ target_link_libraries(read_persistence_from_file_test ${Boost_SYSTEM_LIBRARY} ${ # Unitary tests add_test(NAME read_persistence_from_file_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/read_persistence_from_file_test + file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/read_persistence_from_file_test/data") # XML format for Jenkins xUnit plugin --log_format=XML --log_sink=${CMAKE_SOURCE_DIR}/read_persistence_from_file_UT.xml --log_level=test_suite --report_level=no) -- cgit v1.2.3