3 # check EOL marker in pmlogmerge
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 rm -f $tmp.
* $seq.full
24 /\<mark\>/ { mark++; next }
25 /^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\./ { rec++ }
26 END { printf "%d records",rec
27 if (mark) printf ", and %d marks",mark
31 |
$PCP_AWK_PROG >$1.stamp
'
32 /\<mark\>/ { print $1 "-mark"; next }
33 /^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\./ { print $1 }'
36 # real QA test starts here
38 echo "log mandatory on 40 msec sample.milliseconds" \
39 | pmlogger
-s 4 -l $tmp.log
$tmp.A
>>$seq.full
2>&1
42 cat $tmp.log
>>$seq.full
43 ls -l $tmp.A.
* >>$seq.full
44 pmdumplog
-l $tmp.A
>>$seq.full
48 echo "log mandatory on 50 msec sample.milliseconds" \
49 | pmlogger
-s 6 -l $tmp.log
$tmp.B
>>$seq.full
2>&1
52 cat $tmp.log
>>$seq.full
53 ls -l $tmp.B.
* >>$seq.full
54 pmdumplog
-l $tmp.A
>>$seq.full
58 pmlogextract
$tmp.A
$tmp.B
$tmp.C
60 echo "log.C == pmlogextract log.A log.B"
64 echo "mismatch timestamps"
65 cat $tmp.A.stamp
$tmp.B.stamp \
66 |
comm -3 - $tmp.C.stamp \
67 |
sed -e 's/[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9][0-9][0-9]/timestamp/g'
70 echo "pmval [no interpolate] ..."
71 pmval
-U $tmp.C sample.milliseconds
2>&1 \
74 /suspended/ { mark++; next }
75 /^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\./ { rec++ }
76 END { printf "%d records",rec
77 if (mark) printf ", and %d marks",mark