From 4ad82e4b33f119f751f9521fdfe32e274afd37b1 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 15 Apr 2022 13:27:17 +0200 Subject: [PATCH] Add component_check_test_requires_psa_disabled used to check if some tests requiring PSA to be disabled are presemt Signed-off-by: Neil Armstrong --- tests/scripts/all.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 07e708ba42..a9a5af699e 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -873,7 +873,12 @@ 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 'depends.*!MBEDTLS_USE_PSA_CRYPTO' -R tests/suites/ + not grep -n 'requires.*disabled.*USE_PSA' tests/ssl-opt.sh tests/opt-testcases/tls13-compat.sh +} ################################################################ #### Build and test many configurations and targets