Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 836
blobae53bf1a1b7a95aee0d7d0856a31ec707b1ccc28
1 #!/bin/sh
2 # PCP QA Test No. 836
3 # Exercise pmdiff(1) script functionality.
5 # Copyright (c) 2014 Red Hat.
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 _filter()
22 sed -e "s,$here,PATH,g"
25 # real QA test starts here
26 echo "== simple comparison, defaults"
27 pmdiff -z $here/archives/section-a $here/archives/section-b | _filter
28 echo
30 echo "== change the comparison ratio"
31 pmdiff -z -q 1.5 $here/archives/section-a $here/archives/section-b | _filter
32 echo
34 echo "== change the report precision"
35 pmdiff -z -p 5 $here/archives/section-a $here/archives/section-b | _filter
36 echo
38 echo "== skip the excluded metrics report"
39 pmdiff -z --skip-excluded $here/archives/section-a $here/archives/section-b | _filter
40 echo
42 echo "== skip the missing metrics report"
43 pmdiff -z --skip-missing $here/archives/section-a $here/archives/section-c | _filter
45 # success, all done
46 status=0
47 exit