pmrep: update TODO, man page
[pcp.git] / qa / 807
blob564892c8ca57b51b37cc174ae7fa964ae782c2f4
1 #!/bin/sh
2 # PCP QA Test No. 807
3 # Exercise the pcp-shping(1) command
5 # Copyright (c) 2015 Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 test -x $PCP_BINADM_DIR/pcp-shping || _notrun "No pcp-shping(1) installed"
18 # bizarre but true ...
20 [ "`echo foobar | awk '{printf "%3.3s\n",$1}'`" = foo ] || _notrun 'your version of awk is broken'
23 status=1 # failure is the default!
24 $sudo rm -rf $tmp.* $seq.full
25 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
27 # real QA test starts here
28 echo "Reporting specific tag"
29 pcp --archive archives/pcp-shping --interval 30 -z shping http
30 echo "Reporting all tags"
31 pcp --archive archives/pcp-shping --interval 30 -z shping
32 echo "Reporting status"
33 pcp --archive archives/pcp-shping shping --status
35 # success, all done
36 status=0
37 exit