Update interop tests to default configuration

Removed SSLv3 from the default tests in compat.sh, and adapted the test
cases in all.sh to include an additional SSLv3 regression test suite.
This commit is contained in:
Simon Butcher 2016-03-07 23:22:10 +00:00
parent c7940f0bd8
commit 3ea7f52fdf
3 changed files with 24 additions and 2 deletions

View File

@ -100,7 +100,7 @@ if(ENABLE_TESTING)
ADD_CUSTOM_TARGET(covtest ADD_CUSTOM_TARGET(covtest
COMMAND make test COMMAND make test
COMMAND programs/test/selftest COMMAND programs/test/selftest
COMMAND tests/compat.sh -m 'tls1 tls1_1 tls1_2 dtls1 dtls1_2' COMMAND tests/compat.sh
COMMAND tests/ssl-opt.sh COMMAND tests/ssl-opt.sh
) )

View File

@ -45,7 +45,7 @@ else
fi fi
# default values for options # default values for options
MODES="ssl3 tls1 tls1_1 tls1_2 dtls1 dtls1_2" MODES="tls1 tls1_1 tls1_2 dtls1 dtls1_2"
VERIFIES="NO YES" VERIFIES="NO YES"
TYPES="ECDSA RSA PSK" TYPES="ECDSA RSA PSK"
FILTER="" FILTER=""

View File

@ -1,5 +1,11 @@
#!/bin/sh #!/bin/sh
# all.sh
#
# Copyright (c) 2014-2016, ARM Limited, All Rights Reserved
#
# Purpose
#
# Run all available tests (mostly). # Run all available tests (mostly).
# #
# Warning: includes various build modes, so it will mess with the current # Warning: includes various build modes, so it will mess with the current
@ -125,6 +131,22 @@ make
msg "test: compat.sh (ASan build)" # ~ 6 min msg "test: compat.sh (ASan build)" # ~ 6 min
tests/compat.sh tests/compat.sh
msg "build: Default + SSLv3 (ASan build)" # ~ 6 min
cleanup
scripts/config.pl set MBEDTLS_SSL_PROTO_SSL3
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
make
msg "test: SSLv3 - main suites and selftest (ASan build)" # ~ 50s
make test
programs/test/selftest
msg "build: SSLv3 - compat.sh (ASan build)" # ~ 6 min
tests/compat.sh -m 'ssl3 tls1 tls1_1 tls1_2 dtls1 dtls1_2'
msg "build: SSLv3 - ssl-opt.sh (ASan build)" # ~ 6 min
tests/ssl-opt.sh
msg "build: cmake, full config, clang" # ~ 50s msg "build: cmake, full config, clang" # ~ 50s
cleanup cleanup
cp "$CONFIG_H" "$CONFIG_BAK" cp "$CONFIG_H" "$CONFIG_BAK"