From 4502671e0be9c570a7181b77030ab68e3d0c67d8 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 25 Feb 2022 19:47:04 +0100 Subject: [PATCH] Automatically skip tests for some absent features: tickets, ALPN Signed-off-by: Gilles Peskine --- tests/ssl-opt.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 7b82f3805..54377d12c 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -1070,6 +1070,16 @@ run_test() { requires_config_enabled MBEDTLS_SSL_PROTO_DTLS fi + # Check more TLS protocol features. + case "$SRV_CMD $CLI_CMD" in + *[-_\ =]tickets=[^0]*) + requires_config_enabled MBEDTLS_SSL_TICKET_C;; + esac + case "$SRV_CMD $CLI_CMD" in + *[-_\ =]alpn=*) + requires_config_enabled MBEDTLS_SSL_ALPN;; + esac + # If the client or serve requires a ciphersuite, check that it's enabled. maybe_requires_ciphersuite_enabled "$SRV_CMD" "$@" maybe_requires_ciphersuite_enabled "$CLI_CMD" "$@"