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