diff options
author | Jeff Cody | 2013-09-25 14:12:20 +0200 |
---|---|---|
committer | Kevin Wolf | 2013-09-27 10:59:07 +0200 |
commit | 85edbd375b9ab451c6769011cb6b3e0287dc71e4 (patch) | |
tree | 204c1e7dcfecd0565a97b1f855eed6b8f9c165f5 /tests/qemu-iotests/sample_images | |
parent | qemu-iotests: fix qmp.py search path (diff) | |
download | qemu-85edbd375b9ab451c6769011cb6b3e0287dc71e4.tar.gz qemu-85edbd375b9ab451c6769011cb6b3e0287dc71e4.tar.xz qemu-85edbd375b9ab451c6769011cb6b3e0287dc71e4.zip |
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>
Diffstat (limited to 'tests/qemu-iotests/sample_images')
-rw-r--r-- | tests/qemu-iotests/sample_images/README | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/qemu-iotests/sample_images/README b/tests/qemu-iotests/sample_images/README new file mode 100644 index 0000000000..507af5f5ff --- /dev/null +++ b/tests/qemu-iotests/sample_images/README @@ -0,0 +1,8 @@ +This is for small sample images to be used with qemu-iotests, intended for +non-native formats that QEMU supports for compatibility. The idea is to use +the native tool to create the sample image. + +For instance, a VHDX image in this directory would be an image created not by +QEMU itself, but rather created by Hyper-V. + +Sample images added here must be compressed with bzip2. |