Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 726
blob3f7d646cc3b1e9f1353bdf74cec754e632958296
1 #!/bin/sh
2 # PCP QA Test No. 726
3 # Exercise optimal pmlogger handling of config duplicates
4 # (metrics and instances).
6 # Copyright (c) 2014 Red Hat.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
13 . ./common.product
14 . ./common.filter
15 . ./common.check
17 status=1 # failure is the default!
18 $sudo rm -rf $tmp.* $seq.full
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # real QA test starts here
22 cat <<End-of-File | pmlogger -r -l $tmp.log -T 1sec $tmp
23 log mandatory on once {
24 sample.control
26 log mandatory on once {
27 sample.long.one
29 log mandatory on once {
30 sample.float.one
32 log mandatory on once {
33 sample.double.one
35 log mandatory on once {
36 sample.string.null
38 log mandatory on once {
39 sample.bin [ "bin-700" ]
40 sample.bin [ "bin-800" ]
41 sample.bin [ "bin-100" ]
43 log mandatory on once {
44 sample.control
45 sample.long.one
46 sample.float.one
47 sample.double.one
48 sample.string.null
49 sample.string.hullo
50 sample.bin [ "bin-100", "bin-500" ]
52 log mandatory on once {
53 sample.bin [ "bin-500" ]
55 log mandatory on once {
56 sample.string.hullo
58 End-of-File
59 echo "pmlogger log file contents" >> $seq.full
60 cat $tmp.log >> $seq.full
62 echo "pmlogger archive contents" >> $seq.full
63 pmdumplog -s $tmp 2>&1 \
64 | tee -a $seq.full \
65 | _filter_pmdumplog \
66 | sed -e '1,/pmcd.pmlogger.archive/d'
68 # success, all done
69 status=0
70 exit