3 # Exercise the pcp-dmcache(1) command using an archive.
5 # Copyright (c) 2014 Red Hat.
9 echo "QA output created by $seq"
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
22 PCP_ARCHIVE
=archives
/dm-io PCP_HOSTZONE
=1 $pcp_dmcache
26 pcp
-z --archive archives
/dm-io dmcache dmcache1
29 echo 'One device, five samples, ten seconds offset'
30 pcp
-z --archive archives
/dm-io
-s 5 -S+10sec dmcache dmcache1
33 echo 'One device, IOPS mode, header every 50 lines'
34 pcp
-z --archive archives
/dm-io dmcache
-i --repeat 50 dmcache1