3 # pmlogextract error handling
5 # Copyright (c) 2015 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
22 rm -f $tmp.0 $tmp.meta
$tmp.index
23 pmlogextract
-c $tmp.config tmparch
/foo
$tmp >$tmp.out
2>$tmp.err
24 cat $tmp.out
$tmp.err \
30 # real QA test starts here
31 echo "=== metric name cases ==="
32 cat <<End-of-File >$tmp.config
33 sample.bad.name [ one, two, three ]
35 sample.another.bad.name [
46 echo "=== instance name cases ==="
47 cat <<End-of-File >$tmp.config
48 # instance names bin-101 and bin101 and 101 are all bad
49 sample.bin [ 'bin-100',
57 # sample.seconds is a singular metric
58 sample.seconds [ any ]
59 # all instances are bad
60 sample.colour [ purple, white, yellow, brown ]
63 pminfo
-a $tmp -f sample.bin sample.seconds sample.colour
66 echo "=== syntax errors =="
67 cat <<End-of-File >$tmp.config
71 cat <<End-of-File >$tmp.config