5 # 1. to show that the indom result for instance requests for
6 # pmLookupInDom and pmNameInDom calls should NOT be different
7 # for DSOs versus daemon agents.
8 # 2. to verify that opening a dso and then connecting to a daemon
10 # Note: qa/147 tests out doing a daemon and then a dso
13 # 1. use dbpmda with the sampledso and sample daemon with appropriate
16 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
20 echo "QA output created by $seq"
22 # get standard filters
27 if [ $PCP_PLATFORM = irix
]
29 BINFMT
=`/usr/pcp/bin/pmobjstyle`
30 sampledso
=/var
/pcp
/lib
/$BINFMT.pmda_sample.so
32 sampledso
=$PCP_PMDAS_DIR/sample
/pmda_sample.
$DSO_SUFFIX
35 status
=1 # failure is the default!
37 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
43 -e "s/ -U $username//g" \
44 -e "s;$sampledso;SAMPLEDSO;g" \
45 -e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;g"
49 id pcp
>/dev
/null
2>&1 && pipeargs
="-U $username"
51 # real QA test starts here
55 echo "=== dso and daemon handle indom ops the same way? ==="
57 dbpmda
-ie <<EOF 2>&1 | _filter | tee $tmp.dso
58 open dso $sampledso sample_init 30
65 dbpmda
-ie <<EOF 2>&1 | _filter | tee $tmp.daemon
66 open pipe $PCP_PMDAS_DIR/sample/pmdasample $pipeargs -d 30
73 echo "Differences ... expect none after the \"open\" processing"
74 diff $tmp.dso
$tmp.daemon
79 echo "=== IPC-PDU version botch for second PMDA? ==="
80 dbpmda
-ie <<EOF 2>&1 | _filter
81 open dso $sampledso sample_init 30
82 open pipe $PCP_PMDAS_DIR/sample/pmdasample $pipeargs -d 29