Skip to content

Commit

Permalink
add checkExampleEventData_unbounded test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel committed Aug 3, 2023
1 parent 60150d5 commit 8d69161
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/k4FWCoreTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
33 changes: 33 additions & 0 deletions test/k4FWCoreTest/options/checkExampleEventData_unbounded.py
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit 8d69161

Please sign in to comment.