Statistics
| Branch: | Revision:

root / tests / qemu-iotests / common.pattern @ 08e4ed6c

History | View | Annotate | Download (4.8 kB)

# Date Author Comment
dd0c35d6 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: Use zero-based offsets for IO patterns

The io_pattern style functions have the following loop:

for i in `seq 1 $count`; do
echo ... $(( start + i * step )) ...
done

Offsets are 1-based so start=1024, step=512, count=4 yields:
1536, 2048, 2560, 3072...

908eaf68 02/22/2012 05:17 pm Stefan Hajnoczi

qemu-iotests: explicitly use bash interpreter

The tests use bash language features like 'let', which aren't supported
by /bin/sh on systems that use a conservative shell like dash. This
patch changes the interpreter to /bin/bash.

Signed-off-by: Stefan Hajnoczi <>...

9128ae5e 02/22/2012 05:17 pm Kevin Wolf

qemu-iotests: test qemu-img convert with backing file for the output image

Signed-off-by: Kevin Wolf <>
Signed-off-by: Christoph Hellwig <>

e8c212d6 02/22/2012 05:17 pm Christoph Hellwig

qemu-iotests: replace FSF postal addresses with www.gnu.org links

Blue Swirl notices that we were using the old FSF post address in the
license boilerplates. Replace both the old and new address with links
to the gnu.org licenses homepage as suggested by Ben Pfaff....

9c9afe57 02/22/2012 05:17 pm Kevin Wolf

qemu-iotests: common.pattern: allow spaces in io() operation

We need to be able to pass "write -b" as an operation to the pattern testing
functions. Unfortunately, this contains a space character...

Signed-off-by: Kevin Wolf <>
Signed-off-by: Christoph Hellwig <>

8fc1024c 02/22/2012 05:17 pm Kevin Wolf

qemu-iotests: align test requests according to cluster size

Change the io_test and io_test2 functions to take the cluster size of the image
and the number of test requests to issue. Tests are changed to specify a
cluster size (usually 4k), but expected test results stay the same for now...

ac5e2b20 02/22/2012 05:17 pm Kevin Wolf

qemu-iotests: test larger clusters sizes on qcow2

This patch adds test case 023 which tests some more cluster sizes. For
anythinger larger than 4k clusters we can't use requests that are l2_size or
more (128k for 1k clusters, 2 MB for 4k clusters, 512 MB for 64k clusters)....

e76a8e89 02/22/2012 05:17 pm Christoph Hellwig

qemu-iotests: make a few more tests generic

Pretend that a non-implemented check is always successful and thus allow
various tests that were qcow2-specific before to be generic.

Signed-off-by: Christoph Hellwig <>
Reviewed-by: Kevin Wolf <>

6bf19c94 02/22/2012 05:15 pm Christoph Hellwig

qemu-iotests: Initial import into the public repository.

Signed-off-by: Kevin Wolf <>