From df1d36a0aa5a8c059162fde6e86d0747308531bd Mon Sep 17 00:00:00 2001 From: itayzafrir Date: Tue, 27 Nov 2018 11:56:25 +0200 Subject: [PATCH] Skip Mbed Crypto tests when when Mbed Crypto is OFF --- TESTS/mbed-crypto/sanity/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TESTS/mbed-crypto/sanity/main.cpp b/TESTS/mbed-crypto/sanity/main.cpp index c8caa6451d..00ae94f565 100644 --- a/TESTS/mbed-crypto/sanity/main.cpp +++ b/TESTS/mbed-crypto/sanity/main.cpp @@ -15,6 +15,10 @@ * limitations under the License. */ +#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C))) +#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping. +#endif + #include #include "mbed.h" #include "greentea-client/test_env.h"