tests/qtest/libqtest: add qtest_has_cpu_model() api
authorAni Sinha <anisinha@redhat.com>
Mon, 10 Jun 2024 15:52:59 +0000 (21:22 +0530)
committerThomas Huth <thuth@redhat.com>
Wed, 12 Jun 2024 08:19:57 +0000 (10:19 +0200)
commitf43f8abe457a4aa32441bd190638e1118d291c42
tree8d3791419be3f7818904408fb71a4aa4c902d7a1
parent07c8d9ac0fa30712fdf78046a7998ee8d2231d6f
tests/qtest/libqtest: add qtest_has_cpu_model() api

Added a new test api qtest_has_cpu_model() in order to check availability of
some cpu models in the current QEMU binary. The specific architecture of the
QEMU binary is selected using the QTEST_QEMU_BINARY environment variable.
This api would be useful to run tests against some older cpu models after
checking if QEMU actually supported these models.

Signed-off-by: Ani Sinha <anisinha@redhat.com>
Reviewed-by: Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240610155303.7933-3-anisinha@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/libqtest.c
tests/qtest/libqtest.h