pmrep: fix archive end time reporting
[pcp.git] / qa / 1112
bloba9a7cf497426b3a4f5562643d576b41ecd20a596
1 #!/bin/sh
2 # PCP QA Test No. 1112
3 # ipc.sem.{used_sem,tot_sem} metrics testing
4 # ipc.msg.{used_queues,tot_msg,tot_bytes} metrics testing
6 # Copyright (c) 2015-2016 Red Hat. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
13 . ./common.product
14 . ./common.filter
15 . ./common.check
17 if [ $PCP_PLATFORM != linux ]
18 then
19 _notrun "semctl(..,SEM_INFO,..) metrics only available on linux"
22 status=1 # failure is the default!
23 $sudo rm -rf $tmp.* $seq.full
24 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
26 # real QA test starts here
27 pmda=$PCP_PMDAS_DIR/linux/pmda_linux.$DSO_SUFFIX,linux_init
29 LD_PRELOAD=$here/src/qa_sem_msg_ctl.so pminfo -L -K clear -K add,60,$pmda -d -f ipc.sem.used_sem
30 LD_PRELOAD=$here/src/qa_sem_msg_ctl.so pminfo -L -K clear -K add,60,$pmda -d -f ipc.sem.tot_sem
31 LD_PRELOAD=$here/src/qa_sem_msg_ctl.so pminfo -L -K clear -K add,60,$pmda -d -f ipc.msg.used_queues
32 LD_PRELOAD=$here/src/qa_sem_msg_ctl.so pminfo -L -K clear -K add,60,$pmda -d -f ipc.msg.tot_msg
33 LD_PRELOAD=$here/src/qa_sem_msg_ctl.so pminfo -L -K clear -K add,60,$pmda -d -f ipc.msg.tot_bytes
35 # success, all done
36 status=0
37 exit