Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/bin/bash
0002 
0003 test=testSubProcess
0004 
0005 function die { echo Failure $1: status $2 ; exit $2 ; }
0006 
0007 pushd ${LOCAL_TMP_DIR}
0008 
0009   rm -f testSubProcess.grep.txt
0010   rm -f ${test}.log
0011 
0012   echo cmsRun testSubProcess_cfg.py
0013   cmsRun -p ${LOCAL_TEST_DIR}/${test}_cfg.py >& ${test}.log 2>&1 || die "cmsRun ${test}_cfg.py" $?
0014   grep Doodad ${test}.log > testSubProcess.grep.txt
0015   diff ${LOCAL_TEST_DIR}/unit_test_outputs/testSubProcess.grep.txt testSubProcess.grep.txt || die "comparing testSubProcess.grep.txt" $?
0016   grep "++" ${test}.log | grep -v "Disabling gnu" > testSubProcess.grep2.txt
0017   diff ${LOCAL_TEST_DIR}/unit_test_outputs/testSubProcess.grep2.txt testSubProcess.grep2.txt || die "comparing testSubProcess.grep2.txt" $?
0018 
0019   echo cmsRun readSubProcessOutput_cfg.py
0020   cmsRun -p ${LOCAL_TEST_DIR}/readSubProcessOutput_cfg.py || die "cmsRun readSubProcessOutput_cfg.py" $?
0021 
0022 
0023   echo cmsRun testSubProcessEventSetup_cfg.py
0024   cmsRun -p ${LOCAL_TEST_DIR}/testSubProcessEventSetup_cfg.py > testSubProcessEventSetup.log 2>&1 || die "cmsRun testSubProcessEventSetup_cfg.py" $?
0025   grep "Sharing" testSubProcessEventSetup.log > testSubProcessEventSetup.grep.txt
0026   diff ${LOCAL_TEST_DIR}/unit_test_outputs/testSubProcessEventSetup.grep.txt  testSubProcessEventSetup.grep.txt || die "comparing testSubProcessEventSetup.grep.txt" $?
0027 
0028   echo cmsRun testSubProcessEventSetup1_cfg.py
0029   cmsRun -p ${LOCAL_TEST_DIR}/testSubProcessEventSetup1_cfg.py > testSubProcessEventSetup1.log 2>&1 || die "cmsRun testSubProcessEventSetup1_cfg.py" $?
0030   grep "ESTestAnalyzerB: p" testSubProcessEventSetup1.log > testSubProcessEventSetup1.grep.txt
0031   grep "ESTestAnalyzerK: p" testSubProcessEventSetup1.log >> testSubProcessEventSetup1.grep.txt
0032   grep "Sharing" testSubProcessEventSetup1.log >> testSubProcessEventSetup1.grep.txt
0033   diff ${LOCAL_TEST_DIR}/unit_test_outputs/testSubProcessEventSetup1.grep.txt  testSubProcessEventSetup1.grep.txt || die "comparing testSubProcessEventSetup1.grep.txt" $?
0034 
0035   echo cmsRun testSubProcessUnscheduled_cfg.py
0036   cmsRun -p ${LOCAL_TEST_DIR}/testSubProcessUnscheduled_cfg.py || die "cmsRun testSubProcessUnscheduled_cfg.py" $?
0037 
0038   echo cmsRun testSubProcessUnscheduledRead_cfg.py
0039   cmsRun -p ${LOCAL_TEST_DIR}/testSubProcessUnscheduledRead_cfg.py || die "cmsRun testSubProcessUnscheduledRead_cfg.py" $?
0040 
0041 popd
0042 
0043 exit 0