From fcbab0ac420846e18f48501c985b7b99da6a1448 Mon Sep 17 00:00:00 2001 From: John Chapman <jchapman@cern.ch> Date: Fri, 10 Jan 2020 14:14:34 +0100 Subject: [PATCH] Migrate InDetBCM_EventAthenaPool TPCnv unit tests to ComponentAccumulator InDetBCM_EventAthenaPool_20.1.7.2_test - passes --- .../InDetBCM_EventAthenaPool/CMakeLists.txt | 3 ++- .../InDetBCM_EventAthenaPool_20.1.7.2_test.py | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 InnerDetector/InDetEventCnv/InDetBCM_EventAthenaPool/test/InDetBCM_EventAthenaPool_20.1.7.2_test.py diff --git a/InnerDetector/InDetEventCnv/InDetBCM_EventAthenaPool/CMakeLists.txt b/InnerDetector/InDetEventCnv/InDetBCM_EventAthenaPool/CMakeLists.txt index 98e6ddf0ea2..a25af91b259 100644 --- a/InnerDetector/InDetEventCnv/InDetBCM_EventAthenaPool/CMakeLists.txt +++ b/InnerDetector/InDetEventCnv/InDetBCM_EventAthenaPool/CMakeLists.txt @@ -33,12 +33,13 @@ atlas_add_test( BCM_RDO_ContainerCnv_p0_test # Install files from the package: atlas_install_joboptions( share/*.py ) +atlas_install_scripts( test/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) # Set up (a) test(s) for the converter(s): find_package( AthenaPoolUtilitiesTest ) if( ATHENAPOOLUTILITIESTEST_FOUND ) - run_tpcnv_legacy_test( InDetBCM_EventAthenaPool_20.1.7.2 ESD-20.1.7.2 ) + run_tpcnv_test( InDetBCM_EventAthenaPool_20.1.7.2 ESD-20.1.7.2 ) else() message( WARNING "Couldn't find AthenaPoolUtilitiesTest. No test(s) set up." ) diff --git a/InnerDetector/InDetEventCnv/InDetBCM_EventAthenaPool/test/InDetBCM_EventAthenaPool_20.1.7.2_test.py b/InnerDetector/InDetEventCnv/InDetBCM_EventAthenaPool/test/InDetBCM_EventAthenaPool_20.1.7.2_test.py new file mode 100755 index 00000000000..83f49043906 --- /dev/null +++ b/InnerDetector/InDetEventCnv/InDetBCM_EventAthenaPool/test/InDetBCM_EventAthenaPool_20.1.7.2_test.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +""" +Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration +""" + +from AthenaPoolUtilities.TPCnvTestConfig import TPCnvTest + +if __name__ == "__main__": + infile = 'esd/ESD-20.1.7.2.pool.root' + + keys = [ + #BCM_RDO_Container_p0 + 'BCM_CompactDOs', + 'BCM_RDOs', + ] + + TPCnvTest(infile, keys) -- GitLab