compat.sh: use correct names in --list-test-cases
The main fix here is that m->O and m->G should use `M_CIPHERS`. In order
to apply that though, we need to change the structure with a new for
loop and case statement. The new structure matches what's done when
actually running tests.
Note: this issue only exists in 2.28. In 3.x we now use the standard
name for display everywhere, but in 2.28 we use the name as seen by the
client for display.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
diff --git a/tests/compat.sh b/tests/compat.sh
index f21619a..03e7298 100755
--- a/tests/compat.sh
+++ b/tests/compat.sh
@@ -147,17 +147,31 @@
fi
for VERIFY in $SUB_VERIFIES; do
VERIF=$(echo $VERIFY | tr '[:upper:]' '[:lower:]')
- reset_ciphersuites
- add_common_ciphersuites
- add_openssl_ciphersuites
- add_gnutls_ciphersuites
- add_mbedtls_ciphersuites
- filter_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"
+ for PEER in $PEERS; do
+ reset_ciphersuites
+ add_common_ciphersuites
+ case "$PEER" in
+ [Oo]pen*)
+ add_openssl_ciphersuites
+ filter_ciphersuites
+ print_test_case m O "$M_CIPHERS"
+ print_test_case O m "$O_CIPHERS"
+ ;;
+ [Gg]nu*)
+ add_gnutls_ciphersuites
+ filter_ciphersuites
+ print_test_case m G "$M_CIPHERS"
+ print_test_case G m "$G_CIPHERS"
+ ;;
+ mbed*)
+ add_openssl_ciphersuites
+ add_gnutls_ciphersuites
+ add_mbedtls_ciphersuites
+ filter_ciphersuites
+ print_test_case m m "$M_CIPHERS"
+ ;;
+ esac
+ done
done
done
done