qemu/tests
Fabiano Rosas 0c1ae3ff9d tests/qtest: Fix tests when no KVM or TCG are present
It is possible to have a build with both TCG and KVM disabled due to
Xen requiring the i386 and x86_64 binaries to be present in an aarch64
host.

If we build with --disable-tcg on the aarch64 host, we will end-up
with a QEMU binary (x86) that does not support TCG nor KVM.

Skip tests that crash or hang in the above scenario. Do not include
any test cases if TCG and KVM are missing.

Make sure that calls to qtest_has_accel are placed after g_test_init
in similar fashion to commit ae4b01b349 ("tests: Ensure TAP version is
printed before other messages") to avoid TAP parsing errors.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20230426180013.14814-9-farosas@suse.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-05-02 10:54:32 +01:00
..
avocado tests/avocado/tuxrun_baselines.py: improve code coverage for ppc64 2023-04-27 14:58:23 +01:00
bench util: import GTree as QTree 2023-03-28 15:23:10 -07:00
data bios-tables-test: use 128M numa nodes on aarch64 2023-03-20 09:59:25 +01:00
decode
docker tests: lcitool: Switch to OpenSUSE Leap 15.4 2023-04-20 11:17:36 +02:00
fp tests: make fp-test less chatty when running from test suite 2023-03-01 10:31:28 +00:00
guest-debug
image-fuzzer
include
keys
lcitool .gitlab-ci.d/cirrus: Drop the CI job for compiling with FreeBSD 12 2023-04-27 14:58:23 +01:00
migration hw/misc/sga: Remove the deprecated "sga" device 2023-02-14 09:02:42 +01:00
multiboot
perf/block/qcow2
plugin
qapi-schema qapi: allow unions to contain further unions 2023-04-26 07:52:45 +02:00
qemu-iotests iotests: Regression test for vhdx log corruption 2023-04-11 13:54:43 +02:00
qtest tests/qtest: Fix tests when no KVM or TCG are present 2023-05-02 10:54:32 +01:00
rocker
tcg tests/tcg: limit the scope of the plugin tests 2023-04-27 14:58:23 +01:00
tsan
uefi-test-tools
unit async: Add an optional reentrancy guard to the BH API 2023-04-28 11:31:07 +02:00
vm tests/vm/freebsd: Update to FreeBSD 13.2 2023-04-20 11:28:16 +02:00
vmstate-static-checker-data
dbus-vmstate-daemon.sh
Makefile.include tests/requirements.txt: bump up avocado-framework version to 101.0 2023-04-27 14:57:22 +01:00
meson.build
requirements.txt tests/requirements.txt: bump up avocado-framework version to 101.0 2023-04-27 14:57:22 +01:00
test-qht-par.c
vhost-user-bridge.c error handling: Use RETRY_ON_EINTR() macro where applicable 2023-01-09 13:50:47 +01:00