3 # Some basic PM_EVENT_TYPE tests
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
21 # real QA test starts here
23 pmstore sample.event.
reset 0 2>&1 \
24 |
sed -e 's/value=[0-9][0-9]*/value=ANYTHING/'
26 echo "=== pmPrintValue ==="
29 pminfo
-f sample.event.records \
30 |
sed -e 's/[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\.[0-9][0-9][0-9]/TIMESTAMP/g'
34 echo "=== __pmPrintDesc ==="
35 pminfo
-d sample.event.records \
36 |
sed -e 's/0x[0-9a-f][0-9a-f]*/HEX/'
38 pmstore sample.event.
reset 0 2>&1 \
39 |
sed -e 's/value=[0-9][0-9]*/value=ANYTHING/'
41 echo "=== pmPrintValue ==="
44 pminfo
-f sample.event.no_indom_records \
45 |
sed -e 's/[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\.[0-9][0-9][0-9]/TIMESTAMP/g'
49 echo "=== __pmPrintDesc ==="
50 pminfo
-d sample.event.no_indom_records