pmrep: further zbxsend python3 fixes
[pcp.git] / qa / 864
blob158f0112a47ff2a9abfd4d12cccc43a61c07a7fa
1 #!/bin/sh
2 # PCP QA Test No. 864
3 # Exercise pcp-collectl(1) -R/--runtime option.
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 pcp collectl --version >/dev/null 2>&1
17 [ $? -eq 2 ] && _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.
30 _filter()
32 sed \
33 -e 's/[0-9][0-9]*/NN/g' \
34 | tr -s ' '
37 # real QA test starts here
38 rm -f $seq.full
39 pcp collectl -R 1.25 -i 1 | tee -a $seq.full | _filter
41 # success, all done
42 status=0
43 exit