Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-06 22:54:40

0001 #!/bin/sh
0002 set -x
0003 LOCAL_TEST_DIR=${CMSSW_BASE}/src/FWCore/Integration/test
0004 LOCAL_TMP_DIR=${CMSSW_BASE}/tmp/${SCRAM_ARCH}
0005 
0006 # Pass in name and status
0007 function die { echo $1: status $2 ;  exit $2; }
0008 
0009 pushd ${LOCAL_TMP_DIR}
0010 
0011 cmsRun ${LOCAL_TEST_DIR}/CatchCmsExceptiontest_cfg.py &> CatchCmsException.log && die 'Failed in using CatchCmsException_cfg.py' 1
0012 
0013 grep -q WhatsItESProducer CatchCmsException.log || die 'Failed to find Producers name' $?
0014 
0015 #echo running cmsRun testSkipEvent_cfg.py
0016 #cmsRun ${LOCAL_TEST_DIR}/testSkipEvent_cfg.py &> testSkipEvent.log || die 'Failed in using testSkipEvent_cfg.py' $?
0017 
0018 #echo running cmsRun CatchCmsExceptionFromSource_cfg.py
0019 
0020 #cmsRun ${LOCAL_TEST_DIR}/CatchCmsExceptionFromSource_cfg.py &> CatchCmsExceptionFromSource.log && \
0021 #die 'Failed because expected exception was not thrown while running cmsRun CatchCmsExceptionFromSource_cfg.py' 1
0022 
0023 #grep -q "Calling Source::beginRun" CatchCmsExceptionFromSource.log || die 'Failed to find string Calling Source::beginRun' $?
0024 
0025 # It is intentional that this test throws an exception. The test fails if it does not.
0026 cmsRun ${LOCAL_TEST_DIR}/testMissingDictionaryChecking_cfg.py &> testMissingDictionaryChecking.log && die 'Failed to get exception running testMissingDictionaryChecking_cfg.py' 1
0027 grep -q MissingDictionaryTestF testMissingDictionaryChecking.log || die 'Failed to print out exception message with missing dictionary listed' $?
0028 
0029 popd
0030 
0031 #grep -w ESProducer CatcheStdException.log