3 # Exercise basic --container option handling in libpcp[_pmda].
5 # Copyright (c) 2015 Red Hat. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
17 $unix_domain_sockets || _notrun
"No unix domain socket support available"
20 status
=1 # failure is the default!
21 $sudo rm -rf $tmp.
* $seq.full
22 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
26 tee -a $here/$seq.full \
27 |
grep -i attribute | \
29 -e "s/processid=[0-9][0-9]*/processid=PID/" \
30 -e "s/groupid=$gid/groupid=GID/" \
31 -e "s/userid=$uid/userid=UID/" \
32 -e '/ctx=[0-9][0-9]*/s//ctx=N/' \
33 -e '/pmdasample([0-9][0-9]*)/s//pmdasample(PID)/' \
34 -e 's/^\[[A-Z].. [A-Z].. *[0-9][0-9]* ..:..:..]/[DATETIME]/'
37 # real QA test starts here
41 # reset the sample PMDA logfile
42 $sudo $PCP_RC_DIR/pcp start
>/dev
/null
2>&1
46 # store to enable verbose attribute diagnostics
47 authdbg
=`pmdbg -l | grep DBG_TRACE_AUTH | awk '{ print $2 }'`
48 pmstore sample.control
$authdbg
50 pminfo
--container=wedge sample
>/dev
/null
2>&1
51 pmprobe
--container=tailed sample
>/dev
/null
2>&1
52 pmval
-s1 --container=eagle sample.dodgey.value
>/dev
/null
2>&1
54 cat $PCP_LOG_DIR/pmcd
/sample.log | _filter
55 pmstore sample.control
0