Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-22 01:41:24

0001 #!/bin/bash
0002 
0003 # Pass in name and status
0004 function die {
0005   echo $1: status $2
0006   echo === Log file ===
0007   cat ${3:-/dev/null}
0008   echo === End log file ===
0009   exit $2
0010 }
0011 
0012 # run test job
0013 TESTDIR="${LOCALTOP}"/src/HLTrigger/JSONMonitoring/test
0014 cmsRun "${TESTDIR}"/testHLTriggerJSONMonitoring.py &> log_HLTriggerJSONMonitoring \
0015  || die "Failure using testHLTriggerJSONMonitoring.py" $? log_HLTriggerJSONMonitoring
0016 
0017 # expected PathSummary of test job
0018 cat <<@EOF > log_HLTriggerJSONMonitoring_expected
0019 TrigReport ---------- Event  Summary ------------
0020 TrigReport Events total = 100 passed = 100 failed = 0
0021 TrigReport ---------- Path   Summary ------------
0022 TrigReport  Trig Bit#   Executed     Passed     Failed      Error Name
0023 TrigReport     1    0        100          0        100          0 HLTriggerFirstPath
0024 TrigReport     1    1        100        100          0          0 HLT_TestPathA_v1
0025 TrigReport     1    2        100         50         50          0 HLT_TestPathB_v1
0026 TrigReport     1    3        100        100          0          0 HLT_TestPathC_v1
0027 TrigReport     1    4        100          0        100          0 HLTriggerFinalPath
0028 TrigReport     1    5        100         33         67          0 Dataset_TestDatasetX
0029 TrigReport     1    6        100          2         98          0 Dataset_TestDatasetY
0030 @EOF
0031 
0032 # compare to expected output of test job
0033 grep -m11 TrigReport log_HLTriggerJSONMonitoring \
0034  | diff log_HLTriggerJSONMonitoring_expected - || die "differences in expected log report" $?