qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 736
blob4674589197db5690f52ed53763c5ff9fb672a3b2
1 #!/bin/sh
2 # PCP QA Test No. 736
3 # pmlogrewrite - indom duplicate clause testing
5 # Copyright (c) 2013 Ken McDonell. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
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.*.* }
23 End-of-File
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
33 # success, all done
34 status=0
36 exit