Skip to content

Commit 1ca0207

Browse files
committed
[Tutorials] Add the longtest label to long-running tutorials.
1 parent f0ff31f commit 1ca0207

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

tutorials/CMakeLists.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,10 @@ set (tmva-TMVARegressionApplication-depends tutorial-tmva-TMVARegression)
422422
set (tmva-tmva101_Training-depends tutorial-tmva-tmva100_DataPreparation-py)
423423
set (tmva-tmva102_Testing-depends tutorial-tmva-tmva101_Training-py)
424424

425+
#--List long-running tutorials to label them as "longtest"
426+
set (long_running dataframe/df10[2-5]*
427+
multicore/mp103*)
428+
file(GLOB long_running RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${long_running})
425429

426430
#---Loop over all tutorials and define the corresponding test---------
427431

@@ -442,6 +446,11 @@ foreach(t ${tutorials})
442446
string(REPLACE ".C" "" tname ${t})
443447
string(REPLACE "/" "-" tname ${tname})
444448

449+
set(labels tutorial)
450+
if(${t} IN_LIST long_running)
451+
list(APPEND labels longtest)
452+
endif()
453+
445454
# These tests on ARM64 need much more than 20 minutes - increase the timeout
446455
if(ROOT_ARCHITECTURE MATCHES arm64)
447456
set(thisTestTimeout 2400) # 40m
@@ -452,7 +461,7 @@ foreach(t ${tutorials})
452461
ROOT_ADD_TEST(tutorial-${tname}
453462
COMMAND ${ROOT_root_CMD} -b -l -q ${CMAKE_CURRENT_SOURCE_DIR}/${t}${${tname}-aclic}
454463
PASSRC ${rc} FAILREGEX "Error in <" ": error:" "segmentation violation" "FROM HESSE STATUS=FAILED"
455-
LABELS tutorial
464+
LABELS ${labels}
456465
DEPENDS tutorial-hsimple ${${tname}-depends}
457466
ENVIRONMENT ${ROOT_environ}
458467
TIMEOUT ${thisTestTimeout})
@@ -574,6 +583,11 @@ if(ROOT_pyroot_FOUND)
574583
set(rc 255)
575584
endif()
576585

586+
set(labels tutorial)
587+
if(${t} IN_LIST long_running)
588+
list(APPEND labels longtest)
589+
endif()
590+
577591
string(REPLACE ".py" "" tname ${t})
578592
string(REPLACE "/" "-" tname ${tname})
579593

@@ -589,7 +603,7 @@ if(ROOT_pyroot_FOUND)
589603
ROOT_ADD_TEST(${tutorial_name}
590604
COMMAND ${PYTHON_EXECUTABLE_Development_Main} ${CMAKE_CURRENT_SOURCE_DIR}/launcher.py ${CMAKE_CURRENT_SOURCE_DIR}/${t}
591605
PASSRC ${rc} FAILREGEX "Error in" ": error:" "segmentation violation"
592-
LABELS tutorial
606+
LABELS ${labels}
593607
DEPENDS ${${tname}-depends}
594608
ENVIRONMENT ${ROOT_environ}
595609
${py_will_fail})

0 commit comments

Comments
 (0)