Drop unused condition check
[pcp.git] / qa / 829
blobe941c905025e591d49e6a2f26e7bcb4516071c2c
1 #!/bin/sh
2 # PCP QA Test No. 829
3 # Exercise the pcp-dmcache(1) command using an archive.
5 # Copyright (c) 2014 Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 . ./common.check
12 . ./common.setup
13 [ -f common.python ] || _notrun "Testsuite built without python support"
15 . ./common.python
16 status=1 # failure is the default!
17 $sudo rm -rf $tmp.* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
20 pcp_dmcache="$PCP_BINADM_DIR/pcp-dmcache"
21 test -x $pcp_dmcache || _notrun "No pcp-dmcache(1) installed"
22 pcp_dmcache="$python $pcp_dmcache"
24 # real QA test starts here
25 echo 'All output'
26 PCP_ARCHIVE=archives/dm-io PCP_HOSTZONE=1 $pcp_dmcache
27 echo
29 echo 'One device'
30 pcp -z --archive archives/dm-io dmcache dmcache1
31 echo
33 echo 'One device, five samples, ten seconds offset'
34 pcp -z --archive archives/dm-io -s 5 -S+10sec dmcache dmcache1
35 echo
37 echo 'One device, IOPS mode, header every 50 lines'
38 pcp -z --archive archives/dm-io dmcache -i --repeat 50 dmcache1
39 echo
41 # success, all done
42 status=0
44 exit