Skip to content

Commit e023c80

Browse files
Test undefining MBEDTLS_ECDH_LEGACY_CONTEXT in all.sh
Test that the library works with the new context format.
1 parent 43f564f commit e023c80

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/scripts/all.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,23 @@ component_test_rsa_no_crt () {
675675
if_build_succeeded tests/compat.sh -t RSA
676676
}
677677

678+
component_test_new_ecdh_context () {
679+
msg "build: new ECDH context (ASan build)" # ~ 6 min
680+
scripts/config.pl unset MBEDTLS_ECDH_LEGACY_CONTEXT
681+
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
682+
make
683+
684+
msg "test: new ECDH context - main suites (inc. selftests) (ASan build)" # ~ 50s
685+
make test
686+
687+
msg "test: new ECDH context - ECDH-related part of ssl-opt.sh (ASan build)" # ~ 5s
688+
if_build_succeeded tests/ssl-opt.sh -f ECDH
689+
690+
msg "test: new ECDH context - compat.sh with some ECDH ciphersuites (ASan build)" # ~ 3 min
691+
# Exclude some symmetric ciphers that are redundant here to gain time.
692+
if_build_succeeded tests/compat.sh -f ECDH -V NO -e 'ARCFOUR\|ARIA\|CAMELLIA\|CHACHA\|DES\|RC4'
693+
}
694+
678695
component_test_small_ssl_out_content_len () {
679696
msg "build: small SSL_OUT_CONTENT_LEN (ASan build)"
680697
scripts/config.pl set MBEDTLS_SSL_IN_CONTENT_LEN 16384

0 commit comments

Comments
 (0)