tests/qtest: Add a function that checks whether a device is available
commitad9e129b0162a1342a407c8d8e2073e4562206f2
authorThomas Huth <thuth@redhat.com>
Mon, 20 Dec 2021 08:10:51 +0000 (20 09:10 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 22 Dec 2021 07:13:05 +0000 (22 08:13 +0100)
treeb857f210baa949e27090fb44a4d7baab8c116610
parent487cf3f2b23e08dacdab0ebc7aaa12e03f65c822
tests/qtest: Add a function that checks whether a device is available

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. Let's add a qtest_has_device() function for such
tests instead.

Message-Id: <20211220081054.151515-2-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/libqos/libqtest.h
tests/qtest/libqtest.c