From 9ac303b455fe5527fb5ceaa8450b438f0432c7cd Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Thu, 30 Jan 2025 11:04:32 +0100 Subject: [PATCH] Fix pre-commit and add a new test --- k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp | 2 +- test/CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp b/k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp index aafbb155..14ccdea9 100644 --- a/k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp +++ b/k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp @@ -28,9 +28,9 @@ #include #include +#include #include #include -#include #include "GaudiKernel/AnyDataWrapper.h" diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5ca42b8a..cc8b0d02 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -79,6 +79,7 @@ set_tests_properties ( same_num_io # Test clicReconstruction with EDM4hep input and output ExternalData_Add_Test( marlinwrapper_tests NAME clicRec_edm4hep_input COMMAND bash -c "${CMAKE_CURRENT_SOURCE_DIR}/scripts/clicRec_e4h_input.sh DATA{${PROJECT_SOURCE_DIR}/test/input_files/ttbar_20240223_edm4hep.root} --no-iosvc") ExternalData_Add_Test( marlinwrapper_tests NAME clicRec_edm4hep_input_iosvc COMMAND bash -c "${CMAKE_CURRENT_SOURCE_DIR}/scripts/clicRec_e4h_input.sh DATA{${PROJECT_SOURCE_DIR}/test/input_files/ttbar_20240223_edm4hep.root} --iosvc") +add_test( clicRec_edm4hep_input_compare_output bash -c "diff <(podio-dump CLICPerformance/clicConfig/my_output.root | grep -v "input file:") <(podio-dump CLICPerformance/clicConfig/my_output_iosvc.root | grep -v "input file:")") # Run clicReconstruction sequence with LCIO input and output, no converters, with inter-event parallelism ExternalData_Add_Test( marlinwrapper_tests NAME clicRec_lcio_mt COMMAND bash -c "${CMAKE_CURRENT_SOURCE_DIR}/scripts/clicRec_lcio_mt.sh DATA{${PROJECT_SOURCE_DIR}/test/input_files/testSimulation.slcio}") @@ -115,4 +116,9 @@ set_tests_properties( DEPENDS CLICPerformance_setup ) +set_tests_properties( + clicRec_edm4hep_input_compare_output + PROPERTIES + DEPENDS clicRec_edm4hep_input clicRec_edm4hep_input_iosvc +)