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 <narmstrong@baylibre.com>
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index 07e708b..a9a5af6 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -873,7 +873,12 @@
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