diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b7ee368f8700ead5892eb2c6a5571d11df6d40c6..ca4a30ee455bd6da508d3f1e5164c440a29d4dab 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -179,8 +179,9 @@ ROOT_ADD_TEST(test-stressinterpreter COMMAND stressInterpreter #--stressProof------------------------------------------------------------------------------- if(NOT WIN32) + add_custom_target(TestData ALL COMMAND ${CMAKE_COMMAND} -DDST=${CMAKE_SOURCE_DIR}/files -P ${CMAKE_CURRENT_SOURCE_DIR}/rootDownloadData.cmake) ROOT_EXECUTABLE(stressProof stressProof.cxx LIBRARIES Proof ProofPlayer Hist) - ROOT_ADD_TEST(test-stressproof COMMAND stressProof lite:// FAILREGEX "FAILED") + ROOT_ADD_TEST(test-stressproof COMMAND stressProof lite:// -h1 ${CMAKE_SOURCE_DIR}/files/h1 -event ${CMAKE_SOURCE_DIR}/files/event FAILREGEX "FAILED") endif() #--testbits---------------------------------------------------------------------------------- diff --git a/test/rootDownloadData.cmake b/test/rootDownloadData.cmake new file mode 100644 index 0000000000000000000000000000000000000000..3b13b1d97cfa9e93e765b905e6a488cad4d23bf8 --- /dev/null +++ b/test/rootDownloadData.cmake @@ -0,0 +1,28 @@ +#--------------------------------------------------------------------------------------------------- +# ROOT download test data files +# Script arguments: +# DST destination directory + +if(NOT DST) + set(DST .) +endif() + +set(rootsite http://root.cern.ch/files) +set(timeout 100) + +if(NOT EXISTS ${DST}/h1) + foreach(f dstarmb.root dstarp1a.root dstarp1b.root dstarp2.root) + file(DOWNLOAD ${rootsite}/h1/${f} ${DST}/h1/${f} TIMEOUT ${timeout} SHOW_PROGRESS) + endforeach() +else() + message(STATUS "Already existing files in ${DST}/h1") +endif() + +if(NOT EXISTS ${DST}/event) + foreach(n 1 2 3 4 5 6 7 8 9 10) + file(DOWNLOAD ${rootsite}/data/event_${n}.root ${DST}/event/event_${n}.root TIMEOUT ${timeout} SHOW_PROGRESS) + endforeach() +else() + message(STATUS "Already existing files in ${DST}/event") +endif() +