mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-09 16:41:19 +08:00
compat.sh: properly report skipped tests
Don't just silently continue. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
bee96566da
commit
0dd6ca4175
@ -588,7 +588,22 @@ add_mbedtls_ciphersuites()
|
|||||||
# o_check_ciphersuite STANDARD_CIPHER_SUITE
|
# o_check_ciphersuite STANDARD_CIPHER_SUITE
|
||||||
o_check_ciphersuite()
|
o_check_ciphersuite()
|
||||||
{
|
{
|
||||||
if [ "${O_SUPPORT_ECDH}" = "NO" ]; then
|
# skip DTLS when lack of support was declared
|
||||||
|
if test "$OSSL_NO_DTLS" -gt 0 && is_dtls "$MODE"; then
|
||||||
|
SKIP_NEXT_="YES"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# OpenSSL <1.0.2 doesn't support DTLS 1.2. Check if OpenSSL
|
||||||
|
# supports $O_MODE from the s_server help. (The s_client
|
||||||
|
# help isn't accurate as of 1.0.2g: it supports DTLS 1.2
|
||||||
|
# but doesn't list it. But the s_server help seems to be
|
||||||
|
# accurate.)
|
||||||
|
if ! $OPENSSL s_server -help 2>&1 | grep -q "^ *-$O_MODE "; then
|
||||||
|
SKIP_NEXT_="YES"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# skip static ECDH when OpenSSL doesn't support it
|
||||||
|
if [ "${O_SUPPORT_STATIC_ECDH}" = "NO" ]; then
|
||||||
case "$1" in
|
case "$1" in
|
||||||
*ECDH_*) SKIP_NEXT="YES"
|
*ECDH_*) SKIP_NEXT="YES"
|
||||||
esac
|
esac
|
||||||
@ -665,8 +680,8 @@ setup_arguments()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
case $($OPENSSL ciphers ALL) in
|
case $($OPENSSL ciphers ALL) in
|
||||||
*ECDH-ECDSA*|*ECDH-RSA*) O_SUPPORT_ECDH="YES";;
|
*ECDH-ECDSA*|*ECDH-RSA*) O_SUPPORT_STATIC_ECDH="YES";;
|
||||||
*) O_SUPPORT_ECDH="NO";;
|
*) O_SUPPORT_STATIC_ECDH="NO";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "X$VERIFY" = "XYES" ];
|
if [ "X$VERIFY" = "XYES" ];
|
||||||
@ -1109,19 +1124,6 @@ for MODE in $MODES; do
|
|||||||
|
|
||||||
[Oo]pen*)
|
[Oo]pen*)
|
||||||
|
|
||||||
if test "$OSSL_NO_DTLS" -gt 0 && is_dtls "$MODE"; then
|
|
||||||
continue;
|
|
||||||
fi
|
|
||||||
|
|
||||||
# OpenSSL <1.0.2 doesn't support DTLS 1.2. Check if OpenSSL
|
|
||||||
# supports $O_MODE from the s_server help. (The s_client
|
|
||||||
# help isn't accurate as of 1.0.2g: it supports DTLS 1.2
|
|
||||||
# but doesn't list it. But the s_server help seems to be
|
|
||||||
# accurate.)
|
|
||||||
if ! $OPENSSL s_server -help 2>&1 | grep -q "^ *-$O_MODE "; then
|
|
||||||
continue;
|
|
||||||
fi
|
|
||||||
|
|
||||||
reset_ciphersuites
|
reset_ciphersuites
|
||||||
add_common_ciphersuites
|
add_common_ciphersuites
|
||||||
add_openssl_ciphersuites
|
add_openssl_ciphersuites
|
||||||
|
Loading…
x
Reference in New Issue
Block a user