3 # pmlogrewrite - indom duplicate clause testing
5 # Copyright (c) 2013 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
20 cat <<End-of-File >$tmp.config
21 indom 29.2 { indom -> duplicate 99.2 }
22 metric sample.bucket { indom -> 99.* pmid -> 99.*.* }
25 # real QA test starts here
26 pmlogrewrite
-w -c $tmp.config archives
/ok-bigbin
$tmp
28 pmdumplog
-z -a archives
/ok-bigbin
>$tmp.old
29 pmdumplog
-z -a $tmp >$tmp.new
31 diff $tmp.old
$tmp.new