Skip to content

Commit a7433af

Browse files
committed
more improvements for 2tag testing
1 parent a767cbc commit a7433af

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

MC/run/ANCHOR/tests/test_anchor_2tag_template.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,16 @@ export CYCLE=0
5353
# generator and other sim configuration
5454
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="%{SIM_OPTIONS}"
5555

56+
export O2DPG_CUSTOM_REPO="%{O2DPG_CUSTOM_REPO}"
57+
5658
# we allow the possibility to use a special O2DPG version
5759
if [ "${O2DPG_CUSTOM_REPO}" ]; then
60+
echo "Checking out custom O2DPG repo ${O2DPG_CUSTOM_REPO}"
5861
git clone "${O2DPG_CUSTOM_REPO}" O2DPG
5962
export O2DPG_ROOT=${PWD}/O2DPG
6063
export ALIEN_JDL_O2DPG_OVERWRITE=${PWD}/O2DPG
64+
else
65+
echo "Using O2DPG from released software tag ${O2DPG_ROOT}"
6166
fi
6267

6368
# execute MC

MC/run/ANCHOR/tests/test_looper.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,17 @@ done
8080
# put the require spec
8181
sed -i "s/%{JDL_REQUIREMENT}/${REQUIRE_STRING}/g" "$OUTPUT_FILE_FINAL"
8282

83+
# inject custom repo if available
84+
if [ "${O2DPG_CUSTOM_REPO}" ]; then
85+
sed -i "s|%{O2DPG_CUSTOM_REPO}|${O2DPG_CUSTOM_REPO}|g" "$OUTPUT_FILE_FINAL"
86+
fi
87+
88+
TOPWORKDIR=2tag_release_testing_${BUILD_TAG:-${SOFTWARETAG_SIM}}
89+
8390
# we submit the test to the GRID (multiplicity of 4)
8491
# ${WORKING_DIR}/submit_case${count}_${SOFTWARETAG_ASYNC//::/-}
85-
echo "${O2DPG_ROOT}/GRID/utils/grid_submit.sh --prodsplit 4 --singularity --ttl 3600 --script ${OUTPUT_FILE_FINAL} --jobname "anchorTest_${count}" --wait-any --topworkdir 2tag_release_testing_${SOFTWARETAG_SIM}" > ${WORKING_DIR}/submit_case${count}.sh
92+
echo "${O2DPG_ROOT}/GRID/utils/grid_submit.sh --prodsplit 4 --singularity --ttl 3600 --script ${OUTPUT_FILE_FINAL} \
93+
--jobname "anchorTest_${count}" --wait-any --topworkdir ${TOPWORKDIR}" > ${WORKING_DIR}/submit_case${count}.sh
8694
# TODO: optional local execution with --local option
8795

8896
((count++)) # Increment counter for next row

0 commit comments

Comments
 (0)