Skip to content

Commit 6da3f1c

Browse files
committed
[main] rootls: add more tests for rootls
1 parent 9b4acb7 commit 6da3f1c

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

roottest/main/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ configure_file(simpleTree.root . COPYONLY)
33
configure_file(multipleNameCycles.root . COPYONLY)
44
configure_file(MakeNameCyclesRootmvInput.C . COPYONLY)
55
configure_file(subdirs.root . COPYONLY)
6+
configure_file(nested.root . COPYONLY)
7+
configure_file(RNTuple.root . COPYONLY)
68

79
if(MSVC)
810
# the command line tools works fine in the Windows command prompt but
@@ -84,6 +86,16 @@ ROOTTEST_ADD_TEST(RecursiveRootls
8486
OUTREF RecursiveRootls.ref
8587
ENVIRONMENT ${test_env})
8688

89+
ROOTTEST_ADD_TEST(RecursiveRootls2
90+
COMMAND ${TOOLS_PREFIX}/rootls${exeext} -lr nested.root
91+
OUTREF RecursiveRootls2.ref
92+
ENVIRONMENT ${test_env})
93+
94+
ROOTTEST_ADD_TEST(RootlsRNTuple
95+
COMMAND ${TOOLS_PREFIX}/rootls${exeext} -R RNTuple.root
96+
OUTREF RootlsRNTuple.ref
97+
ENVIRONMENT ${test_env})
98+
8799
#########################################################################
88100

89101
ROOTTEST_ADD_TEST(ROOT_8197

roottest/main/RNTuple.root

2.46 KB
Binary file not shown.

roottest/main/RecursiveRootls2.ref

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
TDirectoryFile Jul 15 13:27 2025 a;1 "a"
2+
TDirectoryFile Jul 15 13:27 2025 b;1 "b"
3+
TDirectoryFile Jul 15 13:27 2025 c;1 "c"
4+
string Jul 15 13:27 2025 s;1 ""
5+
string Jul 15 13:27 2025 s2;1 ""
6+
TDirectoryFile Jul 15 13:27 2025 d;1 "d"
7+
TDirectoryFile Jul 15 13:27 2025 e;1 "e"
8+
TDirectoryFile Jul 15 13:27 2025 f;1 "f"
9+
TH1D Jul 15 13:27 2025 h2;1 "histo"
10+
TH1D Jul 15 13:27 2025 h;1 "histo"

roottest/main/RootlsRNTuple.ref

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ROOT::RNTuple Nov 13 13:16 2024 Contributors;1 ""
2+
firstName std::string
3+
lastName std::string

roottest/main/nested.root

5.07 KB
Binary file not shown.

0 commit comments

Comments
 (0)