Re: [PATCH] tests/qtest/migration: Only build tls_no_hostname test with TASN1

Peter Xu <[email protected]> Fri, 31 Jul 2026 10:17:42 -0400
Newsgroups org.nongnu.qemu-trivial,org.nongnu.qemu-devel
Message-ID <[email protected]>
On Thu, Jul 30, 2026 at 11:59:44PM +0100, Sam Heney wrote:
> The test_precopy_tcp_tls_no_hostname test and its start hook use
> TestMigrateTLSX509 and migrate_hook_start_tls_x509_common(), which
> are only defined when CONFIG_TASN1 is set. This means building with
> gnutls enabled but libtasn1 unavailable fails:
> 
>   ../tests/qtest/migration/tls-tests.c: In function 'migrate_hook_start_tls_x509_no_host':
>   ../tests/qtest/migration/tls-tests.c:510:5: error: unknown type name 'TestMigrateTLSX509'
> 
> Guard the test with CONFIG_TASN1 like the other x509 tests.
> 
> Fixes: df9c38b19af8 ("tests/qtest/migration: Add a NULL parameters test for TLS")
> Signed-off-by: Sam Heney <[email protected]>

queued, thanks.

-- 
Peter Xu