3 # Exercise the pcp-free(1) command using an archive
5 # Copyright (c) 2014-2015 Red Hat.
9 echo "QA output created by $seq"
13 status
=1 # failure is the default!
14 $sudo rm -rf $tmp.
* $seq.full
15 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
17 pcp_free
="$PCP_BINADM_DIR/pcp-free"
18 test -x $pcp_free || _notrun
"No pcp-free(1) installed"
19 pcp_free
="$python $pcp_free"
21 # real QA test starts here
22 echo && echo === free output
, at first sample
23 PCP_ARCHIVE
="archives/pcp-free" PCP_HOSTZONE
=1 PCP_ORIGIN
=1 $pcp_free
25 archive_first
="-a archives/pcp-free -z -O +1"
26 archive_last
="-a archives/pcp-free -z -O -0"
28 echo && echo === free output
, at last sample
29 pcp
$archive_last free
31 echo && echo === free output
, bytes
32 pcp
$archive_first free
-b
34 echo && echo === free output
, megabytes
35 pcp
$archive_first free
-m
37 echo && echo === free output
, gigabytes
38 pcp
$archive_first free
-g
40 echo && echo === free output
, totals
+ in megabytes
41 pcp
$archive_first free
-t -m
43 echo && echo === free output
, compat
+ low
/high detail
44 pcp
$archive_first free
-o -l
46 echo && echo === free output
, multiple samples
47 pcp
$archive_first free
-c 2 -s 2.5