zsh completions: minor tweaks
[pcp.git] / qa / 742
blob8b55d886655c7d361e175f55f40a38790d172144
1 #!/bin/sh
2 # PCP QA Test No. 742
3 # Exercise the pcp-uptime(1) command using an archive
5 # Copyright (c) 2014 Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 . ./common.python
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
31 # success, all done
32 status=0
33 exit