From 9ad5653f652d2a975358ad5efcff7571d030422f Mon Sep 17 00:00:00 2001 From: Marco Giacalone Date: Tue, 28 Oct 2025 15:35:26 +0100 Subject: [PATCH] Add environment variable exports for dependencies Set environment variables for Herwig, GSL, ThePEG, and nlohmann_json packages. Tests with O2DPG generators were failing because these path are included when loading the environments, but not at building time. --- o2dpg-sim-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/o2dpg-sim-tests.sh b/o2dpg-sim-tests.sh index c02c7ca9ee..07188a701c 100644 --- a/o2dpg-sim-tests.sh +++ b/o2dpg-sim-tests.sh @@ -18,6 +18,10 @@ rm -Rf ${TEST_DIR} mkdir ${TEST_DIR} pushd ${TEST_DIR} +# Add Herwig, GSL, ThePEG and nlohmann_json packages to root include path and library path at building time +export ROOT_INCLUDE_PATH="$THEPEG_ROOT/include:$HERWIG_ROOT/include:$GSL_ROOT/include:$NLOHMANN_JSON_ROOT/include:$ROOT_INCLUDE_PATH" +export LD_LIBRARY_PATH="$THEPEG_ROOT/lib/ThePEG:$HERWIG_ROOT/lib/Herwig:$GSL_ROOT/lib:$LD_LIBRARY_PATH" + # check if LHAPDF data path is set if [ -z "$LHAPDF_DATA_PATH" ]; then echo "Setting LHAPDF_DATA_PATH to $LHAPDF_ROOT/share/LHAPDF:$LHAPDF_PDFSETS_ROOT/share/LHAPDF"