Skip to content

Commit 395018e

Browse files
sawenzelclaude
andcommitted
Add a test of o2-sim in multithreaded Geant4 mode
This adds the test o2sim_G4_MT, the o2sim_G4 setup with --isMT 1. It runs only with a multithreaded Geant4. https://its.cern.ch/jira/browse/O2-7305 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ee9abf3 commit 395018e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎run/CMakeLists.txt‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,36 @@ if(Geant4_multithreaded_FOUND)
244244
PROPERTIES PASS_REGULAR_EXPRESSION
245245
"EQUALITY TEST PASSED")
246246
set_property(TEST o2sim_G4_mt_equality APPEND PROPERTY ENVIRONMENT ${G4ENV})
247+
248+
# the o2sim_G4 setup in multithreaded Geant4 mode
249+
o2_add_test_command(NAME o2sim_G4_MT
250+
WORKING_DIRECTORY ${SIMTESTDIR}
251+
TIMEOUT 400
252+
COMMAND $<TARGET_FILE:${o2simExecutable}>
253+
COMMAND_LINE_ARGS --isMT
254+
1
255+
-n
256+
2
257+
-j
258+
2
259+
-e
260+
TGeant4
261+
-o
262+
o2simG4MT
263+
--chunkSize
264+
2
265+
--skipModules
266+
MFT ZDC
267+
--seed
268+
15946057944514955802
269+
--configKeyValues
270+
"align-geom.mDetectors=none"
271+
ENVIRONMENT "${SIMENV}"
272+
LABELS "g4;sim;long")
273+
set_tests_properties(o2sim_G4_MT
274+
PROPERTIES PASS_REGULAR_EXPRESSION
275+
"SIMULATION RETURNED SUCCESFULLY")
276+
set_property(TEST o2sim_G4_MT APPEND PROPERTY ENVIRONMENT ${G4ENV})
247277
endif()
248278

249279

0 commit comments

Comments
 (0)