1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
#!/bin/bash
#
#$Id: runall.sh,v 1.1 2006/11/22 17:40:35 lsexton Exp $
#
#Dummy script to run all integration tests
#
#
testsRecoEgamma="
RecoEgamma_ele_E2000.cfg
RecoEgamma_ele_E50.cfg
RecoEgamma_ele_pt100.cfg
RecoEgamma_ele_pt10.cfg
RecoEgamma_ele_pt35.cfg
RecoEgamma_Hgg_120.cfg
RecoEgamma_HZZ4e_150.cfg
RecoEgamma_pho_E50.cfg
RecoEgamma_pho_pt35.cfg
RecoEgamma_pho_pt50.cfg
RecoEgamma_Zee.cfg
"
testsRecoJets="
RecoJets_Zprime700Dijets.cfg
"
testsMET="
RecoMET_Zjets_Dimuons_300-380.cfg
"
testsTau="
RecoTau_DiTaus_pt_20-420.cfg
"
tests=`echo $testsRecoEgamma $testsRecoJets $testsMET $testsTau`
report=""
let nfail=0
let npass=0
echo "Tests to be run : " $tests
eval `scramv1 runtime -sh`
for file in $tests
do
echo Preparing to run $file
let starttime=`date "+%s"`
cmsRun $file
let exitcode=$?
let endtime=`date "+%s"`
let tottime=$endtime-$starttime;
if [ $exitcode -ne 0 ] ;then
echo "cmsRun $file : FAILED - time: $tottime s - exit: $exitcode"
report="$report \n cmsRun $file : FAILED - time: $tottime s - exit: $exitcode"
let nfail+=1
else
echo "cmsRun $file : PASSED - time: $tottime s"
report="$report \n cmsRun $file : PASSED - time: $tottime s"
let npass+=1
fi
done
report="$report \n \n $npass tests passed, $nfail failed \n"
echo -e "$report"
rm -f runall-report.log
echo -e "$report" >& runall-report.log
|