e425306a27
Add tests to exercise the InvalidParameter 'speed' error code path, as well as the regular success case for setting the speed. The block-stream 'speed' parameter allows the speed limit of the job to be applied immediately when the job starts instead of issuing a separate block-job-set-speed command later. If the parameter has an invalid value we expect to get an error and the job is not created. It turns out that cancelling a block job is a common operation in these test cases, let's extract a cancel_and_wait() function instead of duplicating the QMP commands. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Acked-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
001 | ||
001.out | ||
002 | ||
002.out | ||
003 | ||
003.out | ||
004 | ||
004.out | ||
005 | ||
005.out | ||
006 | ||
006.out | ||
007 | ||
007.out | ||
008 | ||
008.out | ||
009 | ||
009.out | ||
010 | ||
010.out | ||
011 | ||
011.out | ||
012 | ||
012.out | ||
013 | ||
013.out | ||
014 | ||
014.out | ||
015 | ||
015.out | ||
016 | ||
016.out | ||
017 | ||
017.out | ||
018 | ||
018.out | ||
019 | ||
019.out | ||
020 | ||
020.out | ||
021 | ||
021.out | ||
022 | ||
022.out | ||
023 | ||
023.out | ||
024 | ||
024.out | ||
025 | ||
025.out | ||
026 | ||
026.out | ||
027 | ||
027.out | ||
028 | ||
028.out | ||
029 | ||
029.out | ||
030 | ||
030.out | ||
031 | ||
031.out | ||
032 | ||
032.out | ||
033 | ||
033.out | ||
034 | ||
034.out | ||
check | ||
common | ||
common.config | ||
common.filter | ||
common.pattern | ||
common.rc | ||
COPYING | ||
group | ||
iotests.py | ||
Makefile | ||
qcow2.py | ||
README |
=== This is the QEMU I/O test suite === * Intro This package contains a simple test suite for the I/O layer of qemu. It does not require 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 test suite, general feedback or just reports of failing tests cases to qemu-devel@savannah.nongnu.org.