3 # pmlogextract, then pmlogextract again (nested mark record processing)
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
15 trap "rm -f $tmp.*; exit" 0 1 2 3 15
17 # real QA test starts here
22 /<mark>/ { mark++; next }
23 /^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\./ { rec++ }
24 END { printf "%d records",rec
25 if (mark) printf ", and %d marks",mark
29 |
$PCP_AWK_PROG >$1.stamp
'
30 /<mark>/ { print $1 "-mark"; next }
31 /^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\./ { print $1 }'
34 # real QA test starts here
36 echo "log mandatory on 20 msec sample.milliseconds" \
37 | pmlogger
-s 4 $tmp.A
>/dev
/null
2>&1
43 echo "log mandatory on 25 msec sample.milliseconds" \
44 | pmlogger
-s 5 $tmp.B
>/dev
/null
2>&1
50 pmlogextract
$tmp.A
$tmp.B
$tmp.C
52 echo "log.C == pmlogextract log.A log.B"
56 echo "mismatch timestamps"
57 cat $tmp.A.stamp
$tmp.B.stamp \
58 |
comm -3 - $tmp.C.stamp \
59 |
sed -e 's/[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9][0-9][0-9]/timestamp/g'
62 echo "pmval [no interpolate] ..."
64 pmval
-U $tmp.C sample.milliseconds
2>&1 \
67 /suspended/ { mark++; next }
68 /^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\./ { rec++ }
69 END { printf "%d records",rec
70 if (mark) printf ", and %d marks",mark
75 echo "log mandatory on 20 msec sample.milliseconds" \
76 | pmlogger
-s 6 $tmp.D
>/dev
/null
2>&1
82 pmlogextract
$tmp.C
$tmp.D
$tmp.E
84 echo "log.E == pmlogextract log.C log.D"
88 echo "mismatch timestamps"
89 cat $tmp.C.stamp
$tmp.D.stamp \
90 |
comm -3 - $tmp.E.stamp \
91 |
sed -e 's/[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9][0-9][0-9]/timestamp/g'
94 echo "pmval [no interpolate] ..."
95 pmval
-U $tmp.E sample.milliseconds
2>&1 \
98 /suspended/ { mark++; next }
99 /^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\./ { rec++ }
100 END { printf "%d records",rec
101 if (mark) printf ", and %d marks",mark