Skip to content

iotests: Fix iotests for weird formats/options

Max Reitz qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17block/vmdk: Fix , instead of ; at end of lineblock/vmdk.c+1 -12 replies
2/17qcow2: No persistent dirty bitmaps for compat=0.10block/qcow2-bitmap.c block/qcow2.c+21 -31 reply
3/17block/qcow: Add blkdebug eventsblock/qcow.c+16 -01 reply
4/17block/vmdk: Add blkdebug eventsblock/vmdk.c+16 -01 reply
5/17iotests: Fix _img_info for backslashestests/qemu-iotests/common.rc+1 -11 reply
6/17iotests: Drop format-specific in _filter_img_infotests/qemu-iotests/198 tests/qemu-iotests/common.filter+32 -35 replies
7/17iotests: Forbid 020 for non-file protocolstests/qemu-iotests/020+1 -71 reply
8/17iotests: Skip 103 for refcount_bits=1tests/qemu-iotests/103+2 -05 replies
9/17iotests: Disable some tests for compat=0.10tests/qemu-iotests/080 tests/qemu-iotests/130 tests/qemu-iotests/137 +2 more+12 -124 replies
10/17iotests: Fix 020 for vmdktests/qemu-iotests/020 tests/qemu-iotests/020.out+10 -52 replies
11/17iotests: Fix 051 for compat=0.10tests/qemu-iotests/051 tests/qemu-iotests/051.out tests/qemu-iotests/051.pc.out+4 -00 replies
12/17iotests: Fix 059's reference outputtests/qemu-iotests/059.out+1 -12 replies
13/17iotests: Fix 067 for compat=0.10tests/qemu-iotests/067 tests/qemu-iotests/067.out+28 -721 reply
14/17iotests: Make 089 compatible with compat=0.10tests/qemu-iotests/089 tests/qemu-iotests/089.out+2 -121 reply
15/17iotests: Make 184 image-lesstests/qemu-iotests/184 tests/qemu-iotests/184.out+14 -741 reply
16/17iotests: Make 191 work with qcow2 optionstests/qemu-iotests/191 tests/qemu-iotests/191.out+91 -2271 reply
17/17iotests: Filter compat-dependent info in 198tests/qemu-iotests/198 tests/qemu-iotests/198.out+4 -101 reply

Reviews trailers per patch

16 of 17 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric BlakeJohn SnowFam Zheng
SeriesR-b
1/17R-b R-b
2/17R-b
3/17R-b
4/17R-b
5/17R-b
6/17R-b R-b
7/17R-b
8/17R-b
9/17R-b
10/17R-b R-b
11/17
12/17R-b R-b
13/17R-b
14/17R-b
15/17R-b
16/17R-b
17/17R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/17] iotests: Fix iotests for weird formats/options

This series fixes the qemu-iotests for qcow, vmdk, qcow2 v2 and qcow2 v3 with refcount_bits=1.

Patches 1 and 2 contain real fixes (not urgent, though, so no need to hurry for 2.11--we can take them into 2.11 if we want to, but there is no absolute need for them).

Patches 3 and 4 add blkdebug events to qcow and vmdk so iotests 020 can work with them even after patch 10.

Patches 5 and 6 are general "fixes" for the iotests infrastructure.

Patches 7, 8, and 9 add some missing skips under certain circumstances to tests that need them.

The rest of this series (patches 10 through 17) actually fix tests so they work for the formats and options mentioned above.

(Fun fact: qcow v1 wasn't broken before this series. But it would be
broken by patch 10 if I didn't include patch 3. That is why I mentioned it above.)

Personal note: I should really stop writing bash tests, at least as soon as there is QMP involved. While working on this series I got sidetracked a bit and actually wrote some iotests.py functions that may come in handy next time I write a test.

(I hate to write Python tests because the boilerplate seems so large and
the debugging is so hard. But there is test 194 which shows that it is possible to write simple bash-like tests as well--and that is how I should probably write tests from now on.)

Max Reitz (17):
block/vmdk: Fix , instead of ; at end of line
qcow2: No persistent dirty bitmaps for compat=0.10 block/qcow: Add blkdebug events block/vmdk: Add blkdebug events
iotests: Fix _img_info for backslashes
iotests: Drop format-specific in _filter_img_info
iotests: Forbid 020 for non-file protocols
iotests: Skip 103 for refcount_bits=1
iotests: Disable some tests for compat=0.10
iotests: Fix 020 for vmdk
iotests: Fix 051 for compat=0.10
iotests: Fix 059's reference output
iotests: Fix 067 for compat=0.10
iotests: Make 089 compatible with compat=0.10
iotests: Make 184 image-less
iotests: Make 191 work with qcow2 options
iotests: Filter compat-dependent info in 198

 block/qcow.c                     |  16 ++
 block/qcow2-bitmap.c             |  10 ++
 block/qcow2.c                    |  14 +-
 block/vmdk.c                     |  18 ++-
 tests/qemu-iotests/020           |  17 +--
 tests/qemu-iotests/020.out       |   6 +-
 tests/qemu-iotests/051           |   2 +
 tests/qemu-iotests/051.out       |   1 +
 tests/qemu-iotests/051.pc.out    |   1 +
 tests/qemu-iotests/059.out       |   2 +-
 tests/qemu-iotests/067           |   3 +-
 tests/qemu-iotests/067.out       |  97 ++++--------
 tests/qemu-iotests/080           |   5 +-
 tests/qemu-iotests/089           |   4 +-
 tests/qemu-iotests/089.out       |  10 --
 tests/qemu-iotests/103           |   2 +
 tests/qemu-iotests/130           |   2 +
 tests/qemu-iotests/137           |   2 +
 tests/qemu-iotests/176           |   2 +
 tests/qemu-iotests/177           |  13 +-
 tests/qemu-iotests/184           |  25 +---
 tests/qemu-iotests/184.out       |  63 ++------
 tests/qemu-iotests/191           |   5 +-
 tests/qemu-iotests/191.out       | 313 +++++++++++----------------------------
 tests/qemu-iotests/198           |   8 +-
 tests/qemu-iotests/198.out       |   8 -
 tests/qemu-iotests/common.filter |  29 +++-
 tests/qemu-iotests/common.rc     |   2 +-
 28 files changed, 254 insertions(+), 426 deletions(-)
Signature · 1 line
2.13.6