Skip to content
Snippets Groups Projects
Commit e0f4183f authored by Gerardo Ganis's avatar Gerardo Ganis
Browse files

  From Pere:
  - Add script to download the files needed by stressProof if not available locally
  - Add the relevant switches to have stressProof making use of these files


git-svn-id: http://root.cern.ch/svn/root/trunk@45658 27541ba8-7e3a-0410-8455-c3a389f83636
parent 10e48c3f
No related branches found
No related tags found
No related merge requests found
......@@ -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----------------------------------------------------------------------------------
......
#---------------------------------------------------------------------------------------------------
# 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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment