pmrep: update TODO, man page
[pcp.git] / qa / 829
blob2e0bc166fbbb1ca451a6b3b087520abbe5b77270
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.python
12 status=1 # failure is the default!
13 $sudo rm -rf $tmp.* $seq.full
14 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
16 pcp_dmcache="$PCP_BINADM_DIR/pcp-dmcache"
17 test -x $pcp_dmcache || _notrun "No pcp-dmcache(1) installed"
18 pcp_dmcache="$python $pcp_dmcache"
20 # real QA test starts here
21 echo 'All output'
22 PCP_ARCHIVE=archives/dm-io PCP_HOSTZONE=1 $pcp_dmcache
23 echo
25 echo 'One device'
26 pcp -z --archive archives/dm-io dmcache dmcache1
27 echo
29 echo 'One device, five samples, ten seconds offset'
30 pcp -z --archive archives/dm-io -s 5 -S+10sec dmcache dmcache1
31 echo
33 echo 'One device, IOPS mode, header every 50 lines'
34 pcp -z --archive archives/dm-io dmcache -i --repeat 50 dmcache1
35 echo
37 # success, all done
38 status=0
40 exit