mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-20 15:47:57 +00:00
Automatically generate checkers for removed options
Read the list of historical config options in 3.6, compare that to 1.0/4.0 and emit the appropriate checkers. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -59,7 +59,7 @@ class MbedtlsTestConfigChecks(unittest_config_checks.TestConfigChecks):
|
||||
"""Error when redundantly setting a subproject internal option."""
|
||||
self.bad_case('#define PSA_WANT_ALG_MD5 1',
|
||||
'#define MBEDTLS_MD5_C',
|
||||
error=r'MBEDTLS_MD5_C.* PSA_WANT_ALG_MD5 in psa/crypto_config\.h')
|
||||
error=r'MBEDTLS_MD5_C is an internal macro')
|
||||
|
||||
def test_define_MBEDTLS_MD5_C_added(self) -> None:
|
||||
"""Error when setting a subproject internal option that was disabled."""
|
||||
@@ -68,7 +68,7 @@ class MbedtlsTestConfigChecks(unittest_config_checks.TestConfigChecks):
|
||||
#undef MBEDTLS_MD5_C
|
||||
''',
|
||||
'#define MBEDTLS_MD5_C',
|
||||
error=r'MBEDTLS_MD5_C.* PSA_WANT_ALG_MD5 in psa/crypto_config\.h')
|
||||
error=r'MBEDTLS_MD5_C is an internal macro')
|
||||
|
||||
def test_define_MBEDTLS_BASE64_C_redundant(self) -> None:
|
||||
"""Ok to redundantly set a subproject option."""
|
||||
|
||||
Reference in New Issue
Block a user