From ca7e3f5975239d48ba7a64d73fc157dbe834777e Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Fri, 30 Aug 2024 13:16:17 +0200 Subject: [PATCH] Add some more tests for the tracking arguments --- test/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b898708..932f858 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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_truth_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_conformal_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 CLDReconstruction.py +) +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