3 # interp mode problems with PM_SEM_INSTANT metric, see #564535
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 status
=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 for m
in long longlong float double string aggregate
25 pmstore sample.
$m.write_me
$1 >/dev
/null
31 # second sed is for endian variations
43 -e '/No values available/d' \
44 -e '/End of PCP archive log/d' \
46 NF == 2 { print $2; next }
47 NF == 3 { print $3; next }
50 -e 's/\[00010000]/[00000100]/' \
51 -e 's/\[00040000]/[00000400]/' \
52 -e 's/\[00100000]/[00001000]/' \
53 -e 's/\[10000000]/[00000010]/' \
54 | LC_COLLATE
=POSIX
sort -u
57 # real QA test starts here
60 cat <<End-of-File >$tmp.config
61 log mandatory on 500msec {
63 sample.longlong.write_me
65 sample.double.write_me
66 sample.string.write_me
67 sample.aggregate.write_me
71 pmlogger
<$tmp.config
-l $tmp.log
-T 10sec
$tmp &
87 cat $tmp.log
>$seq.full
89 echo "----------------------------"
90 echo "Raw data (pmval -U)"
91 echo "----------------------------"
92 for m
in long longlong float double string aggregate
95 echo "Unique values for sample.$m.write_me ..."
96 pmval
-U $tmp sample.
$m.write_me
2>&1 |
tee -a $seq.full | _filter
100 echo "----------------------------"
101 echo "Interpolated data (pmval -a)"
102 echo "----------------------------"
103 for m
in long longlong float double string aggregate
106 echo "Unique values for sample.$m.write_me ..."
107 pmval
-t 0.25sec
-a $tmp sample.
$m.write_me
2>&1 |
tee -a $seq.full | _filter