tests/qtest: Add a function to check whether a machine is available
It is nowadays possible to build QEMU with a reduced set of machines in each binary. However, the qtests still hard-code the expected machines and fail if the binary does not feature the required machine. Let's get a little bit more flexible here: Add a function that can be used to query whether a certain machine is available or not, and use it in some tests as an example (more work has to be done in other tests which will follow later). Message-Id: <20211201104347.51922-5-thuth@redhat.com> Acked-by:John Snow <jsnow@redhat.com> Signed-off-by:
Thomas Huth <thuth@redhat.com>
Showing
- tests/qtest/boot-serial-test.c 2 additions, 1 deletiontests/qtest/boot-serial-test.c
- tests/qtest/cdrom-test.c 5 additions, 3 deletionstests/qtest/cdrom-test.c
- tests/qtest/libqos/libqtest.h 8 additions, 0 deletionstests/qtest/libqos/libqtest.h
- tests/qtest/libqtest.c 17 additions, 0 deletionstests/qtest/libqtest.c
- tests/qtest/prom-env-test.c 5 additions, 3 deletionstests/qtest/prom-env-test.c
Loading
Please register or sign in to comment