File indexing completed on 2024-04-06 12:18:35
0001
0002
0003
0004 function die {
0005 printf "\n%s: status %s\n" "$1" "$2"
0006 if [ $
0007 printf "%s\n" "=== Log File =========="
0008 cat $3
0009 printf "%s\n" "=== End of Log File ==="
0010 fi
0011 exit $2
0012 }
0013
0014
0015 TESTDIR="${LOCALTOP}"/src/HLTrigger/JSONMonitoring/test
0016
0017 cmsRun "${TESTDIR}"/testHLTriggerJSONMonitoring_cfg.py &> log_testHLTriggerJSONMonitoring \
0018 || die "Failure using testHLTriggerJSONMonitoring_cfg.py" $? log_testHLTriggerJSONMonitoring
0019
0020 cat log_testHLTriggerJSONMonitoring
0021
0022
0023 cat <<@EOF > log_testHLTriggerJSONMonitoring_expected
0024 TrigReport ---------- Event Summary ------------
0025 TrigReport Events total = 100 passed = 100 failed = 0
0026 TrigReport ---------- Path Summary ------------
0027 TrigReport Trig Bit
0028 TrigReport 1 0 100 0 100 0 HLTriggerFirstPath
0029 TrigReport 1 1 100 100 0 0 HLT_TestPathA_v1
0030 TrigReport 1 2 100 50 50 0 HLT_TestPathB_v1
0031 TrigReport 1 3 100 100 0 0 HLT_TestPathC_v1
0032 TrigReport 1 4 100 0 100 0 HLTriggerFinalPath
0033 TrigReport 1 5 100 33 67 0 Dataset_TestDatasetX
0034 TrigReport 1 6 100 2 98 0 Dataset_TestDatasetY
0035 @EOF
0036
0037
0038 grep -m11 TrigReport log_testHLTriggerJSONMonitoring | diff log_testHLTriggerJSONMonitoring_expected - \
0039 || die "Unexpected differences in outputs of testHLTriggerJSONMonitoring_cfg.py" $?