components-configuration-x509.sh (1122B)
1 # components-configuration-x509.sh 2 # 3 # Copyright The Mbed TLS Contributors 4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 5 6 # This file contains test components that are executed by all.sh 7 8 ################################################################ 9 #### Configuration Testing - X509 10 ################################################################ 11 12 component_test_no_x509_info () { 13 msg "build: full + MBEDTLS_X509_REMOVE_INFO" # ~ 10s 14 scripts/config.py full 15 scripts/config.py unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests 16 scripts/config.py set MBEDTLS_X509_REMOVE_INFO 17 make CFLAGS='-Werror -O2' 18 19 msg "test: full + MBEDTLS_X509_REMOVE_INFO" # ~ 10s 20 make test 21 22 msg "test: ssl-opt.sh, full + MBEDTLS_X509_REMOVE_INFO" # ~ 1 min 23 tests/ssl-opt.sh 24 } 25 26 component_test_sw_inet_pton () { 27 msg "build: default plus MBEDTLS_TEST_SW_INET_PTON" 28 29 # MBEDTLS_TEST_HOOKS required for x509_crt_parse_cn_inet_pton 30 scripts/config.py set MBEDTLS_TEST_HOOKS 31 make CFLAGS="-DMBEDTLS_TEST_SW_INET_PTON" 32 33 msg "test: default plus MBEDTLS_TEST_SW_INET_PTON" 34 make test 35 }