David Vincze | 0d81366 | 2025-01-15 20:11:29 +0000 | [diff] [blame] | 1 | From b8508adb8ce298ac2c4c2e6708acdb45f061fbd1 Mon Sep 17 00:00:00 2001 |
| 2 | From: David Vincze <david.vincze@arm.com> |
| 3 | Date: Tue, 10 Dec 2024 14:52:50 +0000 |
| 4 | Subject: [PATCH] Disable unnecessary test cases |
| 5 | |
| 6 | - HKDF: not implemented properly by the PSA Crypto layer, |
| 7 | - Encrypt/Decrypt: not needed to be covered (not relevant to TF-M). |
| 8 | |
| 9 | --- |
| 10 | test/run_tests.c | 28 ++++++++++++++++++---------- |
| 11 | 1 file changed, 18 insertions(+), 10 deletions(-) |
| 12 | |
| 13 | diff --git a/test/run_tests.c b/test/run_tests.c |
| 14 | index 17b3b49..510e981 100644 |
| 15 | --- a/test/run_tests.c |
| 16 | +++ b/test/run_tests.c |
| 17 | @@ -49,19 +49,24 @@ static test_entry s_tests[] = { |
| 18 | TEST_ENTRY(kw_test), |
| 19 | TEST_ENTRY(decrypt_known_good_aeskw_non_aead_test), |
| 20 | #endif |
| 21 | - TEST_ENTRY(hkdf_test), |
| 22 | +/* |
| 23 | + * Disabled test case |
| 24 | + * HKDF is not supported properly by the PSA Crypto adaptor layer |
| 25 | + */ |
| 26 | + /* TEST_ENTRY(hkdf_test), */ |
| 27 | |
| 28 | #ifndef T_COSE_USE_B_CON_SHA256 /* test crypto doesn't support ECDH */ |
| 29 | |
| 30 | TEST_ENTRY(ecdh_test), |
| 31 | TEST_ENTRY(ec_import_export_test), |
| 32 | |
| 33 | - TEST_ENTRY(esdh_enc_dec_test), |
| 34 | - TEST_ENTRY(decrypt_known_good), |
| 35 | - |
| 36 | - TEST_ENTRY(decrypt_known_bad), |
| 37 | - |
| 38 | - TEST_ENTRY(kdf_context_test), |
| 39 | +/* |
| 40 | + * Disabled test cases |
| 41 | + */ |
| 42 | + /* TEST_ENTRY(esdh_enc_dec_test), */ |
| 43 | + /* TEST_ENTRY(decrypt_known_good), */ |
| 44 | + /* TEST_ENTRY(decrypt_known_bad), */ |
| 45 | + /* TEST_ENTRY(kdf_context_test), */ |
| 46 | |
| 47 | #endif /* T_COSE_USE_B_CON_SHA256 */ |
| 48 | |
| 49 | @@ -133,9 +138,12 @@ static test_entry s_tests[] = { |
| 50 | #endif /* T_COSE_DISABLE_HASH_FAIL_TEST */ |
| 51 | #endif /* T_COSE_DISABLE_SHORT_CIRCUIT_SIGN */ |
| 52 | |
| 53 | - TEST_ENTRY(param_test), |
| 54 | - TEST_ENTRY(common_params_test), |
| 55 | - TEST_ENTRY(base_encrypt_decrypt_test) |
| 56 | +/* |
| 57 | + * Disabled test cases |
| 58 | + */ |
| 59 | + /* TEST_ENTRY(param_test), */ |
| 60 | + /* TEST_ENTRY(common_params_test), */ |
| 61 | + /* TEST_ENTRY(base_encrypt_decrypt_test) */ |
| 62 | |
| 63 | }; |
| 64 | |
| 65 | -- |
| 66 | 2.34.1 |