From 8e5ee478e115f6e72209028909537ec42f48a170 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 2 Jun 2025 12:31:15 +0200 Subject: [PATCH 1/2] Add temporary component for SHA3 testing With the removal of MBEDTLS_SHA3_C the test cases with disabled SHA3 dependency are never executed. Adding a temporary `all.sh` component which disabling the `PSA_WANT_ALG_SHA3_*` macros to cover these test cases. Signed-off-by: Gabor Mezei --- tests/scripts/components-configuration.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/scripts/components-configuration.sh b/tests/scripts/components-configuration.sh index 5fd9ede12..b1e633271 100644 --- a/tests/scripts/components-configuration.sh +++ b/tests/scripts/components-configuration.sh @@ -351,3 +351,15 @@ component_test_memory_buffer_allocator () { # MBEDTLS_MEMORY_BUFFER_ALLOC is slow. Skip tests that tend to time out. tests/ssl-opt.sh -e '^DTLS proxy' } + +# Temporary component for SHA3 config option removal +# Must be removed when SHA3 removal is merged +component_test_full_no_sha3 () { + msg "build: full config without SHA3" + scripts/config.py full + scripts/config.py unset-all PSA_WANT_ALG_SHA3_* + make + + msg "test: full - PSA_WANT_ALG_SHA3_*" + make test +} From b9d728467af673327841693baa0e69e7cface3a9 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 2 Jun 2025 17:22:53 +0200 Subject: [PATCH 2/2] Fix calling `config.py` and update comment Signed-off-by: Gabor Mezei --- tests/scripts/components-configuration.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/scripts/components-configuration.sh b/tests/scripts/components-configuration.sh index b1e633271..4f212be60 100644 --- a/tests/scripts/components-configuration.sh +++ b/tests/scripts/components-configuration.sh @@ -353,11 +353,12 @@ component_test_memory_buffer_allocator () { } # Temporary component for SHA3 config option removal -# Must be removed when SHA3 removal is merged +# Will be removed according to this issue: +# https://github.com/Mbed-TLS/mbedtls/issues/10203 component_test_full_no_sha3 () { msg "build: full config without SHA3" scripts/config.py full - scripts/config.py unset-all PSA_WANT_ALG_SHA3_* + scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*' make msg "test: full - PSA_WANT_ALG_SHA3_*"