File indexing completed on 2024-04-06 12:18:43
0001
0002
0003
0004 function die { echo $1: status $2 ; echo === Log file === ; cat ${3:-/dev/null} ; echo === End log file === ; exit $2; }
0005
0006
0007 TESTDIR=${LOCALTOP}/src/HLTrigger/special/test
0008
0009 cmsRun ${TESTDIR}/testLogMonitorFilter.py >& log_log_monitor_filter || die "Failure using testLogMonitorFilter.py" $? log_log_monitor_filter
0010
0011 cat <<EOF > expected_log_report
0012 Log-Report ---------- HLTLogMonitorFilter Summary ------------
0013 Log-Report Threshold Prescale Issued Accepted Rejected Category
0014 Log-Report 10 100 1000 28 972 Other
0015 Log-Report 0 1 1000 0 1000 Test
0016 Log-Report 1 1 1000 1000 0 TestError
0017 Log-Report 20 8000 10000 58 9942 TestWarning
0018 EOF
0019
0020 grep 'Log-Report ' log_log_monitor_filter | diff expected_log_report - || die "differences in expected log report" $?
0021