Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/bin/sh
0002 
0003 function die { echo $1: status $2 ;  exit $2; }
0004 
0005 cmsRun ${SCRAM_TEST_PATH}/inputSourceTest_cfg.py || die 'Failed in inputSourceTest_cfg.py' $?
0006 
0007 cmsRun ${SCRAM_TEST_PATH}/testLateLumiClosure_cfg.py || die 'Failed in testLateLumiClosure_cfg.py' $?
0008 
0009 # The following demonstrates declaring the last run or lumi entry to be merged eliminates the delay
0010 # before globalBeginRun and globalBeginLumi while waiting for the next thing to arrive
0011 # to know that the last entry to be merged has already arrived. (Note the previous test is very similar
0012 # and shows the delay, running without enableDeclareLast will also demonstrate it).
0013 
0014 cmsRun ${SCRAM_TEST_PATH}/testDeclareLastEntryForMerge_cfg.py --enableDeclareLast --multipleEntriesForRun 2 --multipleEntriesForLumi 4 || die 'Failed in testDeclareLastEntryForMerge_cfg.py' $?
0015 
0016 # The next two cmsRun processes should throw an exception (intentional)
0017 # These two tests show the Framework will detect a buggy InputSource that
0018 # declares something last that is NOT last.
0019 
0020 cmsRun ${SCRAM_TEST_PATH}/testDeclareLastEntryForMerge_cfg.py --enableDeclareAllLast --multipleEntriesForRun 1 && die 'Failed in testDeclareLastEntryForMerge_cfg.py, last run source bug not detected' 1
0021 
0022 cmsRun ${SCRAM_TEST_PATH}/testDeclareLastEntryForMerge_cfg.py --enableDeclareAllLast --multipleEntriesForLumi 2 && die 'Failed in testDeclareLastEntryForMerge_cfg.py, last lumi source bug not detected' 1
0023 
0024 exit 0