3 # Exercise the pcp-uptime(1) command using an archive
5 # Copyright (c) 2014 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_uptime
="$PCP_BINADM_DIR/pcp-uptime"
18 test -x $pcp_uptime || _notrun
"No pcp-uptime(1) installed"
19 pcp_uptime
="$python $pcp_uptime"
21 # real QA test starts here
22 echo && echo uptime output
, at archive start
23 PCP_ARCHIVE
="archives/pcp-uptime" PCP_HOSTZONE
=1 $pcp_uptime
25 echo && echo uptime output
, at archive end
26 pcp
-a $here/archives
/pcp-uptime
-z -O-0 uptime
28 echo && echo uptime output
, at archive start
, forw-fetch needed
29 PCP_ARCHIVE
="archives/pcp-uptime2" PCP_HOSTZONE
=1 $pcp_uptime