Add all.sh test for hardcoded elliptic curve

This commit is contained in:
Hanno Becker 2019-07-19 17:32:14 +01:00 committed by Manuel Pégourié-Gonnard
parent 7cedd8bed2
commit fe1bd781de

View File

@ -852,6 +852,24 @@ component_test_hardcoded_misc_options_cmake_clang() {
if_build_succeeded tests/ssl-opt.sh -f '^Default$\|^Default, DTLS$'
}
component_test_hardcoded_elliptic_curve_cmake_clang() {
msg "build: cmake, full config + hardcode elliptic curve, clang" # ~ 50s
scripts/config.pl full
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
scripts/config.pl set MBEDTLS_SSL_CONF_SINGLE_EC
scripts/config.pl set MBEDTLS_SSL_CONF_SINGLE_EC_GRP_ID MBEDTLS_ECP_DP_SECP256R1
scripts/config.pl set MBEDTLS_SSL_CONF_SINGLE_EC_TLS_ID 23
CC=clang cmake -D LINK_WITH_PTHREAD=1 -D CMAKE_BUILD_TYPE:String=ASanDbg -D ENABLE_TESTING=On .
make
msg "test: main suites (full config + hardcode elliptic curve)" # ~ 5s
make test
msg "test: ssl-opt.sh default (full config + hardcode elliptic curve)" # ~ 5s
if_build_succeeded tests/ssl-opt.sh -f '^Default$\|^Default, DTLS$'
}
component_build_deprecated () {
msg "build: make, full config + DEPRECATED_WARNING, gcc -O" # ~ 30s
scripts/config.pl full