File indexing completed on 2024-04-06 12:18:19
0001
0002
0003
0004 function die {
0005 printf "\n%s: status %s\n" "$1" "$2"
0006 exit $2
0007 }
0008
0009 if [ -z "${SCRAM_TEST_PATH}" ]; then
0010 printf "\n%s\n" "ERROR -- environment variable SCRAM_TEST_PATH not defined"
0011 printf "%s\n" " (hint: see readme file in the directory of this script)"
0012 exit 1
0013 fi
0014
0015
0016 inputFileList="${SCRAM_TEST_PATH}"/testAccessToEDMInputsOfHLTTests_filelist.txt
0017
0018 if [ ! -f "${inputFileList}" ]; then
0019 printf "\n%s\n" "ERROR -- invalid path to file listing EDM input files:"
0020 printf "%s\n" " ${inputFileList}"
0021 exit 1
0022 fi
0023
0024 for inputFile in $(cat "${inputFileList}"); do
0025 cmsRun "${SCRAM_TEST_PATH}"/testAccessToEDMInputsOfHLTTests_cfg.py inputFiles="${inputFile}" \
0026 || die "Failure running testAccessToEDMInputsOfHLTTests_cfg.py" $?
0027 done
0028 unset inputFile