3 # Exercise pmdiff(1) script functionality.
5 # Copyright (c) 2014 Red Hat.
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
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
30 echo "== change the comparison ratio"
31 pmdiff
-z -q 1.5 $here/archives
/section-a
$here/archives
/section-b | _filter
34 echo "== change the report precision"
35 pmdiff
-z -p 5 $here/archives
/section-a
$here/archives
/section-b | _filter
38 echo "== skip the excluded metrics report"
39 pmdiff
-z --skip-excluded $here/archives
/section-a
$here/archives
/section-b | _filter
42 echo "== skip the missing metrics report"
43 pmdiff
-z --skip-missing $here/archives
/section-a
$here/archives
/section-c | _filter