From 5f665c3a0d9766638e8fe2ebbaddeff4e444d579 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Wed, 20 Dec 2023 09:56:05 +0100 Subject: [PATCH] analyze_outcomes: add exceptions to disparities for block_cipher dispatch Signed-off-by: Valerio Setti --- tests/scripts/analyze_outcomes.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests/scripts/analyze_outcomes.py b/tests/scripts/analyze_outcomes.py index 8db2ef7783..7dc6afe3ca 100755 --- a/tests/scripts/analyze_outcomes.py +++ b/tests/scripts/analyze_outcomes.py @@ -542,8 +542,38 @@ KNOWN_TASKS = { 'ignored_suites': [ # Skipped in the accelerated component 'aes', 'aria', 'camellia', + # These require AES_C and CAMELLIA_C to be enabled in order for the cipher + # module (actually cipher_wrapper) to work properly. However these symbols + # are disabled in the accelerated component so we ignore them. + 'cipher.ccm', 'cipher.gcm', 'cmac', ], 'ignored_tests': { + 'test_suite_cipher.aes': [ + # CCM*-NO-TAG is disabled in the accelerated component but + # there is no way to get CCM without CCM*-NO-TAG with legacy symbols. + re.compile(r'AES-\d+[- ]CCM\*-NO-TAG .*'), + # Following test require AES_C to be enabled for CIPHER_C operations + re.compile(r'AES-\d+-ECB .* NIST KAT .*'), + # This test requires AES_C which is disabled in the accelerated component + 'Cipher Corner Case behaviours', + ], + 'test_suite_cipher.aria': [ + # Same as for test_suite_cipher.aes + re.compile(r'ARIA-\d+[- ]CCM\*-NO-TAG .*'), + ], + 'test_suite_cipher.camellia': [ + # Same as for test_suite_cipher.aes + re.compile(r'CAMELLIA-\d+[- ]CCM\*-NO-TAG .*'), + ], + 'test_suite_error': [ + # Following tests require AES_C which is disabled in the accelerated component + 'Single low error', + 'Low and high error', + ], + 'test_suite_version': [ + # Following tests require AES_C which is disabled in the accelerated component + 'Check for MBEDTLS_AES_C when already present', + ], 'test_suite_platform': [ # Incompatible with sanitizers (e.g. ASan). If the driver # component uses a sanitizer but the reference component