Skip to content

Commit

Permalink
use subtest for structured output
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Aug 13, 2024
1 parent e4f0a27 commit c2d0b2d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions t/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,22 +124,22 @@ static void test_bf(void)

static void test_key_exchanges(void)
{
test_key_exchange(&ptls_openssl_secp256r1, &ptls_openssl_secp256r1);
test_key_exchange(&ptls_openssl_secp256r1, &ptls_minicrypto_secp256r1);
test_key_exchange(&ptls_minicrypto_secp256r1, &ptls_openssl_secp256r1);
subtest("secp256r1-openssl-openssl", test_key_exchange, &ptls_openssl_secp256r1, &ptls_openssl_secp256r1);
subtest("secp256r1-openssl-minicrypto", test_key_exchange, &ptls_openssl_secp256r1, &ptls_minicrypto_secp256r1);
subtest("secp256r1-minicrypto-openssl", test_key_exchange, &ptls_minicrypto_secp256r1, &ptls_openssl_secp256r1);

#if PTLS_OPENSSL_HAVE_SECP384R1
test_key_exchange(&ptls_openssl_secp384r1, &ptls_openssl_secp384r1);
subtest("secp384r1-openssl-openssl", test_key_exchange, &ptls_openssl_secp384r1, &ptls_openssl_secp384r1);
#endif

#if PTLS_OPENSSL_HAVE_SECP521R1
test_key_exchange(&ptls_openssl_secp521r1, &ptls_openssl_secp521r1);
subtest("secp521r1-openssl-openssl", test_key_exchange, &ptls_openssl_secp521r1, &ptls_openssl_secp521r1);
#endif

#if PTLS_OPENSSL_HAVE_X25519
test_key_exchange(&ptls_openssl_x25519, &ptls_openssl_x25519);
test_key_exchange(&ptls_openssl_x25519, &ptls_minicrypto_x25519);
test_key_exchange(&ptls_minicrypto_x25519, &ptls_openssl_x25519);
subtest("x25519-openssl-openssl", test_key_exchange, &ptls_openssl_x25519, &ptls_openssl_x25519);
subtest("x25519-openssl-minicrypto", test_key_exchange, &ptls_openssl_x25519, &ptls_minicrypto_x25519);
subtest("x25519-minicrypto-openssl", test_key_exchange, &ptls_minicrypto_x25519, &ptls_openssl_x25519);
#endif
}

Expand Down

0 comments on commit c2d0b2d

Please sign in to comment.