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 sampledso
=$PCP_PMDAS_DIR/sample
/pmda_sample.
$DSO_SUFFIX
29 status
=1 # failure is the default!
31 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
37 -e "s/ -U $username//g" \
38 -e "s;$sampledso;SAMPLEDSO;g" \
39 -e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;g"
43 id pcp
>/dev
/null
2>&1 && pipeargs
="-U $username"
45 # real QA test starts here
49 echo "=== dso and daemon handle indom ops the same way? ==="
51 dbpmda
-ie <<EOF 2>&1 | _filter | tee $tmp.dso
52 open dso $sampledso sample_init 30
59 dbpmda
-ie <<EOF 2>&1 | _filter | tee $tmp.daemon
60 open pipe $PCP_PMDAS_DIR/sample/pmdasample $pipeargs -d 30
67 echo "Differences ... expect none after the \"open\" processing"
68 diff $tmp.dso
$tmp.daemon
73 echo "=== IPC-PDU version botch for second PMDA? ==="
74 dbpmda
-ie <<EOF 2>&1 | _filter
75 open dso $sampledso sample_init 30
76 open pipe $PCP_PMDAS_DIR/sample/pmdasample $pipeargs -d 29