mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 23:25:38 +00:00
Optimize all.sh for new build options
This commit is contained in:
parent
39141fed63
commit
61bc57af99
|
@ -66,12 +66,13 @@ msg()
|
||||||
|
|
||||||
# The test ordering tries to optimize for the following criteria:
|
# The test ordering tries to optimize for the following criteria:
|
||||||
# 1. Catch possible problems early, by running first test that run quickly
|
# 1. Catch possible problems early, by running first test that run quickly
|
||||||
# and/or are more likely to fail than others.
|
# and/or are more likely to fail than others (eg I use Clang most of the
|
||||||
|
# time, so start with a GCC build).
|
||||||
# 2. Minimize total running time, by avoiding useless rebuilds
|
# 2. Minimize total running time, by avoiding useless rebuilds
|
||||||
#
|
#
|
||||||
# Indicative running times are given for reference.
|
# Indicative running times are given for reference.
|
||||||
|
|
||||||
msg "build: cmake, gcc with lots of warnings" # ~ 1 min
|
msg "build: cmake, -Werror (gcc)" # ~ 1 min
|
||||||
cleanup
|
cleanup
|
||||||
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Check .
|
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Check .
|
||||||
make
|
make
|
||||||
|
@ -79,9 +80,9 @@ make
|
||||||
msg "test: main suites with valgrind" # ~ 2 min 10s
|
msg "test: main suites with valgrind" # ~ 2 min 10s
|
||||||
make memcheck
|
make memcheck
|
||||||
|
|
||||||
msg "build: with ASan" # ~ 1 min
|
msg "build: with ASan (clang)" # ~ 1 min
|
||||||
cleanup
|
cleanup
|
||||||
cmake -D CMAKE_BUILD_TYPE:String=ASan .
|
CC=clang cmake -D CMAKE_BUILD_TYPE:String=ASan .
|
||||||
make
|
make
|
||||||
|
|
||||||
msg "test: ssl-opt.sh (ASan build)" # ~ 1 min 10s
|
msg "test: ssl-opt.sh (ASan build)" # ~ 1 min 10s
|
||||||
|
@ -106,12 +107,12 @@ cd tests
|
||||||
./compat.sh
|
./compat.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
msg "build: cmake, full config, clang with lots of warnings" # ~ 40s
|
msg "build: cmake, full config" # ~ 40s
|
||||||
cleanup
|
cleanup
|
||||||
cp "$CONFIG_H" "$CONFIG_BAK"
|
cp "$CONFIG_H" "$CONFIG_BAK"
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
scripts/config.pl unset POLARSSL_MEMORY_BACKTRACE # too slow for tests
|
scripts/config.pl unset POLARSSL_MEMORY_BACKTRACE # too slow for tests
|
||||||
CC=clang cmake -D CMAKE_BUILD_TYPE:String=Check .
|
cmake -D CMAKE_BUILD_TYPE:String=Check .
|
||||||
make
|
make
|
||||||
|
|
||||||
msg "test: main suites (full config)"
|
msg "test: main suites (full config)"
|
||||||
|
@ -127,19 +128,19 @@ cd tests
|
||||||
./compat.sh -e '^$' -f 'NULL\|3DES-EDE-CBC\|DES-CBC3'
|
./compat.sh -e '^$' -f 'NULL\|3DES-EDE-CBC\|DES-CBC3'
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
msg "build: Unix make, -O2" # ~ 30s
|
msg "build: Unix make, -O2 (gcc)" # ~ 30s
|
||||||
cleanup
|
cleanup
|
||||||
make
|
CC=gcc make
|
||||||
|
|
||||||
# Optional parts that take a long time to run
|
# Optional parts that take a long time to run
|
||||||
|
|
||||||
if [ "$MEMORY" -gt 0 ]; then
|
if [ "$MEMORY" -ge 1 ]; then
|
||||||
msg "test: ssl-opt --memcheck (-02 build)" # ~ 8 min
|
msg "test: ssl-opt --memcheck (-02 build)" # ~ 8 min
|
||||||
cd tests
|
cd tests
|
||||||
./ssl-opt.sh --memcheck
|
./ssl-opt.sh --memcheck
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [ "$MEMORY" -gt 1 ]; then
|
if [ "$MEMORY" -ge 2 ]; then
|
||||||
msg "test: compat --memcheck (-02 build)" # ~ 42 min
|
msg "test: compat --memcheck (-02 build)" # ~ 42 min
|
||||||
cd tests
|
cd tests
|
||||||
./compat.sh --memcheck
|
./compat.sh --memcheck
|
||||||
|
|
Loading…
Reference in a new issue