Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (8.8 kB)

# Date Author Comment
a9660664 11/14/2012 07:19 pm Nick Thomas

tests: allow qemu-iotests to be run against nbd backend

To do this, we start a qemu-nbd process at _make_test_img and kill
it in _cleanup_test_img. $TEST_IMG is changed to point at the TCP
server. We also remove the checks for existence of binaries from
common.config - they're duplicated in common, and we can make the...

514d9da5 10/24/2012 11:26 am Stefan Hajnoczi

qemu-iotests: Add 043 backing file chain infinite loop test

This new test verifies that qemu-img info --backing-chain safely aborts
when an image file has a backing file infinite loop.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

353a41be 08/10/2012 11:25 am Kevin Wolf

qemu-iotests: Save some sed processes

Instead of building a huge pipeline, just pass all expressions to a
single sed process.

Suggested-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>

166f3c7b 08/10/2012 11:25 am Stefan Hajnoczi

qemu-iotests: skip 039 with ./check -nocache

When the qemu-io --nocache option is used the 039 test case cannot abort
QEMU at a point where the image is dirty. Skip the test case.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

91cf8a35 08/06/2012 11:39 pm Stefan Hajnoczi

qemu-iotests: ignore qemu-img create lazy_refcounts output

Hide the default lazy_refcounts=off output from qemu-img like we do with
other image creation options. This ensures that existing golden outputs
continue to pass despite the new option that has been added....

b0869a46 08/06/2012 11:39 pm Kevin Wolf

qemu-iotests: Be more flexible with image creation options

qemu-iotests already filters out image creation options that may be
present or not in order to get the same output in both cases. However,
often it only considers the default value of the option. Cover all valid...

2f24e8fb 07/17/2012 05:48 pm Kevin Wolf

qemu-iotests: Valgrind support

check -valgrind wraps all qemu-io calls with valgrind. This makes it a
bit easier to debug problems that occur somewhere deep in a test case.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>

a5126c75 05/02/2012 07:39 pm Dong Xu Wang

qemu-iotests: ignore fragmentation information for qed

We added image fragmentation statistics functions to qemu-img several days
ago, those patches will cause "./check -qed" failed. This patch will ignore
fragmentation statistics information of qed format, and then "./check -qed"...

89004368 04/20/2012 04:57 pm Kevin Wolf

qemu-iotests: Add -o and make v3 the default for qcow2

This adds an -o option to qemu-iotests, which is an option string that
is passed through to qemu-img create -o... This allows testing different
subformat with a command like './check -qcow2 -o compat=0.10'....

7299550b 04/19/2012 04:48 pm Kevin Wolf

qemu-iotests: Always filter cluster_size out in _make_test_img

Some image formats do have a cluster size, others don't, but there are
tests that work with both sets of images and currently we get failures
because the qemu-img create output doesn't mention the cluster size for...

21af8148 04/05/2012 04:08 pm Stefan Weil

qemu-iotests: Fix call syntax for qemu-img

qemu-img requires first options, then file name, then size.

GNU getopt also allows options at the end, but POSIX getopt
doesn't. Try "export POSIXLY_CORRECT=y" to get the POSIX
behaviour with GNU getopt, too.

Cc: Kevin Wolf <>...

bfe85248 02/23/2012 11:29 am Kevin Wolf

qemu-iotests: Update filter for default cluster size

Until recently, qemu-img create displayed cluster_size=0 for the default
cluster size. It is changed to display the real cluster size now, which results
in the cluster size not being filtered out any more....

f5a4bbd9 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: add support for qed format

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Christoph Hellwig <>

9cdfa1b3 02/23/2012 11:29 am MORITA Kazutaka

qemu-iotests: add support for rbd and sheepdog protocols

This patch introduces tests for protocols other than file, and
initially supports rbd and sheepdog.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Christoph Hellwig <>

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 <>...

2557d865 02/22/2012 05:17 pm Kevin Wolf

qemu-iotests: simple backing file test

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....

3b5fe6e6 02/22/2012 05:17 pm Stefan Weil

qemu-iotests: add support for vdi format "static" option

VDI supports an image option 'static'.
Ignore "static=off" from qemu-img output.

Signed-off-by: Stefan Weil <>
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...

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 <>