]> git.proxmox.com Git - mirror_qemu.git/commit - tests/qemu-iotests/common.rc
qemu-iotests: Add basic ability to use binary sample images
authorJeff Cody <jcody@redhat.com>
Wed, 25 Sep 2013 12:12:20 +0000 (08:12 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 27 Sep 2013 08:59:07 +0000 (10:59 +0200)
commit85edbd375b9ab451c6769011cb6b3e0287dc71e4
tree204c1e7dcfecd0565a97b1f855eed6b8f9c165f5
parent212774c5a5036b327dc10a0dd3e5fe194b509a18
qemu-iotests: Add basic ability to use binary sample images

For image formats that are not "QEMU native", but supported for
compatibility, it is useful to verify that an image created with
the 'gold standard' native tool can be read / written to successfully
by QEMU.

In addition to testing non-native images, this could also be useful to
test against image files created by older versions of QEMU.

This provides a directory to store small sample images, for use by
scripts in tests/qemu-iotests.

Image files should be compressed with bzip2.

To use a sample image from a bash script, the _use_sample_img function
will copy and decompress the image into $TEST_DIR, and set $TEST_IMG to
be the decompressed sample image copy.  To cleanup, call
_cleanup_test_img as normal.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/common.config
tests/qemu-iotests/common.rc
tests/qemu-iotests/sample_images/README [new file with mode: 0644]