qemu/tests/qemu-iotests
Eric Blake 461743390d iotests: Add test 197 for covering copy-on-read
Add a test for qcow2 copy-on-read behavior, including exposure
for the just-fixed bugs.

The copy-on-read behavior is always to a qcow2 image, but the
test is careful to allow running with most image protocol/format
combos as the backing file being copied from (luks being the
exception, as it is harder to pass the right secret to all the
right places).  In fact, for './check nbd', this appears to be
the first time we've had a qcow2 image wrapping NBD, requiring
an additional line in _filter_img_create to match the similar
line in _filter_img_info.

Invoking blkdebug to prove we don't write too much took some
effort to get working; and it requires that $TEST_WRAP (based
on $TEST_DIR) not be subject to word splitting.  We may decide
later to have the entire iotests suite use relative rather than
absolute names, to avoid problems inherited by the absolute
name of $PWD or $TEST_DIR, at which point the sanity check in
this commit could be simplified.

This test requires at least 2G of consecutive memory to succeed;
as such, it is prone to spurious failures, particularly on
32-bit machines under load.  This situation is detected and
triggers an early exit to skip the test, rather than a failure.
To manually provoke this setup on a beefier machine, I used:
  $ (ulimit -S -v 1000000; ./check -qcow2 197)

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2017-10-06 16:28:58 +02:00
..
001
002
003
004
005
007
008
009
010
011
012
013
014
015
018
019
021
022
023
024
026
2017-04-27 15:46:16 +02:00
2017-04-27 15:46:16 +02:00
2017-04-27 15:46:16 +02:00
027
030
2017-10-06 16:28:58 +02:00
031
032
034
035
036
037
038
039
043
044
2017-07-11 17:45:02 +02:00
045
046
2017-05-11 11:08:40 +02:00
047
050
051
2017-09-26 14:46:23 +02:00
2017-09-26 14:46:23 +02:00
2017-09-26 14:46:23 +02:00
052
053
054
055
2017-07-24 15:06:04 +02:00
056
058
059
2017-08-01 18:09:33 +02:00
060
2017-07-10 13:18:05 +02:00
061
062
063
2017-08-01 18:09:33 +02:00
064
065
066
2017-05-11 12:08:24 +02:00
2017-05-11 12:08:24 +02:00
067
2017-09-26 14:46:23 +02:00
2017-09-26 14:46:23 +02:00
068
2017-09-06 15:19:01 +01:00
2017-09-06 15:19:01 +01:00
069
070
072
075
076
077
078
079
080
084
086
088
089
090
092
095
096
098
099
101
102
2017-09-26 15:00:32 +02:00
103
104
105
106
2017-09-26 15:00:32 +02:00
107
108
109
2017-08-08 14:36:59 +02:00
110
111
112
113
2017-07-10 13:18:05 +02:00
115
116
119
121
122
2017-05-11 14:28:07 +02:00
123
126
2017-07-11 17:45:00 +02:00
2017-07-11 17:45:00 +02:00
128
129
131
132
133
135
136
2017-08-08 15:19:16 +02:00
138
141
2017-08-01 18:09:33 +02:00
142
2017-07-11 17:45:00 +02:00
144
146
148
150
152
2017-07-10 13:18:05 +02:00
156
2017-08-01 18:09:33 +02:00
159
2017-07-11 17:44:59 +02:00
2016-09-20 22:10:57 +02:00
160
2016-09-20 22:10:57 +02:00
2016-09-20 22:10:57 +02:00
163
2017-09-26 15:00:32 +02:00
2017-09-26 15:00:32 +02:00
170
2017-07-11 17:44:59 +02:00
2016-09-20 22:10:57 +02:00
171
2017-07-11 17:45:00 +02:00
2017-09-18 19:43:38 -04:00
2017-02-12 00:47:42 +01:00
178
2017-07-11 17:45:01 +02:00
183
2017-06-09 11:45:03 +02:00
2017-06-09 11:45:03 +02:00
185
2017-08-11 14:44:39 +02:00
2017-10-06 16:28:58 +02:00

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