3 # coverage for libpcp/logmeta.c
5 # Copyright (c) 2011 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=0 # success is the default!
17 $sudo rm -rf $tmp.
* $seq.full
19 trap "rm -rf $tmp; exit \$status" 0 1 2 3 15
25 -e '/addindom( /s/[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\.[0-9][0-9][0-9]/TIMESTAMP/' \
26 -e '/searchindom( /s/[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\.[0-9][0-9][0-9]/TIMESTAMP/'
32 |
sed -e '/Info: evaluator exiting/d' \
36 cp archives
/bozo.client_v2.
* $tmp
37 mv $tmp/bozo.client_v2.meta
$tmp/bozo.client_v2.save
39 # real QA test starts here
40 for bad
in $tmp/bozo.client_v2.meta.bad.
*
43 echo "=== bad #`echo $bad | sed -e 's/.*\.bad\.//'` ==="
44 cp $bad $tmp/bozo.client_v2.meta
45 pmdumplog
-z -a -Dlogmeta $tmp/bozo.client_v2
2>&1 \
49 for size
in 100 132 136 160 164 407 440 512
52 echo "=== size $size ==="
53 dd if=$tmp/bozo.client_v2.save bs
=1 count
=$size of
=$tmp/bozo.client_v2.meta
>/dev
/null
2>&1
54 pmdumplog
-z -a -Dlogmeta $tmp/bozo.client_v2
2>&1 \
59 echo "torture_indom ... silence is golden"
60 src
/torture_indom
-a archives
/ace_v2 disk.dev.total
63 echo "pmie archive meta data exercises ..."
64 echo 'some_inst disk.dev.total > 0 -> print "active disks:" " %i"' \
65 | pmie
-z -t 2sec
-a archives
/ace_v2
2>&1 \
68 echo 'some_inst disk.dev.total #dks1d1 #dks1d7 > 0 -> print "active disks: " "%i"' \
69 | pmie
-Dlogmeta -z -t 2sec
-a archives
/ace_v2
2>&1 \
73 echo "pmval archive meta data exercises ..."
74 pmval
-z -t 5sec
-Dlogmeta -a archives
/ac15 kernel.all.load
2>&1 | _filter
76 pmval
-z -t 5sec
-Dlogmeta -a archives
/ac15
-i '"15 minute","5","1 minute"' kernel.all.load
2>&1 | _filter
80 src
/torture_logmeta
-Dlogmeta archives
/ac15
60 2 123 2>&1 \