Skip to content
Snippets Groups Projects
Commit eec4a7db authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'egamma_ART_unit_test' into 'master'

ATLASRECTS-5835 : Add unit test for making sure egamma ART is not accidentally broken (in the sense of not being able to run)

See merge request atlas/athena!39093
parents 16ff5574 b9096981
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,9 @@ atlas_subdir( egammaValidation ) ...@@ -7,9 +7,9 @@ atlas_subdir( egammaValidation )
atlas_add_component ( egammmaValidation atlas_add_component ( egammmaValidation
src/*.cxx src/*.cxx
src/components/*.cxx src/components/*.cxx
LINK_LIBRARIES AsgTools AthenaBaseComps EgammaAnalysisInterfacesLib GaudiKernel IsolationSelectionLib LINK_LIBRARIES AsgTools AthenaBaseComps EgammaAnalysisInterfacesLib GaudiKernel IsolationSelectionLib
MCTruthClassifierLib PATCoreAcceptLib xAODBase xAODEgamma xAODEventInfo MCTruthClassifierLib PATCoreAcceptLib xAODBase xAODEgamma xAODEventInfo
xAODTracking xAODTruth ) xAODTracking xAODTruth )
atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
# Install JO files from the package: # Install JO files from the package:
...@@ -17,3 +17,7 @@ atlas_install_joboptions( share/*.py ) ...@@ -17,3 +17,7 @@ atlas_install_joboptions( share/*.py )
# ART shell executable scripts : # ART shell executable scripts :
atlas_install_scripts( test/*.sh scripts/*py ) atlas_install_scripts( test/*.sh scripts/*py )
atlas_add_test( ut_egammaARTJob_test
SCRIPT test/ut_egammaARTJob_test.sh
PROPERTIES TIMEOUT 900
)
#!/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
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