Skip to content

tests/qtest: Check for devices and machines before adding tests

Thomas Huth qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/qtest: Add a function that checks whether a device is availabletests/qtest/libqos/libqtest.h tests/qtest/libqtest.c+52 -01 reply
2/4tests/qtest: Improve endianness-test to work with missing machines and devicestests/qtest/endianness-test.c+4 -11 reply
3/4tests/qtest/cdrom-test: Check whether devices are available before using themtests/qtest/cdrom-test.c+39 -212 replies
4/4tests/qtest/boot-order-test: Check whether machines are availabletests/qtest/boot-order-test.c+5 -00 replies

Reviews trailers per patch

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

PatchJohn SnowPhilippe Mathieu-Daudé
1/4R-b
2/4
3/4A-b R-b
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] tests/qtest: Check for devices and machines before adding tests

Devices might not always be compiled into the QEMU target binaries. We already have the libqos framework that is good for handling such situations, but some of the qtests are not a real good fit for the libqos framework. This patch series adds a new function to check whether a device is available in the target binary or not, so that tests can be run or skipped accordingly (also adding some additional checks for the availability of machines in the target binaries).

Thomas Huth (4):
tests/qtest: Add a function that checks whether a device is available tests/qtest: Improve endianness-test to work with missing machines and
devices
tests/qtest/cdrom-test: Check whether devices are available before
using them
tests/qtest/boot-order-test: Check whether machines are available

 tests/qtest/boot-order-test.c |  5 +++
 tests/qtest/cdrom-test.c      | 60 +++++++++++++++++++++++------------
 tests/qtest/endianness-test.c |  5 ++-
 tests/qtest/libqos/libqtest.h |  8 +++++
 tests/qtest/libqtest.c        | 44 +++++++++++++++++++++++++
 5 files changed, 100 insertions(+), 22 deletions(-)
Signature · 1 line
2.27.0