Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:49

0001 #!/bin/bash
0002 
0003 #
0004 #$Id: runall.sh,v 1.1 2006/11/22 17:40:35 lsexton Exp $
0005 #
0006 #Dummy script to run all integration tests
0007 #
0008 #
0009 
0010 testsRecoEgamma="
0011 RecoEgamma_ele_E2000.cfg
0012 RecoEgamma_ele_E50.cfg
0013 RecoEgamma_ele_pt100.cfg
0014 RecoEgamma_ele_pt10.cfg
0015 RecoEgamma_ele_pt35.cfg
0016 RecoEgamma_Hgg_120.cfg
0017 RecoEgamma_HZZ4e_150.cfg
0018 RecoEgamma_pho_E50.cfg
0019 RecoEgamma_pho_pt35.cfg
0020 RecoEgamma_pho_pt50.cfg
0021 RecoEgamma_Zee.cfg
0022 "
0023 
0024 testsRecoJets="
0025 RecoJets_Zprime700Dijets.cfg
0026 "
0027 
0028 testsMET="
0029 RecoMET_Zjets_Dimuons_300-380.cfg
0030 "
0031 
0032 testsTau="
0033 RecoTau_DiTaus_pt_20-420.cfg
0034 "
0035 
0036 tests=`echo  $testsRecoEgamma $testsRecoJets $testsMET $testsTau`
0037 
0038 report=""
0039 
0040 let nfail=0
0041 let npass=0
0042 
0043 echo "Tests to be run : " $tests
0044 
0045 eval `scramv1 runtime -sh`
0046 
0047 for file in $tests 
0048 do
0049     echo Preparing to run $file
0050     let starttime=`date "+%s"`
0051     cmsRun $file
0052     let exitcode=$?
0053 
0054     let endtime=`date "+%s"`
0055     let tottime=$endtime-$starttime;   
0056 
0057     if [ $exitcode -ne 0 ] ;then
0058       echo "cmsRun $file : FAILED - time: $tottime s - exit: $exitcode"
0059       report="$report \n cmsRun $file : FAILED  - time: $tottime s - exit: $exitcode"
0060       let nfail+=1
0061     else 
0062       echo "cmsRun $file : PASSED - time: $tottime s"
0063       report="$report \n cmsRun $file : PASSED  - time: $tottime s"
0064       let npass+=1
0065     fi 
0066 done
0067 
0068 
0069 report="$report \n \n $npass tests passed, $nfail failed \n"
0070 
0071 echo -e "$report" 
0072 rm -f runall-report.log
0073 echo -e "$report" >& runall-report.log