diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index de95f94f..0607ddbd 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -27,6 +27,12 @@ gaudi_add_module(GaudiTestAlgorithms EDM4HEP::edm4hep ) +find_program(K4RUN k4run) + +include(ExternalData) +set(ExternalData_URL_TEMPLATES + "https://key4hep.web.cern.ch:443/testFiles/ddsimOutput/%(hash)" + ) # Compile the Marlin test processors into a shared library find_package(Marlin REQUIRED) @@ -35,82 +41,75 @@ add_library(MarlinTestProcessors SHARED src/PseudoRecoProcessor.cc src/TrivialMC target_link_libraries(MarlinTestProcessors PUBLIC ${Marlin_LIBRARIES}) target_include_directories(MarlinTestProcessors PUBLIC ${Marlin_INCLUDE_DIRS}) -# Add test scripts - -find_program(BASH_PROGRAM bash) - -if (BASH_PROGRAM) - # Test simple processors - add_test( simple_processors ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/simple_processors.sh ) - - # Test simple_processors2 - add_test( simple_processors2 ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/simple_processors2.sh ) - - # CLICPerformance setup is added as a simple test that will always succeed, on - # which other tests that need it can depend, in order to make concurrent - # running of those more easily possible - add_test( CLICPerformance_setup ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/setup_clic_performance.sh ) - - # Test clicReconstruction - add_test( clicRec ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/clicRec.sh ) - - # Test converter constants - add_test( converter_constants ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/converter_constants.sh ) - - # Test indicating -1 to go over all events - add_test( all_events_bounds ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/all_events_bounds.sh ) - set_tests_properties ( all_events_bounds - PROPERTIES - PASS_REGULAR_EXPRESSION "Application Manager Terminated successfully with a user requested ScheduledStop") - - # Test putting more events than available, stopping on last available event gracefully - add_test( over_total_events ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/over_total_events.sh ) - set_tests_properties ( over_total_events - PROPERTIES - PASS_REGULAR_EXPRESSION "Application Manager Terminated successfully with a user requested ScheduledStop") - - # Test putting more events than available, stopping on last available event gracefully - add_test( same_num_io ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/same_num_io.sh ) - set_tests_properties ( same_num_io - PROPERTIES - PASS_REGULAR_EXPRESSION "Input and output have same number of events") - - # Test clicReconstruction with EDM4hep input and output - add_test( clicRec_edm4hep_input ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/clicRec_e4h_input.sh ) - - # Run clicReconstruction sequence with LCIO input and output, no converters, with inter-event parallelism - add_test( clicRec_lcio_mt ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/clicRec_lcio_mt.sh ) - - # Test the GeoSvc and TrackingCellIDEncodingSvc - add_test( clic_geo_test ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/clicGeoTest.sh ) - - # Test for checking whether the converters can resolve relations accross - # multiple processors - add_test( global_converter_maps ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/global_converter_maps.sh ) - - add_test( event_header_conversion ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/event_header.sh ) - - set_tests_properties ( - simple_processors - simple_processors2 - clicRec - converter_constants - all_events_bounds - over_total_events - same_num_io - clicRec_lcio_mt - clicRec_edm4hep_input - clic_geo_test - global_converter_maps - event_header_conversion +# Test simple processors +ExternalData_Add_Test( marlinwrapper_tests NAME simple_processors COMMAND ${K4RUN} ${CMAKE_CURRENT_SOURCE_DIR}/gaudi_opts/simple_processors.py --LcioEvent.Files DATA{${PROJECT_SOURCE_DIR}/test/input_files/muons.slcio}) + +# Test simple_processors2 +ExternalData_Add_Test( marlinwrapper_tests NAME simple_processors2 COMMAND ${K4RUN} ${CMAKE_CURRENT_SOURCE_DIR}/gaudi_opts/simple_processors2.py --LcioEvent.Files DATA{${PROJECT_SOURCE_DIR}/test/input_files/testSimulation.slcio}) + +# CLICPerformance setup is added as a simple test that will always succeed, on +# which other tests that need it can depend, in order to make concurrent +# running of those more easily possible +add_test( CLICPerformance_setup bash -c "test -d CLICPerformance || git clone --depth=1 https://github.com/iLCSoft/CLICPerformance") + +# Test clicReconstruction +ExternalData_Add_Test( marlinwrapper_tests NAME clicRec COMMAND bash -c "${CMAKE_CURRENT_SOURCE_DIR}/scripts/clicRec.sh DATA{${PROJECT_SOURCE_DIR}/test/input_files/testSimulation.slcio}" ) +# Test converter constants +add_test( converter_constants bash -c ${CMAKE_CURRENT_SOURCE_DIR}/scripts/converter_constants.sh ) + +# Test indicating -1 to go over all events +ExternalData_Add_Test( marlinwrapper_tests NAME all_events_bounds COMMAND ${K4RUN} ${CMAKE_CURRENT_SOURCE_DIR}/gaudi_opts/simple_processors.py --num-events=1 --LcioEvent.Files DATA{${PROJECT_SOURCE_DIR}/test/input_files/muons.slcio}) + +# Test putting more events than available, stopping on last available event gracefully +ExternalData_Add_Test( marlinwrapper_tests NAME over_total_events COMMAND ${K4RUN} ${CMAKE_CURRENT_SOURCE_DIR}/gaudi_opts/simple_processors.py --num-events=15 --LcioEvent.Files DATA{${PROJECT_SOURCE_DIR}/test/input_files/muons.slcio}) +set_tests_properties ( over_total_events + PROPERTIES + PASS_REGULAR_EXPRESSION "Application Manager Terminated successfully with a user requested ScheduledStop") + +# Test putting more events than available, stopping on last available event gracefully +add_test( same_num_io bash -c ${CMAKE_CURRENT_SOURCE_DIR}/scripts/same_num_io.sh ) +set_tests_properties ( same_num_io + PROPERTIES + PASS_REGULAR_EXPRESSION "Input and output have same number of events") + +# 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_podio230830_edm4hep_frame.root}") + +# 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}") + +# Test the GeoSvc and TrackingCellIDEncodingSvc +add_test( clic_geo_test ${K4RUN} ${CMAKE_CURRENT_SOURCE_DIR}/gaudi_opts/geoTest_cld.py ) + +# Test for checking whether the converters can resolve relations accross +# multiple processors +ExternalData_Add_Test( marlinwrapper_tests NAME global_converter_maps COMMAND ${K4RUN} ${CMAKE_CURRENT_SOURCE_DIR}/gaudi_opts/test_global_converter_maps.py --EventDataSvc.input DATA{${PROJECT_SOURCE_DIR}/test/input_files/ttbar_podio230830_edm4hep_frame.root}) + +add_test( event_header_conversion bash -c "k4run ${CMAKE_CURRENT_SOURCE_DIR}/gaudi_opts/createEventHeader.py && anajob test.slcio | grep 'EVENT: 42'" ) + +ExternalData_Add_Target(marlinwrapper_tests) + +set_tests_properties ( + simple_processors + simple_processors2 + clicRec + converter_constants + all_events_bounds + over_total_events + same_num_io + clicRec_lcio_mt + clicRec_edm4hep_input + clic_geo_test + global_converter_maps + event_header_conversion + PROPERTIES + ENVIRONMENT "TEST_DIR=${CMAKE_CURRENT_SOURCE_DIR};LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/lib64:$ENV{LD_LIBRARY_PATH};PYTHONPATH=${CMAKE_INSTALL_PREFIX}/python:$ENV{PYTHONPATH};EXAMPLE_DIR=${PROJECT_SOURCE_DIR}/k4MarlinWrapper/examples;MARLIN_DLL=$ENV{MARLIN_DLL}:${CMAKE_CURRENT_BINARY_DIR}/libMarlinTestProcessors.so" + ) + + set_tests_properties( + clicRec clicRec_lcio_mt clicRec_edm4hep_input PROPERTIES - ENVIRONMENT "TEST_DIR=${CMAKE_CURRENT_SOURCE_DIR};LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/lib64:$ENV{LD_LIBRARY_PATH};PYTHONPATH=${CMAKE_INSTALL_PREFIX}/python:$ENV{PYTHONPATH};EXAMPLE_DIR=${PROJECT_SOURCE_DIR}/k4MarlinWrapper/examples;MARLIN_DLL=$ENV{MARLIN_DLL}:${CMAKE_CURRENT_BINARY_DIR}/libMarlinTestProcessors.so" - ) + DEPENDS CLICPerformance_setup + ) - set_tests_properties( - clicRec clicRec_lcio_mt clicRec_edm4hep_input - PROPERTIES - DEPENDS CLICPerformance_setup - ) -endif(BASH_PROGRAM) diff --git a/test/gaudi_opts/simple_processors2.py b/test/gaudi_opts/simple_processors2.py index 401509da..801811a6 100644 --- a/test/gaudi_opts/simple_processors2.py +++ b/test/gaudi_opts/simple_processors2.py @@ -18,7 +18,8 @@ # import os -from Gaudi.Configuration import * +from Gaudi.Configuration import DEBUG +from Configurables import ApplicationMgr from Configurables import LcioEvent, EventDataSvc, MarlinProcessorWrapper algList = [] @@ -90,7 +91,6 @@ } algList.append(digiVxd2) -from Configurables import ApplicationMgr ApplicationMgr( TopAlg = algList, EvtSel = 'NONE', EvtMax = 4, diff --git a/test/gaudi_opts/test_global_converter_maps.py b/test/gaudi_opts/test_global_converter_maps.py index 05a0e807..bb6c11d9 100644 --- a/test/gaudi_opts/test_global_converter_maps.py +++ b/test/gaudi_opts/test_global_converter_maps.py @@ -18,9 +18,8 @@ # limitations under the License. # -import os -from Gaudi.Configuration import * +from Gaudi.Configuration import INFO, DEBUG from Configurables import ( PodioInput, @@ -33,9 +32,6 @@ ) evtsvc = k4DataSvc("EventDataSvc") -evtsvc.input = os.path.join( - "$TEST_DIR/inputFiles/", "ttbar_podio230830_edm4hep_frame.root" -) podioInput = PodioInput("InputReader") podioInput.collections = ["MCParticles"] diff --git a/test/input_files/muons.slcio.md5 b/test/input_files/muons.slcio.md5 new file mode 100644 index 00000000..049906c3 --- /dev/null +++ b/test/input_files/muons.slcio.md5 @@ -0,0 +1 @@ +b2c1b2bdd37882c7232404e3b12c740d \ No newline at end of file diff --git a/test/input_files/testSimulation.slcio.md5 b/test/input_files/testSimulation.slcio.md5 new file mode 100644 index 00000000..0e2fa454 --- /dev/null +++ b/test/input_files/testSimulation.slcio.md5 @@ -0,0 +1 @@ +44dd47683d708b090a9e7bb9eea1be2c \ No newline at end of file diff --git a/test/input_files/ttbar_podio230830_edm4hep_frame.root.md5 b/test/input_files/ttbar_podio230830_edm4hep_frame.root.md5 new file mode 100644 index 00000000..263b4be0 --- /dev/null +++ b/test/input_files/ttbar_podio230830_edm4hep_frame.root.md5 @@ -0,0 +1 @@ +b1100c5d6e20766216bc47cda9786dbe \ No newline at end of file diff --git a/test/scripts/all_events_bounds.sh b/test/scripts/all_events_bounds.sh deleted file mode 100644 index 6ad68d9c..00000000 --- a/test/scripts/all_events_bounds.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -## -## Copyright (c) 2019-2024 Key4hep-Project. -## -## This file is part of Key4hep. -## See https://key4hep.github.io/key4hep-doc/ for further info. -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## - -# set -eu - -if [ ! -d $TEST_DIR/inputFiles/ ]; then - mkdir $TEST_DIR/inputFiles -fi - -if [ ! -f $TEST_DIR/inputFiles/muons.slcio ]; then - wget https://github.com/AIDASoft/DD4hep/raw/master/DDTest/inputFiles/muons.slcio -P $TEST_DIR/inputFiles/ -fi - -k4run $TEST_DIR/gaudi_opts/simple_processors.py --num-events=-1 diff --git a/test/scripts/clicGeoTest.sh b/test/scripts/clicGeoTest.sh deleted file mode 100644 index b38291aa..00000000 --- a/test/scripts/clicGeoTest.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -## -## Copyright (c) 2019-2024 Key4hep-Project. -## -## This file is part of Key4hep. -## See https://key4hep.github.io/key4hep-doc/ for further info. -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## - -# exit if command or variable fails -set -eu - -k4run $TEST_DIR/gaudi_opts/geoTest_cld.py diff --git a/test/scripts/clicRec.sh b/test/scripts/clicRec.sh old mode 100644 new mode 100755 index a1ea57ca..341243db --- a/test/scripts/clicRec.sh +++ b/test/scripts/clicRec.sh @@ -21,9 +21,6 @@ # exit if command or variable fails set -eu -# Clone CLICPerformance for input files -bash $TEST_DIR/scripts/setup_clic_performance.sh - cd CLICPerformance/clicConfig python \ @@ -31,18 +28,11 @@ python \ clicReconstruction.xml \ clicReconstruction.py -# Generate slcio file if not present -if [ ! -f $TEST_DIR/inputFiles/testSimulation.slcio ]; then - echo "Input file not found. Getting it from key4hep..." - wget https://key4hep.web.cern.ch/testFiles/ddsimOutput/testSimulation.slcio -P $TEST_DIR/inputFiles/ -fi - - echo "Modifying clicReconstruction.py file..." # Replace SLCIO file path # sed -i 's|/run/simulation/with/ctest/to/create/a/file.slcio|testSimulation.slcio|g' clicReconstruction.py sed -i '1s/^/import os\n/' clicReconstruction.py -sed -i 's|/run/simulation/with/ctest/to/create/a/file.slcio|$TEST_DIR/inputFiles/testSimulation.slcio|g' clicReconstruction.py +sed -i "s|/run/simulation/with/ctest/to/create/a/file.slcio|$1|g" clicReconstruction.py # Uncomment selected optional processors sed -i 's;EvtMax = 10,;EvtMax = 3,;' clicReconstruction.py sed -i 's;"MaxRecordNumber": ["10"],;"MaxRecordNumber": ["3"],;' clicReconstruction.py diff --git a/test/scripts/clicRec_e4h_input.sh b/test/scripts/clicRec_e4h_input.sh old mode 100644 new mode 100755 index 5baaf342..7b67072a --- a/test/scripts/clicRec_e4h_input.sh +++ b/test/scripts/clicRec_e4h_input.sh @@ -21,22 +21,11 @@ # exit if command or variable fails set -eu -# Clone CLICPerformance for input files -bash $TEST_DIR/scripts/setup_clic_performance.sh - cd CLICPerformance/clicConfig -export INPUTFILE=ttbar_podio230830_edm4hep_frame.root - -# Download root file if not present -if [ ! -f $TEST_DIR/inputFiles/$INPUTFILE ]; then - echo "Input file not found. Getting it from key4hep..." - wget https://key4hep.web.cern.ch/testFiles/ddsimOutput/$INPUTFILE -P $TEST_DIR/inputFiles/ -fi - -k4run $EXAMPLE_DIR/clicRec_e4h_input.py +k4run $EXAMPLE_DIR/clicRec_e4h_input.py --EventDataSvc.input=$1 -input_num_events=$(python $TEST_DIR/python/root_num_events.py $TEST_DIR/inputFiles/$INPUTFILE) +input_num_events=$(python $TEST_DIR/python/root_num_events.py $1) output_num_events=$(python $TEST_DIR/python/root_num_events.py my_output.root) # First check do we have the same number of events in input and output diff --git a/test/scripts/clicRec_lcio_mt.sh b/test/scripts/clicRec_lcio_mt.sh old mode 100644 new mode 100755 index cd51eb9c..5ddeefbf --- a/test/scripts/clicRec_lcio_mt.sh +++ b/test/scripts/clicRec_lcio_mt.sh @@ -21,24 +21,15 @@ # exit if command or variable fails set -eu -# Clone CLICPerformance for input files -bash $TEST_DIR/scripts/setup_clic_performance.sh - cd CLICPerformance/clicConfig -# Generate slcio file if not present -if [ ! -f $TEST_DIR/inputFiles/testSimulation.slcio ]; then - echo "Input file not found. Getting it from key4hep..." - wget https://key4hep.web.cern.ch/testFiles/ddsimOutput/testSimulation.slcio -P $TEST_DIR/inputFiles/ -fi - if [ ! -f clicReconstruction_mt.py ]; then ln -s $TEST_DIR/gaudi_opts/clicReconstruction_mt.py clicReconstruction_mt.py fi -k4run clicReconstruction_mt.py +k4run clicReconstruction_mt.py --LcioEvent.Files $1 -input_num_events=$(lcio_event_counter $TEST_DIR/inputFiles/testSimulation.slcio) +input_num_events=$(lcio_event_counter $1) output_num_events=$(lcio_event_counter Output_REC_mt_lcio.slcio) echo $input_num_events diff --git a/test/scripts/converter_constants.sh b/test/scripts/converter_constants.sh old mode 100644 new mode 100755 diff --git a/test/scripts/event_header.sh b/test/scripts/event_header.sh deleted file mode 100644 index 6f32a0eb..00000000 --- a/test/scripts/event_header.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env sh -## -## Copyright (c) 2019-2024 Key4hep-Project. -## -## This file is part of Key4hep. -## See https://key4hep.github.io/key4hep-doc/ for further info. -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## - -set -eu - -k4run $TEST_DIR/gaudi_opts/createEventHeader.py -anajob test.slcio | grep "EVENT: 42" diff --git a/test/scripts/global_converter_maps.sh b/test/scripts/global_converter_maps.sh deleted file mode 100644 index 8b6a9c37..00000000 --- a/test/scripts/global_converter_maps.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env sh -## -## Copyright (c) 2019-2024 Key4hep-Project. -## -## This file is part of Key4hep. -## See https://key4hep.github.io/key4hep-doc/ for further info. -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## - -set -eu - -if [ ! -d $TEST_DIR/inputFiles/ ]; then - mkdir $TEST_DIR/inputFiles -fi - -if [ ! -f $TEST_DIR/inputFiles/ttbar_podio230830_edm4hep_frame.root ]; then - wget https://github.com/AIDASoft/DD4hep/raw/master/DDTest/inputFiles/ttbar_podio230830_edm4hep_frame.root -P $TEST_DIR/inputFiles/ -fi - -k4run $TEST_DIR/gaudi_opts/test_global_converter_maps.py diff --git a/test/scripts/over_total_events.sh b/test/scripts/over_total_events.sh deleted file mode 100644 index d3a2e0cf..00000000 --- a/test/scripts/over_total_events.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -## -## Copyright (c) 2019-2024 Key4hep-Project. -## -## This file is part of Key4hep. -## See https://key4hep.github.io/key4hep-doc/ for further info. -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## - -# set -eu - -if [ ! -d $TEST_DIR/inputFiles/ ]; then - mkdir $TEST_DIR/inputFiles -fi - -if [ ! -f $TEST_DIR/inputFiles/muons.slcio ]; then - wget https://github.com/AIDASoft/DD4hep/raw/master/DDTest/inputFiles/muons.slcio -P $TEST_DIR/inputFiles/ -fi - -k4run $TEST_DIR/gaudi_opts/simple_processors.py --num-events=15 diff --git a/test/scripts/same_num_io.sh b/test/scripts/same_num_io.sh old mode 100644 new mode 100755 diff --git a/test/scripts/setup_clic_performance.sh b/test/scripts/setup_clic_performance.sh deleted file mode 100644 index 23dd21af..00000000 --- a/test/scripts/setup_clic_performance.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash -## -## Copyright (c) 2019-2024 Key4hep-Project. -## -## This file is part of Key4hep. -## See https://key4hep.github.io/key4hep-doc/ for further info. -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## - -if [ ! -d CLICPerformance ]; then - git clone --depth=1 https://github.com/iLCSoft/CLICPerformance -fi diff --git a/test/scripts/simple_processors.sh b/test/scripts/simple_processors.sh deleted file mode 100644 index 8ef78513..00000000 --- a/test/scripts/simple_processors.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -## -## Copyright (c) 2019-2024 Key4hep-Project. -## -## This file is part of Key4hep. -## See https://key4hep.github.io/key4hep-doc/ for further info. -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## - -# set -eu - -if [ ! -d $TEST_DIR/inputFiles/ ]; then - mkdir $TEST_DIR/inputFiles -fi - -if [ ! -f $TEST_DIR/inputFiles/muons.slcio ]; then - wget https://github.com/AIDASoft/DD4hep/raw/master/DDTest/inputFiles/muons.slcio -P $TEST_DIR/inputFiles/ -fi - -k4run $TEST_DIR/gaudi_opts/simple_processors.py diff --git a/test/scripts/simple_processors2.sh b/test/scripts/simple_processors2.sh deleted file mode 100644 index 1c5c06ed..00000000 --- a/test/scripts/simple_processors2.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -## -## Copyright (c) 2019-2024 Key4hep-Project. -## -## This file is part of Key4hep. -## See https://key4hep.github.io/key4hep-doc/ for further info. -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## - -if [ ! -d $TEST_DIR/inputFiles/ ]; then - mkdir $TEST_DIR/inputFiles/ -fi - - -if [ ! -f $TEST_DIR/inputFiles/testSimulation.slcio ]; then - echo "Input file not found. Getting it from key4hep..." - wget https://key4hep.web.cern.ch/testFiles/ddsimOutput/testSimulation.slcio -P $TEST_DIR/inputFiles/ -fi - -k4run $TEST_DIR/gaudi_opts/simple_processors2.py