Skip to content

Improve integration of iotests in the meson test harness

Thomas Huth qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 5 repliesIn review
  2. v21 patch 3 repliesApplied
  3. v11 patch 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/qemu-iotests: Rework the checks and spots using GNU sedtests/check-block.sh tests/qemu-iotests/271 tests/qemu-iotests/common.filter +1 more+57 -670 replies
2/4tests/qemu-iotests/meson.build: Improve the indentationtests/qemu-iotests/meson.build+32 -290 replies
3/4tests/qemu-iotests: Move the bash and sanitizer checks to meson.buildtests/check-block.sh tests/qemu-iotests/meson.build+14 -261 reply
4/4tests: Do not treat the iotests as separate meson test target anymoremeson.build scripts/mtest2make.py tests/Makefile.include+4 -150 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéEric BlakeHanna Reitz
1/4R-b R-b
2/4R-b R-b
3/4R-b
4/4

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 v3 thread

Cover letter [PATCH v3 0/4] Improve integration of iotests in the meson test harness

Though "make check-block" is currently already run via the meson test runner, it still looks like an oddball in the output of "make check". It would be nicer if the iotests would show up like the other tests suites.

My original plan was to add each iotests individually from meson.build, but I did not get that done reliably yet [*], so here's now a cut-down version to improve the situation at least a little bit: The first three patches are preparation for the clean-up (long-term goal is to get rid of check-block.sh, though we're not quite there yet), and the final patch adds the iotests not as separate test target in the meson test harness anymore. This way, we can now finally get the output of failed tests on the console again (unless you're running meson test in verbose mode, where meson only puts this to the log file - for incomprehensible reasons), so this should hopefully help to diagnose problems with the iotests in most cases more easily.

[*] See v2 here:

    https://lists.gnu.org/archive/html/qemu-devel/2022-02/msg01942.html

Thomas Huth (4):
tests/qemu-iotests: Rework the checks and spots using GNU sed tests/qemu-iotests/meson.build: Improve the indentation tests/qemu-iotests: Move the bash and sanitizer checks to meson.build
tests: Do not treat the iotests as separate meson test target anymore

 meson.build                      |  6 +--
 scripts/mtest2make.py            |  4 --
 tests/Makefile.include           |  9 +---
 tests/check-block.sh             | 38 -----------------
 tests/qemu-iotests/271           |  2 +-
 tests/qemu-iotests/common.filter | 65 ++++++++++++++--------------
 tests/qemu-iotests/common.rc     | 45 ++++++++++----------
 tests/qemu-iotests/meson.build   | 73 ++++++++++++++++++++------------
 8 files changed, 106 insertions(+), 136 deletions(-)
Signature · 1 line
2.27.0