qemu/tests/qemu-iotests
Daniel P. Berrangé cf168e398b tests/qemu-iotests: add QEMU_IOTESTS_REGEN=1 to update reference file
When developing an I/O test it is typical to add some logic to the
test script, run it to view the output diff, and then apply the
output diff to the reference file. This can be drastically simplified
by letting the test runner update the reference file in place.

By setting 'QEMU_IOTESTS_REGEN=1', the test runner will report the
failure and show the diff, but at the same time update the reference
file. So next time the I/O test is run it will succeed.

Continuing to display the diff when updating the reference gives the
developer a chance to review what was changed.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220304193610.3293146-7-berrange@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2022-03-07 15:58:42 -06:00
..
001
002
003
004
005
007
008
009
010
011
012
013
014
015
017
018
019
020
021
022
023
024
025
026
027
028
029
032
033
034
035
036
2022-02-01 10:51:39 +01:00
037
038
039
2022-02-01 10:51:39 +01:00
041
2021-07-09 13:18:32 +02:00
042
043
044
2022-02-01 10:51:39 +01:00
045
046
047
048
049
050
2021-10-15 16:06:23 +02:00
052
053
054
055
056
057
058
059
062
063
064
065
2022-02-01 10:51:39 +01:00
066
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
086
087
088
089
090
091
092
093
094
095
096
097
098
099
101
102
103
104
105
106
107
108
109
110
111
113
114
2021-07-09 13:18:32 +02:00
115
116
117
118
119
120
121
123
124
125
126
127
128
130
131
132
133
134
135
136
137
2022-02-01 10:51:39 +01:00
138
139
140
141
2021-12-28 15:18:59 +01:00
143
144
145
146
147
148
149
2021-11-23 15:39:12 +01:00
150
152
153
154
155
2021-07-09 13:19:11 +02:00
156
157
158
159
160
161
162
170
171
172
2021-07-06 14:28:55 +01:00
173
174
175
176
177
178
179
181
182
183
184
185
2022-03-04 18:14:40 +01:00
2022-03-04 18:14:40 +01:00
186
187
188
190
191
192
194
195
197
200
201
202
203
204
205
206
2021-11-23 15:39:12 +01:00
208
209
2022-02-01 10:51:39 +01:00
2021-11-23 15:39:12 +01:00
211
212
213
214
2022-02-01 10:51:39 +01:00
215
216
217
218
2021-11-01 11:54:59 -04:00
219
220
221
223
224
225
226
227
228
229
231
232
234
236
237
238
239
240
241
243
244
247
248
2021-07-09 13:19:11 +02:00
2021-07-09 13:19:11 +02:00
249
250
251
252
253
255
2021-11-01 11:54:59 -04:00
256
257
258
259
261
262
263
264
265
266
267
268
270
272
273
2022-01-14 12:03:16 +01:00
277
279
280
282
283
2021-12-28 15:18:59 +01:00
2021-12-28 15:18:59 +01:00
284
286
288
289
292
293
294
295
297
2021-11-01 11:54:59 -04:00
298
2021-07-09 13:19:11 +02:00
299
301
2021-07-09 13:18:32 +02:00
302
2022-02-01 10:51:39 +01:00
2022-02-01 10:51:39 +01:00
303
2022-02-01 10:51:39 +01:00
2022-02-01 10:51:39 +01:00
304
305
308
2022-01-14 12:03:16 +01:00
2022-01-14 12:03:16 +01:00
312
313

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