From b2cd07ce09f6b4c7376cd372dfbb8c963baa4688 Mon Sep 17 00:00:00 2001 From: Yanray Wang Date: Wed, 30 Aug 2023 12:07:26 +0800 Subject: [PATCH] compat: list all test cases properly When calling `add_xxx_ciphersuites`, we have to set MODE properly. This commit adjusts order to address this issue in list_test_case which matches what we do in a normal execution. Signed-off-by: Yanray Wang --- tests/compat.sh | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/tests/compat.sh b/tests/compat.sh index dff693b80b..952997537f 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -143,22 +143,21 @@ print_test_case() { # list_test_case lists all potential test cases in compat.sh without execution list_test_case() { - reset_ciphersuites - for TYPE in $TYPES; do - add_common_ciphersuites - add_openssl_ciphersuites - add_gnutls_ciphersuites - add_mbedtls_ciphersuites - done - - for VERIFY in $VERIFIES; do - VERIF=$(echo $VERIFY | tr '[:upper:]' '[:lower:]') - for MODE in $MODES; do - print_test_case m O "$O_CIPHERS" - print_test_case O m "$O_CIPHERS" - print_test_case m G "$G_CIPHERS" - print_test_case G m "$G_CIPHERS" - print_test_case m m "$M_CIPHERS" + for MODE in $MODES; do + for TYPE in $TYPES; do + for VERIFY in $VERIFIES; do + VERIF=$(echo $VERIFY | tr '[:upper:]' '[:lower:]') + reset_ciphersuites + add_common_ciphersuites + add_openssl_ciphersuites + add_gnutls_ciphersuites + add_mbedtls_ciphersuites + print_test_case m O "$O_CIPHERS" + print_test_case O m "$O_CIPHERS" + print_test_case m G "$G_CIPHERS" + print_test_case G m "$G_CIPHERS" + print_test_case m m "$M_CIPHERS" + done done done }