mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
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 <yanray.wang@arm.com>
This commit is contained in:
@ -143,17 +143,15 @@ print_test_case() {
|
|||||||
|
|
||||||
# list_test_case lists all potential test cases in compat.sh without execution
|
# list_test_case lists all potential test cases in compat.sh without execution
|
||||||
list_test_case() {
|
list_test_case() {
|
||||||
reset_ciphersuites
|
for MODE in $MODES; do
|
||||||
for TYPE in $TYPES; do
|
for TYPE in $TYPES; do
|
||||||
|
for VERIFY in $VERIFIES; do
|
||||||
|
VERIF=$(echo $VERIFY | tr '[:upper:]' '[:lower:]')
|
||||||
|
reset_ciphersuites
|
||||||
add_common_ciphersuites
|
add_common_ciphersuites
|
||||||
add_openssl_ciphersuites
|
add_openssl_ciphersuites
|
||||||
add_gnutls_ciphersuites
|
add_gnutls_ciphersuites
|
||||||
add_mbedtls_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 m O "$O_CIPHERS"
|
||||||
print_test_case O m "$O_CIPHERS"
|
print_test_case O m "$O_CIPHERS"
|
||||||
print_test_case m G "$G_CIPHERS"
|
print_test_case m G "$G_CIPHERS"
|
||||||
@ -161,6 +159,7 @@ list_test_case() {
|
|||||||
print_test_case m m "$M_CIPHERS"
|
print_test_case m m "$M_CIPHERS"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
get_options() {
|
get_options() {
|
||||||
|
Reference in New Issue
Block a user