mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-14 01:26:49 +00:00
New test suite to report configuration options
Add a test suite intended to report configuration options in the outcome file: we're only interested in SKIP vs PASS. Add a few test cases for some interesting combinations of options. The selection here is just for illustration purposes, more will be added later. A subsequent commit will automatically generate test cases for single options. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
26d279e35f
commit
1c52e57621
9
tests/suites/test_suite_config.crypto_combinations.data
Normal file
9
tests/suites/test_suite_config.crypto_combinations.data
Normal file
@ -0,0 +1,9 @@
|
||||
# Interesting combinations of low-level crypto options
|
||||
|
||||
Config: ECC: Weierstrass curves only
|
||||
depends_on:MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED:!MBEDTLS_ECP_MONTGOMERY_ENABLED
|
||||
pass:
|
||||
|
||||
Config: ECC: Montgomery curves only
|
||||
depends_on:!MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED:MBEDTLS_ECP_MONTGOMERY_ENABLED
|
||||
pass:
|
14
tests/suites/test_suite_config.function
Normal file
14
tests/suites/test_suite_config.function
Normal file
@ -0,0 +1,14 @@
|
||||
/* BEGIN_HEADER */
|
||||
|
||||
/* END_HEADER */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
/* This test case always passes. It is intended solely for configuration
|
||||
* reporting in the outcome file. Write test cases using this function
|
||||
* with dependencies to record in which configurations the dependencies
|
||||
* are met. */
|
||||
void pass()
|
||||
{
|
||||
goto exit;
|
||||
}
|
||||
/* END_CASE */
|
9
tests/suites/test_suite_config.psa_combinations.data
Normal file
9
tests/suites/test_suite_config.psa_combinations.data
Normal file
@ -0,0 +1,9 @@
|
||||
# Interesting combinations of PSA options
|
||||
|
||||
Config: PSA_WANT_ALG_ECDSA without PSA_WANT_ALG_DETERMINISTIC_ECDSA
|
||||
depends_on:PSA_WANT_ALG_ECDSA:!PSA_WANT_ALG_DETERMINISTIC_ECDSA
|
||||
pass:
|
||||
|
||||
Config: PSA_WANT_ALG_DETERMINSTIC_ECDSA without PSA_WANT_ALG_ECDSA
|
||||
depends_on:PSA_WANT_ALG_DETERMINISTIC_ECDSA:!PSA_WANT_ALG_ECDSA
|
||||
pass:
|
9
tests/suites/test_suite_config.tls_combinations.data
Normal file
9
tests/suites/test_suite_config.tls_combinations.data
Normal file
@ -0,0 +1,9 @@
|
||||
# Interesting combinations of TLS options
|
||||
|
||||
Config: TLS 1.2 without TLS 1.3
|
||||
depends_on:MBEDTLS_SSL_PROTO_TLS1_2:!MBEDTLS_SSL_PROTO_TLS1_3
|
||||
pass:
|
||||
|
||||
Config: TLS 1.3 without TLS 1.2
|
||||
depends_on:MBEDTLS_SSL_PROTO_TLS1_3:!MBEDTLS_SSL_PROTO_TLS1_2
|
||||
pass:
|
Loading…
x
Reference in New Issue
Block a user