Skip to content

Improve integration of iotests in the meson test harness

Thomas Huth qemu-devel 2 versions – Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 8 repliesApplied
  2. v16 patches 23 repliesSuperseded

Changes in v2 from the cover letter

- Add new 1st patch to fix "make check-block SPEED=thorough"
- Improve bash version check
- Rewrite the 'Allow to run "./check -n"' patch to be less ugly
- Add patch to print the "diff" of the iotests to stderr, so that it shows up in TAP mode, too

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8tests/qemu-iotests/testrunner: Allow parallel test invocationstests/qemu-iotests/testrunner.py+1 -16 replies
2/8tests/qemu-iotests: Improve the check for GNU sedtests/check-block.sh tests/qemu-iotests/common.rc+13 -251 reply
3/8tests/qemu-iotests/meson.build: Improve the indentationtests/qemu-iotests/meson.build+32 -290 replies
4/8tests/qemu-iotests: Allow to run "./check -n" from the source directory, tootests/qemu-iotests/check tests/qemu-iotests/testenv.py+9 -20 replies
5/8tests/qemu-iotests/meson.build: Call the 'check' script directlytests/qemu-iotests/meson.build+36 -80 replies
6/8tests: Do not treat the iotests as separate meson test target anymoremeson.build scripts/mtest2make.py tests/Makefile.include+4 -150 replies
7/8tests/qemu-iotests/testrunner: Print diff to stderr in TAP modetests/qemu-iotests/testrunner.py+4 -11 reply
8/8tests: Remove check-block.shtests/check-block.sh+0 -730 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchHanna ReitzPhilippe Mathieu-Daudé
1/8
2/8
3/8R-b R-b
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] 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" since the tests are still run separately via the check-block.sh script. It would be nicer if the iotests would show up like the other tests suites. For this we have to tweak the tests/qemu-iotests/check script so that it can already be run with "-g auto -n" during the configuration step [*], then we can directly add the individual tests in the tests/qemu-iotests/meson.build file already and finally get rid of the check-block.sh script.

[*] Alternatively, we could also get rid of the "auto" group and add the test list to the tests/qemu-iotests/meson.build file directly ...

Note: There's still something really weird that happens sometimes after running "make check-block" with this patch set: Sometimes the terminal is in non-echo mode, so that you have to run "reset" to get the terminal back to normal ... I currently don't have clue what's causing that issue ... Paolo, did you ever experience something like that with the meson test runner?

v2:
- Add new 1st patch to fix "make check-block SPEED=thorough"
- Improve bash version check
- Rewrite the 'Allow to run "./check -n"' patch to be less ugly
- Add patch to print the "diff" of the iotests to stderr, so that it shows up in TAP mode, too

Thomas Huth (8):
tests/qemu-iotests/testrunner: Allow parallel test invocations tests/qemu-iotests: Improve the check for GNU sed tests/qemu-iotests/meson.build: Improve the indentation tests/qemu-iotests: Allow to run "./check -n" from the source
directory, too
tests/qemu-iotests/meson.build: Call the 'check' script directly
tests: Do not treat the iotests as separate meson test target anymore tests/qemu-iotests/testrunner: Print diff to stderr in TAP mode
tests: Remove check-block.sh

 meson.build                      |  6 +--
 scripts/mtest2make.py            |  4 --
 tests/Makefile.include           |  9 +---
 tests/check-block.sh             | 85 --------------------------------
 tests/qemu-iotests/check         |  2 +-
 tests/qemu-iotests/common.rc     | 26 +++++-----
 tests/qemu-iotests/meson.build   | 83 +++++++++++++++++++++----------
 tests/qemu-iotests/testenv.py    |  9 +++-
 tests/qemu-iotests/testrunner.py |  7 ++-
 9 files changed, 88 insertions(+), 143 deletions(-)
 delete mode 100755 tests/check-block.sh
Signature · 1 line
2.27.0