Skip to content

Commit 9daafe2

Browse files
committed
[main] add rootcp test for reading a remote file
1 parent 7d267a3 commit 9daafe2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

roottest/main/CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,23 @@ ROOTTEST_ADD_TEST(SimpleRootcpInexistent
405405
COMMAND ${TOOLS_PREFIX}/rootcp${exeext} test.root:does_not_exist test.root:
406406
PASSREGEX "Error in <rootcp>: 'test.root:does_not_exist' matches no objects.")
407407

408+
if(davix)
409+
ROOTTEST_ADD_TEST(RootcpReadRemote
410+
COMMAND ${TOOLS_PREFIX}/rootcp${exeext} root://eospublic.cern.ch//eos/root-eos/h1/dstarmb.root copy_remote.root
411+
FIXTURES_SETUP main-RootcpReadRemote-fixture)
412+
413+
ROOTTEST_ADD_TEST(RootcpReadRemoteCheckOutput
414+
COMMAND ${TOOLS_PREFIX}/rootls${exeext} copy_remote.root
415+
OUTREF RootcpReadRemote.ref
416+
FIXTURES_REQUIRED main-RootcpReadRemote-fixture
417+
FIXTURES_SETUP main-RootcpReadRemoteCheckOutput-fixture
418+
ENVIRONMENT ${test_env})
419+
420+
ROOTTEST_ADD_TEST(RootcpReadRemoteClean
421+
COMMAND ${PY_TOOLS_PREFIX}/rootrm${pyext} -r copy_remote.root
422+
FIXTURES_REQUIRED main-RootcpReadRemoteCheckOutput-fixture)
423+
endif()
424+
408425
#########################################################################
409426

410427
############################# ROOMV TESTS ############################

roottest/main/RootcpReadRemote.ref

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h42

0 commit comments

Comments
 (0)