Warning, file /job_submission_condor/scripts/submit_osg_test.sh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002 set -Euo pipefail
0003 trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
0004 IFS=$'\n\t'
0005
0006
0007 if [ $
0008 echo "Usage: "
0009 echo " $0 <resource>"
0010 exit
0011 fi
0012
0013 TEMPLATE=osg_test
0014
0015
0016
0017 RESOURCENAME=${1}
0018 shift
0019
0020
0021 EXECUTABLE="./scripts/run_osg_test.sh"
0022 ARGUMENTS=""
0023
0024
0025 ENVIRONMENT=environment.sh
0026 sed "
0027 s|%S3_ACCESS_KEY%|${S3_ACCESS_KEY:-}|g;
0028 s|%S3_SECRET_KEY%|${S3_SECRET_KEY:-}|g;
0029 " templates/${TEMPLATE}.sh.in > ${ENVIRONMENT}
0030
0031
0032 SUBMIT_FILE=${TEMPLATE}.submit
0033 sed "
0034 s|%EXECUTABLE%|${EXECUTABLE}|g;
0035 s|%ARGUMENTS%|${ARGUMENTS}|g;
0036 s|%JUG_XL_TAG%|${JUG_XL_TAG:-nightly}|g;
0037 s|%ENVIRONMENT%|${ENVIRONMENT}|g;
0038 s|%RESOURCENAME%|${RESOURCENAME}|g;
0039 " templates/${TEMPLATE}.submit.in > ${SUBMIT_FILE}
0040
0041
0042 condor_submit ${SUBMIT_FILE}