Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:23

0001 #!/bin/bash
0002 
0003 # Pass in name and status
0004 
0005 function die { echo $1: status $2 ;  exit $2; }
0006 
0007 function test_failure { 
0008     if [ "$2" != "90" ]
0009      then
0010        echo $1: status $2; exit $2;
0011     fi
0012 }
0013 
0014 echo "running cmsRun testEarlyTerminationSignal_cfg.py"
0015 (cmsRun ${LOCAL_TEST_DIR}/testEarlyTerminationSignal_cfg.py 2>&1 | grep -q 'early termination of event: stream = 0 run = 1 lumi = 1 event = 10 : time = 50000001') || die "Early termination signal failed" $?
0016 
0017 echo "running cmsRun test_dependentPathsAndExceptions_cfg.py"
0018 (cmsRun ${LOCAL_TEST_DIR}/test_dependentPathsAndExceptions_cfg.py 2>&1 | grep -q "Intentional 'NotFound' exception for testing purposes") || die "dependent Paths and Exceptions failed" $?
0019 
0020 echo "running cmsRun test_dependentRunDataAndException_cfg.py"
0021 (cmsRun ${LOCAL_TEST_DIR}/test_dependentRunDataAndException_cfg.py 2>&1 | grep -q "Intentional 'NotFound' exception for testing purposes") || die "dependent Run data and Exceptions failed" $?
0022 
0023 echo "running cmsRun test_exceptionAtGlobalBeginRun_cfg.py"
0024 (cmsRun ${LOCAL_TEST_DIR}/test_exceptionAtGlobalBeginRun_cfg.py 2>&1 | grep -q -v "An exception of category 'transitions' occurred") || die "exception at globalBeginRun failed" $?
0025 
0026 echo "running cmsRun  test_exceptionInShortLumi_cfg.py"
0027 cmsRun ${LOCAL_TEST_DIR}/test_exceptionInShortLumi_cfg.py; test_failure "test_exceptionInShortLumi_cfg.py failed" $?