mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-05 08:17:22 +00:00
Add test case for allowing setting an always-on removed option
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -112,6 +112,15 @@ class MbedtlsTestConfigChecks(unittest_config_checks.TestConfigChecks):
|
|||||||
'#undef MBEDTLS_BASE64_C',
|
'#undef MBEDTLS_BASE64_C',
|
||||||
error=r'MBEDTLS_BASE64_C .*psa/crypto_config\.h')
|
error=r'MBEDTLS_BASE64_C .*psa/crypto_config\.h')
|
||||||
|
|
||||||
|
def test_crypto_define_MBEDTLS_USE_PSA_CRYPTO(self) -> None:
|
||||||
|
"""It's ok to set MBEDTLS_USE_PSA_CRYPTO (now effectively always on)."""
|
||||||
|
self.good_case('#define MBEDTLS_USE_PSA_CRYPTO')
|
||||||
|
|
||||||
|
def test_crypto_define_MBEDTLS_USE_PSA_CRYPTO(self) -> None:
|
||||||
|
"""It's ok to set MBEDTLS_USE_PSA_CRYPTO (now effectively always on)."""
|
||||||
|
self.good_case(None,
|
||||||
|
'#define MBEDTLS_USE_PSA_CRYPTO')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user