3 # assorted issues associated with pmval and archives with mark
6 ## note this file edited by hand to simulate the expected output
8 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
12 echo "QA output created by $seq"
14 # get standard filters
19 status
=1 # failure is the default!
20 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
22 # deal with an annoying libc error ... using TZ=:Australia/Melbourne
23 # causes the -z option to report the wrong time, at least for some
29 offset
=`_arch_start archives/changeinst -0.25`
31 # real QA test starts here
33 for delta
in 1sec
0.5sec
37 echo "=== delta=$delta counter in each non-preamble result in all 3 sections ==="
38 pmval
-O $offset -t $delta -z -a archives
/changeinst sample.seconds
2>$tmp.err
42 echo "=== delta=$delta counter in the 2nd section only ==="
43 pmval
-O $offset -t $delta -z -a archives
/changeinst sample.milliseconds
2>$tmp.err
47 echo "=== delta=$delta instantaneous in 1st and 3rd sections ==="
48 pmval
-O $offset -t $delta -z -a archives
/changeinst sample.drift
2>$tmp.err
52 echo "=== delta=$delta discrete and logged once in the 1st and 3rd sections ==="
53 pmval
-O $offset -t $delta -z -a archives
/changeinst hinv.ncpu
2>$tmp.err
57 echo "=== delta=$delta counter and indom all over the place ==="
58 echo " lo0 ec0 ec2 section"
62 pmval
-O $offset -t $delta -z -a archives
/changeinst
-i ec0
,ec2
,lo0 irix.network.interface.total.packets
2>$tmp.err
66 echo "=== delta=$delta instantaneous and indom all over the place ==="
67 echo " bin-100 bin-200 bin-300 bin-400 bin-500 section"
68 echo " yes yes no yes no 1"
69 echo " yes no yes yes once 2"
70 echo " no yes yes yes no 3"
71 pmval
-O $offset -t $delta -z -a archives
/changeinst
-i bin-100
,bin-200
,bin-300
,bin-400
,bin-500 sample.bin
2>$tmp.err
75 echo "=== delta=$delta discrete logged once, different indom in each section ==="
76 pmval
-O $offset -t $delta -z -a archives
/changeinst pmcd.pmlogger.port
2>$tmp.err
82 echo "=== the whole shooting match ==="
83 pmdumplog
-z -a archives
/changeinst \
84 |
sed -e '/\[[0-9][0-9]* bytes\]/d'