3 # Exercise pmRegisterDerivedMetric API error handling.
5 # Copyright (c) 2016 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 $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)'