xemu/tests/qemu-iotests
Eric Blake a174da3613 qemu-iotests: Reduce racy output in 028
On my machine, './check -qcow2 028' was failing about 80% of the
time, due to a race in how many times the repeated attempts
to run 'info block-jobs' could occur before the job was done,
showing up as a failure of fewer '(qemu) ' prompts than in the
expected output.  Silence the output during the repetitions, then
add a final clean command to keep the expected output useful;
once patched, I was finally able to run the test 20 times in a
row with no failures.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2016-01-20 13:36:23 +01:00
..
sample_images block: qemu-iotests - add check for multiplication overflow in vpc 2015-07-27 17:19:07 +02:00
.gitignore
001
001.out
002
002.out
003
003.out
004
004.out
005
005.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
017
017.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
018 iotests: 018: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
018.out iotests: 018: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
019 iotests: 019: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
019.out iotests: 019: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
020 iotests: 020: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
020.out iotests: 020: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
021
021.out
022
022.out
023
023.out
024 iotests: 024: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
024.out iotests: 024: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
025
025.out
026 blkdebug: Avoid '.' in enum values 2015-12-17 08:21:27 +01:00
026.out blkdebug: Avoid '.' in enum values 2015-12-17 08:21:27 +01:00
026.out.nocache blkdebug: Avoid '.' in enum values 2015-12-17 08:21:27 +01:00
027
027.out
028 qemu-iotests: Reduce racy output in 028 2016-01-20 13:36:23 +01:00
028.out qemu-iotests: Reduce racy output in 028 2016-01-20 13:36:23 +01:00
029
029.out
030 iotests: fix race in 030 2015-11-18 15:54:15 +01:00
030.out
031
031.out
032
032.out
033 qemu-iotests: Test unaligned sub-block zero write 2015-05-22 09:37:33 +01:00
033.out qemu-iotests: Test unaligned sub-block zero write 2015-05-22 09:37:33 +01:00
034 iotests: 034: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
034.out iotests: 034: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
035
035.out
036
036.out
037 iotests: 037: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
037.out iotests: 037: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
038 iotests: 038: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
038.out iotests: 038: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
039 qemu-iotests: Reopen qcow2 with lazy-refcounts change 2015-09-14 16:51:37 +02:00
039.out qemu-iotests: fix -valgrind option for check 2015-11-11 16:55:28 +01:00
040 qemu-iotests: Test the reopening of overlay_bs in 'block-commit' 2015-11-11 16:25:47 +01:00
040.out qemu-iotests: Test the reopening of overlay_bs in 'block-commit' 2015-11-11 16:25:47 +01:00
041 iotests: Add test cases for blockdev-mirror 2016-01-07 21:30:18 +01:00
041.out iotests: Add test cases for blockdev-mirror 2016-01-07 21:30:18 +01:00
042
042.out
043
043.out block/qapi: always report full_backing_filename 2015-12-18 14:36:17 +01:00
044
044.out
045
045.out
046
046.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
047
047.out
048
048.out
049
049.out tests: Fix test 049 fallout from improved HMP error messages 2015-10-02 13:48:29 +02:00
050 iotests: 050: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
050.out iotests: 050: Use TEST_IMG override instead of "mv" 2016-01-07 21:30:17 +01:00
051 qemu-iotests: s390x: fix test 051 2016-01-07 21:30:17 +01:00
051.out qemu-iotests: s390x: fix test 051 2016-01-07 21:30:17 +01:00
051.pc.out qemu-iotests: s390x: fix test 051 2016-01-07 21:30:17 +01:00
052
052.out
053
053.out
054
054.out
055 iotests: Respect -nodefaults in tests 41 and 55 2015-09-04 20:59:48 +02:00
055.out
056 iotests: Add regresion test case for write notifier assertion failure 2015-12-03 11:08:07 +08:00
056.out iotests: Add regresion test case for write notifier assertion failure 2015-12-03 11:08:07 +08:00
057
057.out
058 qemu-iotests: fix cleanup of background processes 2015-11-11 16:55:28 +01:00
058.out
059 qemu-iotests: qemu-img info on afl VMDK image with a huge capacity 2015-05-22 17:08:01 +02:00
059.out vmdk: Clean up "Invalid extent lines" error message 2016-01-13 15:16:18 +01:00
060
060.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
061 iotests: disable core dumps in test 061 2015-10-16 15:34:29 +02:00
061.out qcow2: Use error_report() in qcow2_amend_options() 2015-12-18 14:34:43 +01:00
062
062.out
063
063.out
064
064.out
065
065.out
066
066.out
067 block: auto-generated node-names 2015-10-16 15:34:30 +02:00
067.out block: auto-generated node-names 2015-10-16 15:34:30 +02:00
068 qemu-iotests: s390x: fix test 068 2015-12-18 14:36:17 +01:00
068.out
069
069.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
070
070.out vhdx: Fix "log that needs to be replayed" error message 2016-01-13 15:16:18 +01:00
071 iotests: Only create BB if necessary 2015-10-23 18:18:22 +02:00
071.out iotests: Only create BB if necessary 2015-10-23 18:18:22 +02:00
072
072.out
073
073.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
074
074.out
075
075.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
076 iotests, parallels: test for write into Parallels image 2015-05-22 09:37:31 +01:00
076.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
077 blkdebug: Avoid '.' in enum values 2015-12-17 08:21:27 +01:00
077.out
078
078.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
079
079.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
080
080.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
081 iotests: Only create BB if necessary 2015-10-23 18:18:22 +02:00
081.out iotests: Only create BB if necessary 2015-10-23 18:18:22 +02:00
082
082.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
083 nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
083.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
084
084.out
085 block: test 'blockdev-snapshot' using a file BDS as the overlay 2015-11-11 16:25:48 +01:00
085.out block: test 'blockdev-snapshot' using a file BDS as the overlay 2015-11-11 16:25:48 +01:00
086 iotests: 086: Add raw format 2016-01-07 21:30:16 +01:00
086.out
087 blockdev: Allow creation of BDS trees without BB 2015-10-23 18:18:22 +02:00
087.out blockdev: Allow creation of BDS trees without BB 2015-10-23 18:18:22 +02:00
088
088.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
089
089.out
090
090.out
091
091.out
092
092.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
093 qemu-iotests: expand test 093 to support group throttling 2015-06-12 14:00:00 +01:00
093.out
094 iotests: Update comments for bdrv_swap() in 094 2015-12-18 14:34:44 +01:00
094.out
095 iotests: 095: Filter _img_info output 2016-01-07 21:30:17 +01:00
095.out iotests: 095: Filter _img_info output 2016-01-07 21:30:17 +01:00
096 throttle: test that snapshots move the throttling configuration 2015-10-16 15:34:29 +02:00
096.out throttle: test that snapshots move the throttling configuration 2015-10-16 15:34:29 +02:00
097
097.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
098
098.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
099
099.out
100
100.out
101
101.out
102
102.out
103 iotests: qcow2 COW with minimal L2 cache size 2015-06-12 15:54:01 +02:00
103.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
104
104.out
105
105.out
107
107.out
108
108.out
109
109.out
110
110.out block/qapi: allow best-effort query 2015-12-18 14:36:17 +01:00
111
111.out
112 iotests: Extend test 112 for qemu-img amend 2015-12-18 14:34:43 +01:00
112.out iotests: Extend test 112 for qemu-img amend 2015-12-18 14:34:43 +01:00
113
113.out
114
114.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
115 iotests: Test non-self-referential qcow2 refblocks 2015-03-16 12:10:30 -04:00
115.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
116
116.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
118 blockdev: Mark {insert, remove}-medium experimental 2015-12-11 15:39:29 +00:00
118.out iotests: Add test for change-related QMP commands 2015-11-11 16:25:47 +01:00
119 qemu-iotests: Add -nographic when starting QEMU in 119 and 120 2015-11-25 14:29:39 +01:00
119.out iotests: Add tests for overriding BDRV_O_PROTOCOL 2015-06-12 15:54:08 +02:00
120 qemu-iotests: Add -nographic when starting QEMU in 119 and 120 2015-11-25 14:29:39 +01:00
120.out iotests: Add tests for overriding BDRV_O_PROTOCOL 2015-06-12 15:54:08 +02:00
121 iotests: Add tests for refcount table growth 2015-03-16 12:10:30 -04:00
121.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
122 qemu-iotests: Some qemu-img convert tests 2015-04-28 15:36:09 +02:00
122.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
123
123.out
124 iotests: 124: don't reopen qcow2 2015-12-18 14:34:42 +01:00
124.out iotests: 124 - transactional failure test 2015-11-12 16:22:44 +01:00
128 iotests: Fix test 128 for password-less sudo 2015-10-02 13:48:29 +02:00
128.out
129 qemu-iotests: Test that "stop" doesn't drain block jobs 2015-04-28 15:36:09 +02:00
129.out qemu-iotests: Test that "stop" doesn't drain block jobs 2015-04-28 15:36:09 +02:00
130 qemu-iotests: s390x: fix test 130 2015-09-04 20:59:48 +02:00
130.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
131 iotests, parallels: check for incorrectly closed image in tests 2015-05-22 09:37:32 +01:00
131.out qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() 2016-01-13 15:16:18 +01:00
132 qemu-iotests: Add test case for mirror with unmap 2015-07-02 10:06:23 +01:00
132.out qemu-iotests: Add test case for mirror with unmap 2015-07-02 10:06:23 +01:00
133 qemu-iotests: Test reopen with node-name/driver options 2015-12-18 14:34:43 +01:00
133.out qemu-iotests: Test reopen with node-name/driver options 2015-12-18 14:34:43 +01:00
134 tests: add test case for encrypted qcow2 read/write 2015-05-22 17:08:09 +02:00
134.out tests: add test case for encrypted qcow2 read/write 2015-05-22 17:08:09 +02:00
135 block: qemu-iotests - add check for multiplication overflow in vpc 2015-07-27 17:19:07 +02:00
135.out block: qemu-iotests - add check for multiplication overflow in vpc 2015-07-27 17:19:07 +02:00
136 block: make 'stats-interval' an array of ints instead of a string 2015-11-17 18:35:57 +08:00
136.out iotests: Add test for the block device statistics 2015-11-12 16:22:46 +01:00
137 qemu-iotests: More qcow2 reopen tests 2015-09-14 16:51:37 +02:00
137.out qemu-iotests: fix -valgrind option for check 2015-11-11 16:55:28 +01:00
138 iotests: Add test for checking large image files 2015-09-14 16:51:37 +02:00
138.out iotests: Add test for checking large image files 2015-09-14 16:51:37 +02:00
139 blockdev: Mark {insert, remove}-medium experimental 2015-12-11 15:39:29 +00:00
139.out iotests: Add tests for the x-blockdev-del command 2015-11-11 16:55:29 +01:00
142 qemu-iotests: Test cache mode option inheritance 2015-12-18 14:34:43 +01:00
142.out qemu-iotests: Test cache mode option inheritance 2015-12-18 14:34:43 +01:00
check iotests: Do not suppress segfaults in bash tests 2015-09-04 20:59:48 +02:00
common qemu-iotests: fix -valgrind option for check 2015-11-11 16:55:28 +01:00
common.config qemu-iotests: refine common.config 2015-12-18 14:36:17 +01:00
common.filter block: auto-generated node-names 2015-10-16 15:34:30 +02:00
common.pattern
common.qemu qemu-iotests: fix cleanup of background processes 2015-11-11 16:55:28 +01:00
common.rc qemu-iotests: fix -valgrind option for check 2015-11-11 16:55:28 +01:00
COPYING
group qemu-iotests: Test reopen with node-name/driver options 2015-12-18 14:34:43 +01:00
iotests.py qemu-iotests: Remove cache mode test without medium 2015-12-18 14:34:43 +01:00
Makefile
nbd-fault-injector.py
qcow2.py
qed.py
README
socket_scm_helper.c

=== 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.