3 # Exercise optimal pmlogger handling of config duplicates
4 # (metrics and instances).
6 # Copyright (c) 2014 Red Hat.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
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 {
26 log mandatory on once {
29 log mandatory on once {
32 log mandatory on once {
35 log mandatory on once {
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 {
50 sample.bin [ "bin-100", "bin-500" ]
52 log mandatory on once {
53 sample.bin [ "bin-500" ]
55 log mandatory on once {
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 \
66 |
sed -e '1,/pmcd.pmlogger.archive/d'