Fix to stop all.sh corrupting config.h

The test script all.sh was persisting the SSL3 configuration in config.h
through more tests than intended and not restoring the config the end.
This commit is contained in:
Simon Butcher 2016-03-14 22:32:42 +00:00
parent 4b852db299
commit f413b6fffe

View file

@ -133,6 +133,7 @@ tests/compat.sh
msg "build: Default + SSLv3 (ASan build)" # ~ 6 min
cleanup
cp "$CONFIG_H" "$CONFIG_BAK"
scripts/config.pl set MBEDTLS_SSL_PROTO_SSL3
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
make
@ -149,7 +150,6 @@ tests/ssl-opt.sh
msg "build: cmake, full config, clang" # ~ 50s
cleanup
cp "$CONFIG_H" "$CONFIG_BAK"
scripts/config.pl full
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
CC=clang cmake -D CMAKE_BUILD_TYPE:String=Check .