From b1cb0bde72a278e4d4fe1cb7cf91e994ce08709a Mon Sep 17 00:00:00 2001 From: Peter Kolbus Date: Tue, 29 Jan 2019 17:42:02 -0600 Subject: [PATCH] all.sh: Add test for MBEDTLS_X509_REMOVE_INFO Add a test scenario that runs make/make test with MBEDTLS_X509_REMOVE_INFO enabled. --- tests/scripts/all.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index de7835d54..b55a9223f 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -1074,6 +1074,20 @@ component_build_tinycrypt_make () { make CC=gcc CFLAGS='-Werror -O1' } +component_test_no_x509_info () { + msg "build: full + MBEDTLS_X509_REMOVE_INFO" # ~ 10s + scripts/config.pl full + scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests + scripts/config.pl set MBEDTLS_X509_REMOVE_INFO + make CFLAGS='-Werror -O1' + + msg "test: full + MBEDTLS_X509_REMOVE_INFO" # ~ 10s + make test + + msg "test: ssl-opt.sh, full + MBEDTLS_X509_REMOVE_INFO" # ~ 1 min + if_build_succeeded tests/ssl-opt.sh +} + component_build_arm_none_eabi_gcc () { msg "build: arm-none-eabi-gcc, make" # ~ 10s scripts/config.pl full