[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v3 21/28] tests/qtest: Skip tests that depend on TCG when
From: |
Fabiano Rosas |
Subject: |
Re: [RFC PATCH v3 21/28] tests/qtest: Skip tests that depend on TCG when CONFIG_TCG=n |
Date: |
Mon, 16 Jan 2023 10:48:30 -0300 |
Richard Henderson <richard.henderson@linaro.org> writes:
> On 1/13/23 06:04, Fabiano Rosas wrote:
>> @@ -373,6 +387,11 @@ static void sve_tests_sve_off(const void *data)
>> {
>> QTestState *qts;
>>
>> + if (tcg_disabled()) {
>> + g_test_skip("TCG support is disabled in this build");
>> + return;
>> + }
>> +
>> qts = qtest_init(MACHINE "-cpu max,sve=off");
>>
>> /* SVE is off, so the map should be empty. */
>
> This should work with kvm as well.
> It should always be ok to turn off an unsupported feature.
This test forces -accel tcg. There's another one that uses -accel kvm:
sve_tests_sve_off_kvm
[RFC PATCH v3 21/28] tests/qtest: Skip tests that depend on TCG when CONFIG_TCG=n, Fabiano Rosas, 2023/01/13
[RFC PATCH v3 22/28] tests/qtest: Restrict bcm2835-dma-test to CONFIG_RASPI, Fabiano Rosas, 2023/01/13
[RFC PATCH v3 23/28] tests/tcg: Do not build/run TCG tests if TCG is disabled, Fabiano Rosas, 2023/01/13
[RFC PATCH v3 24/28] tests/avocado: Skip tests that require a missing accelerator, Fabiano Rosas, 2023/01/13