Message ID | 20241202204020.55665-1-philmd@linaro.org |
---|---|
Headers | show |
Series | tests/functional: Fix tests failing when TCG is not available on macOS | expand |
On 02/12/2024 21.40, Philippe Mathieu-Daudé wrote: > Explicit the QTest accelerator to have these 2 tests > pass on macOS when only HVF is built in. Could we maybe rather add something like this at the top of tests/functional/meson.build : if 'CONFIG_TCG' not in config_all and 'CONFIG_KVM' not in config_all subdir_done() endif ? Thomas
On 2/12/24 21:56, Thomas Huth wrote: > On 02/12/2024 21.40, Philippe Mathieu-Daudé wrote: >> Explicit the QTest accelerator to have these 2 tests >> pass on macOS when only HVF is built in. > > Could we maybe rather add something like this at the top of tests/ > functional/meson.build : > > if 'CONFIG_TCG' not in config_all and 'CONFIG_KVM' not in config_all > subdir_done() > endif I'd rather not: - these tests don't need anything of TCG/KVM/HVF - we can run functional tests using QTest [*] [*] I'm actually using that to test my qemu-system-any binary which has HW models but no vCPU nor accelerator right now (except QTest).
On 02/12/2024 22.01, Philippe Mathieu-Daudé wrote: > On 2/12/24 21:56, Thomas Huth wrote: >> On 02/12/2024 21.40, Philippe Mathieu-Daudé wrote: >>> Explicit the QTest accelerator to have these 2 tests >>> pass on macOS when only HVF is built in. >> >> Could we maybe rather add something like this at the top of tests/ >> functional/meson.build : >> >> if 'CONFIG_TCG' not in config_all and 'CONFIG_KVM' not in config_all >> subdir_done() >> endif > > I'd rather not: > - these tests don't need anything of TCG/KVM/HVF > - we can run functional tests using QTest [*] Ok, but then please switch to "-accel qtest" instead of "-machine ...,accel=qtest" since the latter is legacy and might go away sometime in the future. Thanks, Thomas
On 3/12/24 07:11, Thomas Huth wrote: > On 02/12/2024 22.01, Philippe Mathieu-Daudé wrote: >> On 2/12/24 21:56, Thomas Huth wrote: >>> On 02/12/2024 21.40, Philippe Mathieu-Daudé wrote: >>>> Explicit the QTest accelerator to have these 2 tests >>>> pass on macOS when only HVF is built in. >>> >>> Could we maybe rather add something like this at the top of tests/ >>> functional/meson.build : >>> >>> if 'CONFIG_TCG' not in config_all and 'CONFIG_KVM' not in config_all >>> subdir_done() >>> endif >> >> I'd rather not: >> - these tests don't need anything of TCG/KVM/HVF >> - we can run functional tests using QTest [*] > > Ok, but then please switch to "-accel qtest" instead of "- > machine ...,accel=qtest" since the latter is legacy and might go away > sometime in the future. Doh I thought it was the opposite :/ Sure! > > Thanks, > Thomas >