Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-04 04:34:58

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