3 # Exercise libpcp pdubuf/interp issue (github issue #35)
5 # Copyright (c) 2015 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 which pmdumptext
>/dev
/null
2>&1 || _notrun
"pmdumptext not installed"
18 status
=1 # failure is the default!
19 $sudo rm -rf $tmp.
* $seq.full
20 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
23 cat <<EOF > $tmp.dumptext
24 filesys.free[/dev/dm-1]
25 filesys.free[/dev/sda1]
26 filesys.free[/dev/sdb]
27 activemq.queue.queue_size["Dxb.EntityIncrementalIndexer"]
28 activemq.queue.enqueue_count["Dxb.EntityIncrementalIndexer"]
29 activemq.queue.dequeue_count["Dxb.EntityIncrementalIndexer"]
30 rsyslog.queues.enqueued["action 7 queue[DA]"]
31 rsyslog.queues.enqueued["action 7 queue"]
32 rsyslog.queues.enqueued["main Q"]
33 rsyslog.queues.full["action 7 queue[DA]"]
34 rsyslog.queues.full["action 7 queue"]
35 rsyslog.queues.full["main Q"]
36 rsyslog.queues.size["action 7 queue[DA]"]
37 rsyslog.queues.size["action 7 queue"]
38 rsyslog.queues.size["main Q"]
41 # pmdebug sent to $seq.full - in failure case, pmdumptext will abort on
42 # MacOSX as per https://github.com/performancecopilot/pcp/issues/35
44 pmdumptext
-z -S@
07:00 -a archives
/small
-c $tmp.dumptext
-t 15sec
-s 100 \
45 -DDESPERATE,PDUBUF
,LOG
,FETCH
2>$seq.full