diff --git a/Reconstruction/TrackParticleTruthAthenaPool/CMakeLists.txt b/Reconstruction/TrackParticleTruthAthenaPool/CMakeLists.txt index ae1cb21dae4cfae4f58c6678fafefa09e305de49..1747f2ac317a4ea66e0c1f5caab1853208714f10 100644 --- a/Reconstruction/TrackParticleTruthAthenaPool/CMakeLists.txt +++ b/Reconstruction/TrackParticleTruthAthenaPool/CMakeLists.txt @@ -25,3 +25,15 @@ atlas_add_poolcnv_library( TrackParticleTruthAthenaPoolPoolCnv # Install files from the package: atlas_install_joboptions( share/*.py ) +# Set up (a) test(s) for the converter(s): +if( IS_DIRECTORY ${CMAKE_SOURCE_DIR}/Database/AthenaPOOL/AthenaPoolUtilities ) + set( AthenaPoolUtilitiesTest_DIR + ${CMAKE_SOURCE_DIR}/Database/AthenaPOOL/AthenaPoolUtilities/cmake ) +endif() +find_package( AthenaPoolUtilitiesTest ) + +if( ATHENAPOOLUTILITIESTEST_FOUND ) + run_tpcnv_test( TrackParticleTruthTPCnv_18.0.0 AOD-18.0.0-full ) +else() + message( WARNING "Couldn't find AthenaPoolUtilitiesTest. No test(s) set up." ) +endif() diff --git a/Reconstruction/TrackParticleTruthAthenaPool/cmt/requirements b/Reconstruction/TrackParticleTruthAthenaPool/cmt/requirements index d0f848307218f83f4c457ce70d92688d514816ac..d6d885e4872c386f14bb67be7f888cc0adfff217 100755 --- a/Reconstruction/TrackParticleTruthAthenaPool/cmt/requirements +++ b/Reconstruction/TrackParticleTruthAthenaPool/cmt/requirements @@ -32,3 +32,4 @@ apply_pattern athenarun_test \ options="TrackParticleTruthAthenaPool/TrackParticleTruthTPCnv_18.0.0_test.py" \ pre_script="${ATHENAPOOLUTILITIESROOT}/share/pre_tpcnvtest.sh TrackParticleTruthTPCnv_18.0.0" \ post_script="${ATHENAPOOLUTILITIESROOT}/share/post_tpcnvtest.sh TrackParticleTruthTPCnv_18.0.0" + diff --git a/Reconstruction/TrackParticleTruthAthenaPool/share/TrackParticleTruthTPCnv_18.0.0_test.py b/Reconstruction/TrackParticleTruthAthenaPool/share/TrackParticleTruthTPCnv_18.0.0_test.py index 8e672d9158e51aaf492b8b00b99e7751c638ed07..fae2bbfb4195c73406e3a3ed738864b3b1e8dbbd 100644 --- a/Reconstruction/TrackParticleTruthAthenaPool/share/TrackParticleTruthTPCnv_18.0.0_test.py +++ b/Reconstruction/TrackParticleTruthAthenaPool/share/TrackParticleTruthTPCnv_18.0.0_test.py @@ -10,8 +10,6 @@ keys = [ 'TrackParticleTruthCollection', ] -from AthenaCommon.JobProperties import jobproperties -jobproperties.Global.DetDescrVersion = 'ATLAS-GEO-10-00-00' #noMuon = True #noID = True