diff --git a/Reconstruction/egamma/egammaValidation/CMakeLists.txt b/Reconstruction/egamma/egammaValidation/CMakeLists.txt index 534847aa7ed5e7671320b73c7b8cba46fb316b5f..fa9cd2a8f7b1c703db21a5d7b59a054a4d617706 100644 --- a/Reconstruction/egamma/egammaValidation/CMakeLists.txt +++ b/Reconstruction/egamma/egammaValidation/CMakeLists.txt @@ -7,9 +7,9 @@ atlas_subdir( egammaValidation ) atlas_add_component ( egammmaValidation src/*.cxx src/components/*.cxx - LINK_LIBRARIES AsgTools AthenaBaseComps EgammaAnalysisInterfacesLib GaudiKernel IsolationSelectionLib - MCTruthClassifierLib PATCoreAcceptLib xAODBase xAODEgamma xAODEventInfo - xAODTracking xAODTruth ) + LINK_LIBRARIES AsgTools AthenaBaseComps EgammaAnalysisInterfacesLib GaudiKernel IsolationSelectionLib + MCTruthClassifierLib PATCoreAcceptLib xAODBase xAODEgamma xAODEventInfo + xAODTracking xAODTruth ) atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) # Install JO files from the package: @@ -17,3 +17,7 @@ atlas_install_joboptions( share/*.py ) # ART shell executable scripts : atlas_install_scripts( test/*.sh scripts/*py ) +atlas_add_test( ut_egammaARTJob_test + SCRIPT test/ut_egammaARTJob_test.sh + PROPERTIES TIMEOUT 900 +) diff --git a/Reconstruction/egamma/egammaValidation/test/ut_egammaARTJob_test.sh b/Reconstruction/egamma/egammaValidation/test/ut_egammaARTJob_test.sh new file mode 100755 index 0000000000000000000000000000000000000000..c80d993585db714bf897adb249e7da6b3d222a08 --- /dev/null +++ b/Reconstruction/egamma/egammaValidation/test/ut_egammaARTJob_test.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if Reco_tf.py --inputRDOFile=/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/q221/22.0/v1/myRDO.pool.root --outputAODFile=Nightly_AOD_electron.pool.root --maxEvents=1 --autoConfiguration="everything" --preExec="from egammaValidation.egammaOnlyPreExec import setRunEgammaOnlyRecoFlags; setRunEgammaOnlyRecoFlags()" --postInclude "ESDtoAOD:egammaValidation/egammaArtCaloCalPostInclude.py" "POOLMergeAthenaMPAOD0:egammaValidation/egammaArtCaloCalPostInclude.py" >>/dev/null 2>&1 ; then + echo "Reco tf success" +else + echo "Reco tf failure" +fi + +if AODMerge_tf.py --inputAODFile=Nightly_AOD_electron.pool.root --outputAOD_MRGFile=Nightly_AOD_electron.pool.root --preExec "from egammaValidation.egammaOnlyPreExec import setRunEgammaOnlyMergeFlags; setRunEgammaOnlyMergeFlags()" --postInclude "all:egammaValidation/egammaArtCaloCalPostInclude.py">>/dev/null 2>&1 ; then + echo "Merge success" +else + echo "Merge failure" +fi +