Skip to content

Commit

Permalink
feat: unit tests for ddsim actions (no output checks)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Feb 6, 2024
1 parent 028c796 commit e5834cf
Show file tree
Hide file tree
Showing 3 changed files with 573 additions and 2 deletions.
17 changes: 15 additions & 2 deletions DDTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,21 @@ if (DD4HEP_USE_GEANT4)

add_test( t_ddsimUserPlugins "${CMAKE_INSTALL_PREFIX}/bin/run_test.sh"
ddsim --compactFile=${CMAKE_INSTALL_PREFIX}/DDDetectors/compact/SiD.xml --runType=batch -N=10
--outputFile=t_ddsimUserPlugins.root -G --steeringFile ${CMAKE_CURRENT_SOURCE_DIR}/python/userSteeringFile.PY
--part.userParticleHandler=)
--outputFile=t_ddsimUserPlugins.root -G
--steeringFile ${CMAKE_CURRENT_SOURCE_DIR}/python/userPluginsSteeringFile.PY
--part.userParticleHandler=
)

add_test( t_ddsimUserActions "${CMAKE_INSTALL_PREFIX}/bin/run_test.sh"
ddsim --compactFile=${CMAKE_INSTALL_PREFIX}/DDDetectors/compact/SiD.xml --runType=batch -N=10
--outputFile=t_ddsimUserActions.root -G
--steeringFile ${CMAKE_CURRENT_SOURCE_DIR}/python/userActionsSteeringFile.PY
--action.event "Geant4TestEventAction/EventActionCLI1"
--action.step "Geant4TestStepAction/StepActionCLI1,Geant4TestStepAction/StepActionCLI2"
--action.step '[ "Geant4TestStepAction/StepActionCLI2", "Geant4TestStepAction/StepActionCLI3" ]'
--action.stack '{ "name" : "Geant4TestStackAction/StackActionCLI1" , "parameter" : { "Property_int" : 10 } }'
--action.stack '[ { "name" : "Geant4TestStackAction/StackActionCLI2" , "parameter" : { "Property_int" : 10 } } ]'
)

endif()
install(DIRECTORY include/DD4hep DESTINATION include)
Expand Down
Loading

0 comments on commit e5834cf

Please sign in to comment.