Skip to content

Commit

Permalink
compat: list all test cases properly
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Yanray Wang committed Aug 30, 2023
1 parent 8aba83b commit 3b3cd2e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/compat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,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:]')
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"
reset_ciphersuites
done
done
done
}
Expand Down

0 comments on commit 3b3cd2e

Please sign in to comment.