qemu-irix/tests/qemu-iotests
Jeff Cody ecfa185400 qemu-iotests: _cleanup_qemu must be called on exit
For the tests that use the common.qemu functions for running a QEMU
process, _cleanup_qemu must be called in the exit function.

If it is not, if the qemu process aborts, then not all of the droppings
are cleaned up (e.g. pidfile, fifos).

This updates those tests that did not have a cleanup in qemu-iotests.

(I swapped spaces for tabs in test 102 as well)

Reported-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Message-id: d59c2f6ad6c1da8b9b3c7f357c94a7122ccfc55a.1492544096.git.jcody@redhat.com
2017-04-24 15:09:33 -04:00
..
sample_images
.gitignore iotests: record separate timings per format,protocol pair 2017-02-12 00:47:42 +01:00
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 qemu-iotests: exclude vxhs from image creation via protocol 2017-04-24 15:09:33 -04:00
017.out
018
018.out
019
019.out
020 qemu-iotests: exclude vxhs from image creation via protocol 2017-04-24 15:09:33 -04:00
020.out
021
021.out
022
022.out
023
023.out
024
024.out
025 block: Drop unmaintained 'archipelago' driver 2017-03-13 12:49:33 +01:00
025.out
026
026.out block: Don't mark node clean after failed flush 2016-11-08 16:06:35 +00:00
026.out.nocache block: Don't mark node clean after failed flush 2016-11-08 16:06:35 +00:00
027
027.out
028 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
028.out
029 qemu-iotests: exclude vxhs from image creation via protocol 2017-04-24 15:09:33 -04:00
029.out
030 iotests: Fix another race in 030 2017-02-24 16:09:23 +01:00
030.out qemu-iotests: Test the 'base-node' parameter of 'block-stream' 2016-10-31 16:52:39 +01:00
031
031.out
032
032.out
033
033.out
034
034.out
035
035.out
036
036.out
037
037.out
038
038.out
039
039.out
040
040.out
041 iotests: Add mirror tests for orphaned source 2017-04-07 14:44:06 +02:00
041.out iotests: Add mirror tests for orphaned source 2017-04-07 14:44:06 +02:00
042
042.out
043
043.out
044
044.out
045
045.out
046
046.out
047
047.out
048
048.out
049
049.out option: Tweak invalid size error message and unbreak iotest 049 2017-02-28 20:40:31 +01:00
050
050.out
051
051.out block: Attach bs->file only during .bdrv_open() 2017-02-24 16:09:23 +01:00
051.pc.out hw/block: Request permissions 2017-02-28 20:40:36 +01:00
052
052.out
053
053.out
054
054.out
055 backup: Use real permissions in backup block job 2017-02-28 20:40:37 +01:00
055.out
056
056.out
057
057.out
058
058.out
059
059.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
060
060.out
061
061.out
062
062.out
063
063.out
064
064.out
065
065.out
066
066.out
067 block: Remove "options" indirection from blockdev-add 2016-10-24 17:54:03 +02:00
067.out qemu-iotests/067: Avoid blockdev-add with id 2016-09-23 13:45:36 +02:00
068
068.out
069
069.out
070
070.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
071 block: Remove "options" indirection from blockdev-add 2016-10-24 17:54:03 +02:00
071.out blkverify: Implement bdrv_co_preadv/pwritev/flush 2017-01-09 13:30:52 +01:00
072
072.out
073 qemu-iotests: exclude vxhs from image creation via protocol 2017-04-24 15:09:33 -04:00
073.out
074
074.out
075
075.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
076
076.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
077
077.out
078
078.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
079
079.out
080
080.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
081 block: Remove "options" indirection from blockdev-add 2016-10-24 17:54:03 +02:00
081.out
082
082.out
083
083.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
084
084.out
085 block: Remove "options" indirection from blockdev-add 2016-10-24 17:54:03 +02:00
085.out block: Add Error parameter to bdrv_append() 2017-02-28 20:47:51 +01:00
086
086.out
087 block: Remove "options" indirection from blockdev-add 2016-10-24 17:54:03 +02:00
087.out qapi: return a 'missing parameter' error 2016-10-07 19:22:11 +02:00
088
088.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
089
089.out
090
090.out
091
091.out
092
092.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
093 qemu-iotests: Test I/O in a single drive from a throttling group 2016-10-24 17:54:03 +02:00
093.out qemu-iotests: Test I/O in a single drive from a throttling group 2016-10-24 17:54:03 +02:00
094 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
094.out
095
095.out
096
096.out
097 iotests: Improve image-clear tests on non-aligned image 2017-04-03 17:11:40 +02:00
097.out iotests: Improve image-clear tests on non-aligned image 2017-04-03 17:11:40 +02:00
098
098.out
099
099.out
101
101.out
102 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
102.out
103
103.out
104
104.out
105
105.out
107
107.out
108
108.out
109 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
109.out block: Use bdrv_coroutine_enter to start I/O coroutines 2017-04-11 20:07:15 +08:00
110
110.out
111
111.out
112
112.out
113
113.out
114 qemu-iotests: exclude vxhs from image creation via protocol 2017-04-24 15:09:33 -04:00
114.out
115
115.out
116
116.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
117 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
117.out
118 block: Remove "options" indirection from blockdev-add 2016-10-24 17:54:03 +02:00
118.out
119
119.out
120
120.out
121
121.out
122
122.out
123
123.out
124 iotests: add transactional failure race test 2016-11-14 22:47:34 -05:00
124.out iotests: add transactional failure race test 2016-11-14 22:47:34 -05:00
128
128.out
129
129.out
130 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
130.out
131
131.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
132
132.out
133
133.out
134 qemu-iotests: exclude vxhs from image creation via protocol 2017-04-24 15:09:33 -04:00
134.out
135
135.out
136
136.out
137 qemu-iotests: Test 137 only supports 'file' protocol 2017-02-24 16:09:22 +01:00
137.out
138
138.out
139 block: Declare blockdev-add and blockdev-del supported 2017-03-28 15:23:23 +02:00
139.out qemu-iotests/139: Avoid blockdev-add with id 2016-09-23 13:45:36 +02:00
140 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
140.out qemu-io: Return non-zero exit code on failure 2017-02-12 00:47:42 +01:00
141 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
141.out mirror: Use real permissions in mirror/active commit block job 2017-02-28 20:47:46 +01:00
142
142.out
143 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
143.out
144
144.out
145
145.out
146
146.out
147 nbd: Tidy up blockdev-add interface 2017-04-03 17:11:39 +02:00
147.out iotests: Add test for NBD's blockdev-add interface 2016-10-27 19:05:23 +02:00
148
148.out
149
149.out
150
150.out
152
152.out
154
154.out
155 block: Remove "options" indirection from blockdev-add 2016-10-24 17:54:03 +02:00
155.out
156 qemu-iotests: _cleanup_qemu must be called on exit 2017-04-24 15:09:33 -04:00
156.out
157
157.out
158 qemu-iotests: exclude vxhs from image creation via protocol 2017-04-24 15:09:33 -04:00
158.out qcow2: fix encryption during cow of sectors 2016-09-23 13:36:09 +02:00
159
159.out
160
160.out
162 iotests: Skip test 162 if there is no SSH support 2016-11-11 15:56:22 +01:00
162.out iotests: Do not rely on unavailable domains in 162 2016-10-24 17:54:03 +02:00
170
170.out
171 qemu-iotests: test 'offset' and 'size' options in raw driver 2016-10-31 16:52:39 +01:00
171.out qemu-iotests: test 'offset' and 'size' options in raw driver 2016-10-31 16:52:39 +01:00
172 qemu-iotests: Test creating floppy drives 2016-10-27 16:29:14 -04:00
172.out hw/block: Introduce share-rw qdev property 2017-02-28 20:40:36 +01:00
173 qemu-iotest: test to lookup protocol-based image with relative backing 2017-02-12 00:47:42 +01:00
173.out qemu-iotest: test to lookup protocol-based image with relative backing 2017-02-12 00:47:42 +01:00
174 qemu-io: Add failure regression tests 2017-02-12 00:47:42 +01:00
174.out qemu-io: Add failure regression tests 2017-02-12 00:47:42 +01:00
175 qemu-img: Add tests for raw image preallocation 2017-02-24 16:09:22 +01:00
175.out qemu-img: Add tests for raw image preallocation 2017-02-24 16:09:22 +01:00
176 iotests: Improve image-clear tests on non-aligned image 2017-04-03 17:11:40 +02:00
176.out iotests: Improve image-clear tests on non-aligned image 2017-04-03 17:11:40 +02:00
COPYING
Makefile iotests: record separate timings per format,protocol pair 2017-02-12 00:47:42 +01:00
README
check iotests: record separate timings per format,protocol pair 2017-02-12 00:47:42 +01:00
common block/vxhs.c: Add qemu-iotests for new block device type "vxhs" 2017-04-24 15:09:33 -04:00
common.config block/vxhs.c: Add qemu-iotests for new block device type "vxhs" 2017-04-24 15:09:33 -04:00
common.filter block/vxhs.c: Add qemu-iotests for new block device type "vxhs" 2017-04-24 15:09:33 -04:00
common.pattern
common.qemu qemu-iotests: Don't create fifos / pidfiles with protocol paths 2017-02-12 00:47:42 +01:00
common.rc block/vxhs.c: Add qemu-iotests for new block device type "vxhs" 2017-04-24 15:09:33 -04:00
group iotests: fix 097 when run with qcow 2017-04-03 17:11:40 +02:00
iotests.py iotests: Add mirror tests for orphaned source 2017-04-07 14:44:06 +02:00
nbd-fault-injector.py
qcow2.py
qed.py
socket_scm_helper.c socket_scm_helper: Accept fd directly 2016-10-27 19:05:23 +02:00

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@nongnu.org with a CC:
to qemu-block@nongnu.org.