qtest/meson.build: check CONFIG_TCG for prom-env-test in qtests_ppc
commit44d827ea69e6d0e1d7f1855b155ebe02a2b7768a
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 14 Mar 2022 14:57:17 +0000 (14 15:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Mon, 14 Mar 2022 14:57:17 +0000 (14 15:57 +0100)
tree484543662c7aec2b355cda63afb65d3ca8f82390
parent1416688c53be6535be755b44c15fb2eb9defd20f
qtest/meson.build: check CONFIG_TCG for prom-env-test in qtests_ppc

'prom-env-test' is a TCG test that will fail if QEMU is compiled with
--disable-tcg:

$ QTEST_QEMU_BINARY=./qemu-system-ppc64 ./tests/qtest/prom-env-test
/ppc64/prom-env/mac99: qemu-system-ppc64: -accel tcg: invalid accelerator tcg
(... hangs indefinitely ...)

Fix it by checking CONFIG_TCG before compiling prom-env-test.

Cc: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220303153517.168943-2-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
tests/qtest/meson.build