3 # Exercise pcp-collectl(1) -R/--runtime option.
5 # Copyright (c) 2015 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 pcp collectl
--version >$tmp.out
2>&1
17 grep 'collectl version' $tmp.out
>/dev
/null || _notrun
"pcp-collectl not installed"
19 status
=1 # failure is the default!
20 $sudo rm -rf $tmp.
* $seq.full
21 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
24 # Values reported are unimportant here, just check it runs, produces
25 # a header, one row of sampled values, and then exits.
27 # Earlier versions of the tool did not work correctly with -R option.
33 -e 's/[0-9][0-9]*/NN/g' \
37 # real QA test starts here
39 pcp collectl
-R 1.25 -i 1 |
tee -a $seq.full | _filter