3 # Exercise the pcp-shping(1) command
5 # Copyright (c) 2015 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
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