From f5baaaaf89dbe473883f684a53c1f896be28f306 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 26 Feb 2019 14:34:13 +0000 Subject: [PATCH] Add all.sh run with MBEDTLS_MEMORY_BUFFER_ALLOC_C enabled With the removal of MBEDTLS_MEMORY_BUFFER_ALLOC_C from the full config, there are no tests for it remaining in all.sh. This commit adds a build as well as runs of `make test` and `ssl-opt.sh` with MBEDTLS_MEMORY_BUFFER_ALLOC_C enabled to all.sh. --- tests/scripts/all.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 2279f1e2e..01fb368bf 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -810,6 +810,20 @@ component_build_no_sockets () { make CC=gcc CFLAGS='-Werror -Wall -Wextra -O0 -std=c99 -pedantic' lib } +component_test_memory_buffer_allocator () { + msg "build: default config with memory buffer allocator enabled" + scripts/config.pl set MBEDTLS_MEMORY_BUFFER_ALLOC_C + scripts/config.pl set MBEDTLS_MEMORY_BACKTRACE + CC=gcc cmake . + make + + msg "test: MBEDTLS_MEMORY_BUFFER_ALLOC_C" + make test + + msg "test: ssl-opt.sh, MBEDTLS_MEMORY_BUFFER_ALLOC_C" + if_build_succeeded tests/ssl-opt.sh +} + component_test_no_max_fragment_length () { msg "build: default config except MFL extension (ASan build)" # ~ 30s scripts/config.pl unset MBEDTLS_SSL_MAX_FRAGMENT_LENGTH