Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-10-05 02:13:20

0001 #!/bin/bash
0002 
0003 test=testGetBy
0004 
0005 function die { echo Failure $1: status $2 ; exit $2 ; }
0006 
0007 pushd ${LOCAL_TMP_DIR}
0008 
0009   echo "testGetBy1"
0010   cmsRun -p ${LOCAL_TEST_DIR}/${test}1_cfg.py > testGetBy1.log 2>/dev/null || die "cmsRun ${test}1_cfg.py" $?
0011   grep -v "LegacyModules" testGetBy1.log > testGetBy1_1.log
0012   diff ${LOCAL_TEST_DIR}/unit_test_outputs/testGetBy1.log testGetBy1_1.log || die "comparing testGetBy1.log" $?
0013 
0014   echo "testGetBy2"
0015   cmsRun -p ${LOCAL_TEST_DIR}/${test}2_cfg.py > testGetBy2.log 2>/dev/null || die "cmsRun ${test}2_cfg.py" $?
0016   grep -v 'Initiating request to open file\|Successfully opened file\|Closed file\|LegacyModules' testGetBy2.log > testGetBy2_1.log
0017   diff ${LOCAL_TEST_DIR}/unit_test_outputs/testGetBy2.log testGetBy2_1.log || die "comparing testGetBy2.log" $?
0018 
0019   echo "testGetBy3"
0020   cmsRun -p ${LOCAL_TEST_DIR}/${test}3_cfg.py || die "cmsRun ${test}3_cfg.py" $?
0021 
0022   echo "testConsumesInfo"
0023   cmsRun -p ${LOCAL_TEST_DIR}/testConsumesInfo_cfg.py > testConsumesInfo.log 2>/dev/null || die "cmsRun testConsumesInfo_cfg.py" $?
0024   grep -v '++\|LegacyModules' testConsumesInfo.log > testConsumesInfo_1.log
0025   rm testConsumesInfo.log
0026   rm testConsumesInfo.root
0027   diff ${LOCAL_TEST_DIR}/unit_test_outputs/testConsumesInfo_1.log testConsumesInfo_1.log || die "comparing testConsumesInfo_1.log" $?
0028 
0029   #It is intentional that this cmsRun process throws an exception
0030   echo "testDuplicateProcess"
0031   cmsRun ${LOCAL_TEST_DIR}/testDuplicateProcess_cfg.py &> testDuplicateProcess.log && die 'Failed to get exception running testDuplicateProcess_cfg.py' 1
0032   grep -q "Duplicate Process" testDuplicateProcess.log || die 'Failed to print out exception message for duplicate process name' $?
0033 
0034   echo "testGetBy1Mod"
0035   cmsRun -p ${LOCAL_TEST_DIR}/${test}1Mod_cfg.py > testGetBy1Mod.log 2>/dev/null || die "cmsRun ${test}1Mod_cfg.py" $?
0036 
0037   echo "testGetByMerge"
0038   cmsRun -p ${LOCAL_TEST_DIR}/${test}Merge_cfg.py > testGetByMerge.log 2>/dev/null || die "cmsRun ${test}Merge_cfg.py" $?
0039 
0040   echo "testGetByPlaceholder"
0041   cmsRun -p ${LOCAL_TEST_DIR}/${test}Placeholder_cfg.py || die "cmsRun ${test}Placeholder_cfg.py" $?
0042 
0043   echo "testProducesCollector"
0044   cmsRun -p ${LOCAL_TEST_DIR}/testProducesCollector_cfg.py || die "cmsRun testProducesCollector_cfg.py" $?
0045 
0046   echo "testGetByRunsMode_cfg.py"
0047   cmsRun -p ${LOCAL_TEST_DIR}/testGetByRunsMode_cfg.py || die "cmsRun testGetByRunsMode_cfg.py" $?
0048 
0049   echo "testGetByRunsLumisMode_cfg.py"
0050   cmsRun -p ${LOCAL_TEST_DIR}/testGetByRunsLumisMode_cfg.py || die "cmsRun testGetByRunsLumisMode_cfg.py" $?
0051 
0052   echo "testGetByWithEmptyRun_cfg.py"
0053   cmsRun -p ${LOCAL_TEST_DIR}/testGetByWithEmptyRun_cfg.py || die "cmsRun testGetByWithEmptyRun_cfg.py" $?
0054 
0055 popd
0056 
0057 exit 0