3 # pmie should not accept PM_TYPE_EVENT metrics in any sort of expression
5 # Copyright (c) 2010 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
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