Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 803
blobdfc24803bda1faede0f3882e11be3a28992c5775
1 #!/bin/sh
2 # PCP QA Test No. 803
3 # Exercise pmRegisterDerivedMetric API error handling.
5 # Copyright (c) 2016 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 $tmp.* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
21 $here/src/derived 'bad.metric=a $ bad @ expression'
22 $here/src/derived 'new.metric=rat(disk.dev.read)'
24 # success, all done
25 status=0
26 exit