From fe4a3d1c7ce94e97597a5978091457f454d8b668 Mon Sep 17 00:00:00 2001 From: Marco Clemencic Date: Fri, 11 Apr 2025 23:06:35 +0200 Subject: [PATCH] Add pytest dependencies (for super-project environment) --- Hlt/Hlt2Conf/CMakeLists.txt | 7 ++++++- Hlt/Moore/CMakeLists.txt | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Hlt/Hlt2Conf/CMakeLists.txt b/Hlt/Hlt2Conf/CMakeLists.txt index adf8f91353c..527f12bea54 100644 --- a/Hlt/Hlt2Conf/CMakeLists.txt +++ b/Hlt/Hlt2Conf/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# (c) Copyright 2000-2021 CERN for the benefit of the LHCb Collaboration # +# (c) Copyright 2000-2025 CERN for the benefit of the LHCb Collaboration # # # # This software is distributed under the terms of the GNU General Public # # Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". # @@ -16,6 +16,11 @@ Hlt/Hlt2Conf gaudi_install(PYTHON) gaudi_add_tests(pytest ${CMAKE_CURRENT_SOURCE_DIR}/python) +foreach(tgt IN ITEMS Gaudi_MergeConfdb LHCb_MergeConfdb Lbcom_MergeConfdb Rec_MergeConfdb Allen_MergeConfdb GaudiKernelDict GaudiPythonDict DAQEventDict) + if(TARGET ${tgt}_MergeConfdb) + add_dependencies(pytest-prefetch-Hlt2Conf-Hlt2Conf.pytest.python ${tgt}) + endif() +endforeach() gaudi_add_tests(QMTest) if(BINARY_TAG MATCHES "san$") diff --git a/Hlt/Moore/CMakeLists.txt b/Hlt/Moore/CMakeLists.txt index 180bf6d95cf..c1b2cf8af13 100644 --- a/Hlt/Moore/CMakeLists.txt +++ b/Hlt/Moore/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# (c) Copyright 2000-2021 CERN for the benefit of the LHCb Collaboration # +# (c) Copyright 2000-2025 CERN for the benefit of the LHCb Collaboration # # # # This software is distributed under the terms of the GNU General Public # # Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". # @@ -16,6 +16,11 @@ Hlt/Moore gaudi_install(PYTHON) gaudi_add_tests(pytest ${CMAKE_CURRENT_SOURCE_DIR}/python) +foreach(project IN ITEMS Gaudi LHCb Lbcom Rec Allen) + if(TARGET ${project}_MergeConfdb) + add_dependencies(pytest-prefetch-Moore-Moore.pytest.python ${project}_MergeConfdb) + endif() +endforeach() gaudi_add_tests(QMTest) if(NOT USE_DD4HEP) -- GitLab