Skip to content
Snippets Groups Projects

Synchronize master branch with 2024-patches

Merged Marco Clemencic requested to merge 2024-patches-sync into master
7 files
+ 224
0
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 58
0
###############################################################################
# (c) Copyright 2024 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". #
# #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
# Test to check that the decoding Keys from Hlt2 and Sprucing are propagated correctly to the FSR (FileSummaryRecord)
# Creating a dedicated test for each steps of the chain.
# All tests are split in two steps:
# Run: via 'logscript.sh' script for running the test and dumping the related stdout and stderr
# Validate: via 'validator.sh' script for checking that the stderr file exists and is empty.
#
# From stack run with "make fast/LHCbIntegrationTests/test ARGS='-R WriteDecKeystoFSR'"
get_project_version(Moore)
get_project_version(DaVinci)
set(src_dir ${CMAKE_CURRENT_SOURCE_DIR})
set(util_dir ${src_dir}/../Utilities/)
string(FIND "$ENV{BINARY_TAG}" "detdesc" idx)
if(idx EQUAL -1)
# Run and validate HLT2
add_test(NAME FSR_decodingKeys.WriteDecKeystoFSR.RunHLT2
COMMAND ${util_dir}/logscript.sh FSR_decodingKeys.WriteDecKeystoFSR.RunHLT2.stdout.log FSR_decodingKeys.WriteDecKeystoFSR.RunHLT2.stderr.log
${Moore_run} lbexec Moore.tests.lhcbintegrationtests_options_decodingkeys:hlt2_2_or_3body_topo ${src_dir}/options_moore_hlt2.yaml)
set_property(TEST FSR_decodingKeys.WriteDecKeystoFSR.RunHLT2 PROPERTY TIMEOUT 3600)
add_test(NAME FSR_decodingKeys.WriteDecKeystoFSR.ValidateHLT2
COMMAND ${util_dir}/validator.sh FSR_decodingKeys.WriteDecKeystoFSR.RunHLT2.stderr.log)
set_property(TEST FSR_decodingKeys.WriteDecKeystoFSR.ValidateHLT2
APPEND PROPERTY DEPENDS FSR_decodingKeys.WriteDecKeystoFSR.RunHLT2)
# Run and validate Sprucing
add_test(NAME FSR_decodingKeys.WriteDecKeystoFSR.RunSpruce
COMMAND ${util_dir}/logscript.sh FSR_decodingKeys.WriteDecKeystoFSR.RunSpruce.stdout.log FSR_decodingKeys.WriteDecKeystoFSR.RunSpruce.stderr.log
${Moore_run} lbexec Hlt2Conf.Sprucing_tests:spruce_test_lines ${src_dir}/options_moore_spruce.yaml)
set_property(TEST FSR_decodingKeys.WriteDecKeystoFSR.RunSpruce
APPEND PROPERTY DEPENDS FSR_decodingKeys.WriteDecKeystoFSR.RunHLT2)
add_test(NAME FSR_decodingKeys.WriteDecKeystoFSR.ValidateSpruce
COMMAND ${util_dir}/validator.sh FSR_decodingKeys.WriteDecKeystoFSR.RunSpruce.stderr.log)
set_property(TEST FSR_decodingKeys.WriteDecKeystoFSR.ValidateSpruce
APPEND PROPERTY DEPENDS FSR_decodingKeys.WriteDecKeystoFSR.RunSpruce)
# Validate decoding Keys
add_test(NAME FSR_decodingKeys.WriteDecKeystoFSR.ValidateDecKeys
COMMAND ${util_dir}/logscript.sh FSR_decodingKeys.RunSpruceFSR.stdout.log FSR_decodingKeys.RunSpruceFSR.stderr.log
${Moore_run} python ${src_dir}/validate_FSRDecodingKeys.py spruce_test_lines_production.dst ${src_dir}/expected_keys.json)
set_property(TEST FSR_decodingKeys.WriteDecKeystoFSR.ValidateDecKeys
APPEND PROPERTY DEPENDS FSR_decodingKeys.WriteDecKeystoFSR.RunSpruce)
endif()
Loading