pmrep: further zbxsend python3 fixes
[pcp.git] / qa / 137
blob8365f6b94c59c3adb5ce5a86db66509522ede00e
1 #! /bin/sh
2 # PCP QA Test No. 137
3 # exercise dbpmda
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard filters
12 . ./common.product
13 . ./common.filter
15 trap "rm -f $tmp.*; exit" 0 1 2 3 15
17 $sudo rm -rf $tmp $tmp.* $seq.full
19 _filter()
21 tee -a $here/$seq.full \
22 | sed \
23 -e 's,/[^/]*\.pmda,/ISA.pmda,' \
24 -e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;" \
25 -e "s/\.$DSO_SUFFIX/.\$DSO_SUFFIX/" \
26 | _filter_dumpresult
29 # make sure the simple PMDA has been made (binaries and the help
30 # text ... Installing it is the only safe way)
32 ( cd $PCP_PMDAS_DIR/simple; $sudo ./Install ) </dev/null >/dev/null 2>&1
34 # real QA test starts here
35 $sudo dbpmda -n $PCP_PMDAS_DIR/simple/root -ie <<End-of-File 2>&1 | _filter
36 open dso $PCP_PMDAS_DIR/simple/pmda_simple.$DSO_SUFFIX simple_init 253
37 getdesc on
38 desc simple.numfetch
39 fetch simple.numfetch
40 desc simple.color
41 fetch simple.color
42 instance 253.0
43 End-of-File
45 exit 0