Drop unused condition check
[pcp.git] / qa / 413
blob458202dfd38fdb455c9fae819c6e94cd3c626fb2
1 #!/bin/sh
2 # PCP QA Test No. 413
3 # pmie should not accept PM_TYPE_EVENT metrics in any sort of expression
5 # Copyright (c) 2010 Ken McDonell. All Rights Reserved.
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=0 # success is the default!
17 $sudo rm -rf $tmp.* $seq.full
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
21 echo "Metric alone ..."
22 echo 'sampledso.event.records > 0 -> print "not likely";' | pmie -v -t 1 -T 2
23 echo "Metric in simple expression ..."
24 echo 'sampledso.event.reset + sampledso.event.records > 0 -> print "not likely";' | pmie -v -t 1 -T 2
25 echo "Metric in aggregate expression ..."
26 echo 'min_sample(sampledso.event.records @0..5) > 0 -> print "not likely";' | pmie -v -t 1 -T 10
27 echo "Metric in existential expression ..."
28 echo 'some_sample(sampledso.event.records @0..5) > 0 -> print "not likely";' | pmie -v -t 1 -T 10
30 # success, all done
31 exit