mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 17:34:22 +01:00
Merge remote-tracking branch 'origin/pr/2571' into mbedtls-2.16
* origin/pr/2571: Clarify comment mangled by an earlier refactoring Add an "out-of-box" component Run ssl-opt.sh on 32-bit runtime
This commit is contained in:
commit
20d707dd3e
@ -590,6 +590,17 @@ component_check_doxygen_warnings () {
|
|||||||
#### Build and test many configurations and targets
|
#### Build and test many configurations and targets
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
|
component_test_default_out_of_box () {
|
||||||
|
msg "build: make, default config (out-of-box)" # ~1min
|
||||||
|
make
|
||||||
|
|
||||||
|
msg "test: main suites make, default config (out-of-box)" # ~10s
|
||||||
|
make test
|
||||||
|
|
||||||
|
msg "selftest: make, default config (out-of-box)" # ~10s
|
||||||
|
programs/test/selftest
|
||||||
|
}
|
||||||
|
|
||||||
component_test_default_cmake_gcc_asan () {
|
component_test_default_cmake_gcc_asan () {
|
||||||
msg "build: cmake, gcc, ASan" # ~ 1 min 50s
|
msg "build: cmake, gcc, ASan" # ~ 1 min 50s
|
||||||
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
|
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
|
||||||
@ -952,10 +963,16 @@ component_test_m32_o1 () {
|
|||||||
# Build again with -O1, to compile in the i386 specific inline assembly
|
# Build again with -O1, to compile in the i386 specific inline assembly
|
||||||
msg "build: i386, make, gcc -O1 (ASan build)" # ~ 30s
|
msg "build: i386, make, gcc -O1 (ASan build)" # ~ 30s
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
|
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE
|
||||||
|
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
|
||||||
|
scripts/config.pl unset MBEDTLS_MEMORY_DEBUG
|
||||||
make CC=gcc CFLAGS='-O1 -Werror -Wall -Wextra -m32 -fsanitize=address'
|
make CC=gcc CFLAGS='-O1 -Werror -Wall -Wextra -m32 -fsanitize=address'
|
||||||
|
|
||||||
msg "test: i386, make, gcc -O1 (ASan build)"
|
msg "test: i386, make, gcc -O1 (ASan build)"
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
msg "test ssl-opt.sh, i386, make, gcc-O1"
|
||||||
|
if_build_succeeded tests/ssl-opt.sh
|
||||||
}
|
}
|
||||||
support_test_m32_o1 () {
|
support_test_m32_o1 () {
|
||||||
support_test_m32_o0 "$@"
|
support_test_m32_o0 "$@"
|
||||||
@ -1176,10 +1193,8 @@ component_test_valgrind () {
|
|||||||
msg "test: main suites valgrind (Release)"
|
msg "test: main suites valgrind (Release)"
|
||||||
make memcheck
|
make memcheck
|
||||||
|
|
||||||
# Optional part(s)
|
# Optional parts (slow; currently broken on OS X because programs don't
|
||||||
# Currently broken, programs don't seem to receive signals
|
# seem to receive signals under valgrind on OS X).
|
||||||
# under valgrind on OS X
|
|
||||||
|
|
||||||
if [ "$MEMORY" -gt 0 ]; then
|
if [ "$MEMORY" -gt 0 ]; then
|
||||||
msg "test: ssl-opt.sh --memcheck (Release)"
|
msg "test: ssl-opt.sh --memcheck (Release)"
|
||||||
if_build_succeeded tests/ssl-opt.sh --memcheck
|
if_build_succeeded tests/ssl-opt.sh --memcheck
|
||||||
|
Loading…
Reference in New Issue
Block a user