From 8d69161917c2f6d0f89a66f240a776588222ee31 Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Thu, 3 Aug 2023 16:32:24 +0200 Subject: [PATCH] add checkExampleEventData_unbounded test --- test/k4FWCoreTest/CMakeLists.txt | 12 ++++++- .../checkExampleEventData_unbounded.py | 33 +++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 test/k4FWCoreTest/options/checkExampleEventData_unbounded.py diff --git a/test/k4FWCoreTest/CMakeLists.txt b/test/k4FWCoreTest/CMakeLists.txt index 670a986c..bb17dc5a 100644 --- a/test/k4FWCoreTest/CMakeLists.txt +++ b/test/k4FWCoreTest/CMakeLists.txt @@ -58,7 +58,17 @@ add_test(NAME CheckExampleEventData ) set_test_env(CheckExampleEventData) set_tests_properties( CheckExampleEventData - PROPERTIES DEPENDS CreateExampleEventData) + PROPERTIES + DEPENDS CreateExampleEventData) + +add_test(NAME CheckExampleEventData_unbounded + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} + COMMAND ${K4RUN} options/checkExampleEventData_unbounded.py +) +set_test_env(CheckExampleEventData_unbounded) +set_tests_properties( CheckExampleEventData_unbounded + PROPERTIES + DEPENDS CreateExampleEventData) add_test(NAME CreateExampleEventData_cellID WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} diff --git a/test/k4FWCoreTest/options/checkExampleEventData_unbounded.py b/test/k4FWCoreTest/options/checkExampleEventData_unbounded.py new file mode 100644 index 00000000..9b75d977 --- /dev/null +++ b/test/k4FWCoreTest/options/checkExampleEventData_unbounded.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python3 +from Gaudi.Configuration import * + +from Configurables import k4DataSvc + +podioevent = k4DataSvc("EventDataSvc") +podioevent.input = "output_k4test_exampledata.root" + +from Configurables import PodioInput + +inp = PodioInput() +inp.collections = [ + "VectorFloat", + "MCParticles", + "SimTrackerHits", + "TrackerHits", + "Tracks", +] + +from Configurables import k4FWCoreTest_CheckExampleEventData + +checker = k4FWCoreTest_CheckExampleEventData() + +from Configurables import ApplicationMgr + +ApplicationMgr( + TopAlg=[inp, checker], + EvtSel="NONE", + EvtMax=-1, + ExtSvc=[podioevent], + OutputLevel=INFO, + StopOnSignal=True, +)