History | View | Annotate | Download (8.8 kB)
tests: allow qemu-iotests to be run against nbd backend
To do this, we start a qemu-nbd process at _make_test_img and killit in _cleanup_test_img. $TEST_IMG is changed to point at the TCPserver. We also remove the checks for existence of binaries fromcommon.config - they're duplicated in common, and we can make the...
qemu-iotests: Add 043 backing file chain infinite loop test
This new test verifies that qemu-img info --backing-chain safely abortswhen an image file has a backing file infinite loop.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-iotests: Save some sed processes
Instead of building a huge pipeline, just pass all expressions to asingle sed process.
Suggested-by: Eric Blake <eblake@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>
qemu-iotests: skip 039 with ./check -nocache
When the qemu-io --nocache option is used the 039 test case cannot abortQEMU at a point where the image is dirty. Skip the test case.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-iotests: ignore qemu-img create lazy_refcounts output
Hide the default lazy_refcounts=off output from qemu-img like we do withother image creation options. This ensures that existing golden outputscontinue to pass despite the new option that has been added....
qemu-iotests: Be more flexible with image creation options
qemu-iotests already filters out image creation options that may bepresent 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...
qemu-iotests: Valgrind support
check -valgrind wraps all qemu-io calls with valgrind. This makes it abit easier to debug problems that occur somewhere deep in a test case.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-iotests: ignore fragmentation information for qed
We added image fragmentation statistics functions to qemu-img several daysago, those patches will cause "./check -qed" failed. This patch will ignorefragmentation statistics information of qed format, and then "./check -qed"...
qemu-iotests: Add -o and make v3 the default for qcow2
This adds an -o option to qemu-iotests, which is an option string thatis passed through to qemu-img create -o... This allows testing differentsubformat with a command like './check -qcow2 -o compat=0.10'....
qemu-iotests: Always filter cluster_size out in _make_test_img
Some image formats do have a cluster size, others don't, but there aretests that work with both sets of images and currently we get failuresbecause the qemu-img create output doesn't mention the cluster size for...
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 getoptdoesn't. Try "export POSIXLY_CORRECT=y" to get the POSIXbehaviour with GNU getopt, too.
Cc: Kevin Wolf <kwolf@redhat.com>...
qemu-iotests: Update filter for default cluster size
Until recently, qemu-img create displayed cluster_size=0 for the defaultcluster size. It is changed to display the real cluster size now, which resultsin the cluster size not being filtered out any more....
qemu-iotests: add support for qed format
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Christoph Hellwig <hch@lst.de>
qemu-iotests: add support for rbd and sheepdog protocols
This patch introduces tests for protocols other than file, andinitially supports rbd and sheepdog.
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>Signed-off-by: Christoph Hellwig <hch@lst.de>
qemu-iotests: explicitly use bash interpreter
The tests use bash language features like 'let', which aren't supportedby /bin/sh on systems that use a conservative shell like dash. Thispatch changes the interpreter to /bin/bash.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>...
qemu-iotests: simple backing file test
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Signed-off-by: Christoph Hellwig <hch@lst.de>
qemu-iotests: replace FSF postal addresses with www.gnu.org links
Blue Swirl notices that we were using the old FSF post address in thelicense boilerplates. Replace both the old and new address with linksto the gnu.org licenses homepage as suggested by Ben Pfaff....
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 <weil@mail.berlios.de>Signed-off-by: Christoph Hellwig <hch@lst.de>
qemu-iotests: align test requests according to cluster size
Change the io_test and io_test2 functions to take the cluster size of the imageand the number of test requests to issue. Tests are changed to specify acluster size (usually 4k), but expected test results stay the same for now...
qemu-iotests: make a few more tests generic
Pretend that a non-implemented check is always successful and thus allowvarious tests that were qcow2-specific before to be generic.
Signed-off-by: Christoph Hellwig <hch@lst.de>Reviewed-by: Kevin Wolf <kwolf@redhat.com>
qemu-iotests: Initial import into the public repository.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>