Skip to content

Commit

Permalink
Add some more tests for the tracking arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel committed Aug 30, 2024
1 parent c8609ab commit dba5d4c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,24 @@ add_test(NAME LCFIJet
)
set_property(TEST LCFIJet APPEND PROPERTY DEPENDS ddsim_edm4hep)

add_test(NAME tracking_truth
WORKING_DIRECTORY ${CLDConfig_DIR}
COMMAND k4run --trackingOnly --truthTracking --inputFiles=test.edm4hep.root --outputBasename=trkOnly_test_edm4hep CLDReconstruction.py --GeoSvc.detectors=${DETECTOR}
)
set_property(TEST tracking_truth APPEND PROPERTY DEPENDS ddsim_edm4hep)

add_test(NAME tracking_conformal
WORKING_DIRECTORY ${CLDConfig_DIR}
COMMAND k4run --trackingOnly --conformalTracking --inputFiles=test.edm4hep.root --outputBasename=trkOnly_test_edm4hep CLDReconstruction.py --GeoSvc.detectors=${DETECTOR}
)
set_property(TEST tracking_conformal APPEND PROPERTY DEPENDS ddsim_edm4hep)

add_test(NAME tracking_both
WORKING_DIRECTORY ${CLDConfig_DIR}
COMMAND k4run --trackingOnly --conformalTracking --truthTracking --inputFiles=test.edm4hep.root --outputBasename=trkOnly_test_edm4hep CLDReconstruction.py --GeoSvc.detectors=${DETECTOR}
)
set_property(TEST tracking_both APPEND PROPERTY PASS_REGULAR_EXPRESSION "error: argument --truthTracking: not allowed with argument --conformalTracking")

add_test(NAME Help
WORKING_DIRECTORY ${CLDConfig_DIR}
COMMAND k4run --help CLDReconstruction.py
Expand Down

0 comments on commit dba5d4c

Please sign in to comment.