Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:39

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