Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-24 02:12:42

0001 #!/bin/bash
0002 
0003 test=testProcessAccelerator
0004 LOCAL_TEST_DIR=${CMSSW_BASE}/src/FWCore/Integration/test
0005 LOCAL_TMP_DIR=${CMSSW_BASE}/tmp/${SCRAM_ARCH}
0006 
0007 function die { echo Failure $1: status $2 ; exit $2 ; }
0008 
0009 pushd ${LOCAL_TMP_DIR}
0010 
0011 echo "*************************************************"
0012 echo "accelerators=*"
0013 cmsRun ${LOCAL_TEST_DIR}/${test}_cfg.py || die "cmsRun ${test}_cfg.py" $?
0014 
0015 echo "*************************************************"
0016 echo "accelerators=*, enableTest2"
0017 cmsRun ${LOCAL_TEST_DIR}/${test}_cfg.py -- --enableTest2 || die "cmsRun ${test}_cfg.py -- --enableTest2" $?
0018 
0019 echo "*************************************************"
0020 echo "accelerators=test1"
0021 cmsRun ${LOCAL_TEST_DIR}/${test}_cfg.py -- --accelerators=test1 || die "cmsRun ${test}_cfg.py -- --accelerators=test1" $?
0022 
0023 echo "*************************************************"
0024 echo "accelerators=test2"
0025 cmsRun -j testProcessAccelerators_jobreport.xml ${LOCAL_TEST_DIR}/${test}_cfg.py -- --accelerators=test2 && die "cmsRun ${test}_cfg.py -- --accelerators=test2 did not fail" 1
0026 EXIT_CODE=$(edmFjrDump --exitCode testProcessAccelerators_jobreport.xml)
0027 if [ "x${EXIT_CODE}" != "x8035" ]; then
0028     echo "ProcessAccelerator test for unavailable accelerator reported exit code ${EXIT_CODE} which is different from the expected 8035"
0029     exit 1
0030 fi
0031 
0032 echo "*************************************************"
0033 echo "accelerators=test1, enableTest2"
0034 cmsRun ${LOCAL_TEST_DIR}/${test}_cfg.py -- --accelerators=test1 --enableTest2 || die "cmsRun ${test}_cfg.py -- --accelerators=test1 --enableTest2" $?
0035 
0036 echo "*************************************************"
0037 echo "accelerators=test2, enableTest2"
0038 cmsRun ${LOCAL_TEST_DIR}/${test}_cfg.py -- --accelerators=test2 --enableTest2 || die "cmsRun ${test}_cfg.py -- --accelerators=test2 --enableTest2" $?