From 4eba1cc364c2a973f660e19d4398ac4f009cd7dc Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 8 Aug 2025 13:30:03 +0200 Subject: [PATCH] Improve outcome reporting of additional valgrind_cf testing Signed-off-by: Gilles Peskine --- tests/scripts/components-configuration-crypto.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/scripts/components-configuration-crypto.sh b/tests/scripts/components-configuration-crypto.sh index 6b12bb9af5..580de3dd75 100644 --- a/tests/scripts/components-configuration-crypto.sh +++ b/tests/scripts/components-configuration-crypto.sh @@ -23,6 +23,11 @@ test_with_valgrind () { ## Exclude suites that contain some constant-time tests, but whose focus ## isn't on constant-time tests. test_with_valgrind_constant_time () { + # Use a different configuration name in the outcome file if we're doing + # additional valgrind testing on top of non-instrumented testing. + if [[ $MBEDTLS_TEST_CONFIGURATION != *valgrind_cf* ]]; then + declare MBEDTLS_TEST_CONFIGURATION="${MBEDTLS_TEST_CONFIGURATION}+valgrind_cf" + fi declare GLOBIGNORE="tests/suites/test_suite_constant_time_hmac.data" test_with_valgrind tests/suites/*constant_time*.data }