From 882e02ea7aa8dd1d4f5c9b7c237c627f4cb20ac6 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 22 Apr 2022 16:50:29 +0200 Subject: [PATCH] Move and fixup check_test_requires_psa_disabled() into check_test_cases() Signed-off-by: Neil Armstrong --- tests/scripts/all.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index ca3736c4ac..4e90d9e429 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -866,6 +866,10 @@ component_check_test_cases () { fi tests/scripts/check_test_cases.py $opt unset opt + + # Check if some test are explicitely disabled when USE_PSA_CRYPTO is set + not grep -n -R 'depends_on.*!MBEDTLS_USE_PSA_CRYPTO' tests/suites/*.function tests/suites/*.data + not grep -n -R '^ *requires_config_disabled.*MBEDTLS_USE_PSA_CRYPTO' tests/ssl-opt.sh tests/opt-testcases/*.sh } component_check_doxygen_warnings () { @@ -873,12 +877,7 @@ component_check_doxygen_warnings () { tests/scripts/doxygen.sh } -component_check_test_requires_psa_disabled () { - msg "Check: tests requiring PSA to be disabled" - not grep -n -R 'depends.*!MBEDTLS_USE_PSA_CRYPTO' tests/suites/ - not grep -n -R 'requires.*disabled.*USE_PSA' tests/ssl-opt.sh tests/opt-testcases/ -} ################################################################ #### Build and test many configurations and targets