all.sh: restructure memory allocator tests

Run basic tests and ssl-opt with memory backtrace disabled, then
run basic tests only with it enabled.
This commit is contained in:
Andrzej Kurek 2019-09-05 09:27:47 -04:00
parent 7aad93c9da
commit 9a461a1cd7

View File

@ -826,10 +826,21 @@ component_build_no_sockets () {
make CC=gcc CFLAGS='-Werror -Wall -Wextra -O0 -std=c99 -pedantic' lib make CC=gcc CFLAGS='-Werror -Wall -Wextra -O0 -std=c99 -pedantic' lib
} }
component_test_memory_buffer_allocator () { component_test_memory_buffer_allocator_backtrace () {
msg "build: default config with memory buffer allocator enabled" msg "build: default config with memory buffer allocator and backtrace enabled"
scripts/config.pl set MBEDTLS_MEMORY_BUFFER_ALLOC_C scripts/config.pl set MBEDTLS_MEMORY_BUFFER_ALLOC_C
scripts/config.pl set MBEDTLS_PLATFORM_MEMORY
scripts/config.pl set MBEDTLS_MEMORY_BACKTRACE scripts/config.pl set MBEDTLS_MEMORY_BACKTRACE
CC=gcc cmake .
make
msg "test: MBEDTLS_MEMORY_BUFFER_ALLOC_C and MBEDTLS_MEMORY_BACKTRACE"
make test
}
component_test_memory_buffer_allocator () {
msg "build: default config with memory buffer allocator"
scripts/config.pl set MBEDTLS_MEMORY_BUFFER_ALLOC_C
scripts/config.pl set MBEDTLS_PLATFORM_MEMORY scripts/config.pl set MBEDTLS_PLATFORM_MEMORY
CC=gcc cmake . CC=gcc cmake .
make make