NAME = "qemu-iotests"
AUTHOR = "Yolkfull Chow <yzhou@redhat.com>"
TIME = "MEDIUM"
TEST_CATEGORY = "kvm"
TEST_CLASS = "KERNEL"
TEST_TYPE = "CLIENT"
DOC = """
This is the QEMU I/O test suite autotest module

* Intro

This package contains a simple test suite for the I/O layer of qemu.
It does not requite a guest, but only the qemu, qemu-img and qemu-io
binaries.  This does limit it to exercise the low-level I/O path only
but no actual block drivers like ide, scsi or virtio.

* Usage

Just run ./check to run all tests for the raw image format, or ./check
-qcow2 to test the qcow2 image format.  The output of ./check -h explains
additional options to test further image formats or I/O methods.

* Feedback and patches

Please send improvements to the upstream test suite, general feedback or just
reports of failing tests cases to qemu-devel@savannah.nongnu.org.
"""

image_types = ['raw', 'cow', 'qcow', 'qcow2', 'vpc', 'vmdk']

for image_type in image_types:
    option_flag = '-' + image_type
    job.run_test('qemu_iotests', qemu_path='', options=option_flag,
                 tag=image_type)