Drop unused condition check
[pcp.git] / qa / 385
blob18b2f63cea5aec220f54031f1e19fb963b803cc0
1 #!/bin/sh
2 # PCP QA Test No. 385
3 # Some basic PM_EVENT_TYPE tests
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
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 ==="
27 for i in 0 1 2 3
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'
31 done
33 echo
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 ==="
42 for i in 0 1 2 3
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'
46 done
48 echo
49 echo "=== __pmPrintDesc ==="
50 pminfo -d sample.event.no_indom_records
52 # success, all done
53 exit