Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:52:56

0001 #!/bin/tcsh
0002 
0003 eval `scram runtime -csh`
0004 
0005 echo
0006 date +%F\ %a\ %T
0007 echo Starting $0 $1 $2
0008 
0009 if ( $2 == "" ) then
0010   set tables = ( GRun )
0011 else if ( $2 == ALL ) then
0012   set tables = ( GRun HIon PIon PRef 2023v12 Fake Fake1 Fake2 )
0013 else if ( $2 == IB ) then
0014   set tables = ( GRun HIon PIon PRef )
0015 else if ( $2 == DEV ) then
0016   set tables = ( GRun HIon PIon PRef )
0017 else if ( $2 == FULL ) then
0018   set tables = ( FULL )
0019 else if ( $2 == FAKE ) then
0020   set tables = ( Fake Fake1 Fake2 )
0021 else if ( $2 == FROZEN ) then
0022   set tables = ( 2023v12 )
0023 else
0024   set tables = ( $2 )
0025 endif
0026 
0027 foreach gtag ( $1 )
0028 
0029   if ( $gtag == DATA ) then
0030     set extraflags = "-x realData=1 -x globalTag=@"
0031   else
0032     set extraflags = "-x realData=0 -x globalTag=@"
0033   endif
0034 
0035   foreach table ( $tables )
0036 
0037     echo
0038     set name = HLT_Integration_${table}_${gtag}
0039     touch ${name}
0040     rm -rf ${name}*
0041 
0042     set infile = file:../RelVal_Raw_${table}_${gtag}.root
0043 
0044     set hltIntegTestCmd = "hltIntegrationTests OnLine_HLT_${table}.py ${extraflags} -d ${name} -i ${infile} -n 100 -j 4 -a cpu"
0045 
0046     echo "`date +%T` ${hltIntegTestCmd} >& ${name}.log"
0047     time ${hltIntegTestCmd} >& ${name}.log
0048     set STATUS = $?
0049 
0050     echo "`date +%T` exit status: $STATUS"
0051     rm -f ${name}/*.root
0052 
0053     if ($STATUS != 0) then
0054       touch ${name}/issues.txt
0055       foreach line ("`cat ${name}/issues.txt`")
0056         cp ${name}/${line}.py  ${name}_${line}.py
0057         cp ${name}/${line}.log ${name}_${line}.log
0058       end
0059     endif
0060 
0061   end
0062 
0063 end
0064 
0065 echo
0066 echo Finish $0 $1 $2
0067 date +%F\ %a\ %T