David Hu | 6318d21 | 2021-08-23 18:07:57 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Kevin Peng | bb479b1 | 2023-01-28 17:07:15 +0800 | [diff] [blame] | 2 | # Copyright (c) 2021-2023, Arm Limited. All rights reserved. |
David Hu | 6318d21 | 2021-08-23 18:07:57 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
David Hu | 6318d21 | 2021-08-23 18:07:57 +0800 | [diff] [blame] | 8 | ########################## NS test suites ###################################### |
| 9 | |
| 10 | set(TEST_NS_ATTESTATION OFF CACHE BOOL "Whether to build NS regression Attestation tests") |
| 11 | set(TEST_NS_T_COSE OFF CACHE BOOL "Whether to build NS regression t_cose tests") |
| 12 | set(TEST_NS_QCBOR OFF CACHE BOOL "Whether to build NS regression QCBOR tests") |
David Hu | 6318d21 | 2021-08-23 18:07:57 +0800 | [diff] [blame] | 13 | set(TEST_NS_CRYPTO OFF CACHE BOOL "Whether to build NS regression Crypto tests") |
| 14 | set(TEST_NS_ITS OFF CACHE BOOL "Whether to build NS regression ITS tests") |
| 15 | set(TEST_NS_PS OFF CACHE BOOL "Whether to build NS regression PS tests") |
| 16 | set(TEST_NS_PLATFORM OFF CACHE BOOL "Whether to build NS regression Platform tests") |
| 17 | set(TEST_NS_FWU OFF CACHE BOOL "Whether to build NS regression FWU tests") |
| 18 | set(TEST_NS_IPC OFF CACHE BOOL "Whether to build NS regression IPC tests") |
| 19 | set(TEST_NS_SLIH_IRQ OFF CACHE BOOL "Whether to build NS regression Second-Level Interrupt Handling tests") |
| 20 | set(TEST_NS_FLIH_IRQ OFF CACHE BOOL "Whether to build NS regression First-Level Interrupt Handling tests") |
| 21 | set(TEST_NS_MULTI_CORE OFF CACHE BOOL "Whether to build NS regression multi-core tests") |
Xinyu Zhang | 92fe758 | 2021-09-24 17:11:49 +0800 | [diff] [blame] | 22 | set(TEST_NS_MANAGE_NSID OFF CACHE BOOL "Whether to build NS regression NSID management tests") |
Kevin Peng | ac81587 | 2021-10-25 17:59:59 +0800 | [diff] [blame] | 23 | set(TEST_NS_SFN_BACKEND OFF CACHE BOOL "Whether to build NS regression SFN backend tests") |
Feder Liang | 7abe9a4 | 2021-12-03 17:54:58 +0800 | [diff] [blame] | 24 | set(TEST_NS_FPU OFF CACHE BOOL "Whether to build NS regression FPU tests") |
David Hu | 6318d21 | 2021-08-23 18:07:57 +0800 | [diff] [blame] | 25 | |
David Hu | 6318d21 | 2021-08-23 18:07:57 +0800 | [diff] [blame] | 26 | ########################## S test suites ####################################### |
| 27 | |
| 28 | set(TEST_S_ATTESTATION OFF CACHE BOOL "Whether to build S regression Attestation tests") |
David Hu | 6318d21 | 2021-08-23 18:07:57 +0800 | [diff] [blame] | 29 | set(TEST_S_CRYPTO OFF CACHE BOOL "Whether to build S regression Crypto tests") |
| 30 | set(TEST_S_ITS OFF CACHE BOOL "Whether to build S regression ITS tests") |
| 31 | set(TEST_S_PS OFF CACHE BOOL "Whether to build S regression PS tests") |
| 32 | set(TEST_S_PLATFORM OFF CACHE BOOL "Whether to build S regression Platform tests") |
| 33 | set(TEST_S_FWU OFF CACHE BOOL "Whether to build S regression FWU tests") |
| 34 | set(TEST_S_IPC OFF CACHE BOOL "Whether to build S regression IPC tests") |
Kevin Peng | e85c6a8 | 2022-03-03 17:12:27 +0800 | [diff] [blame] | 35 | set(TEST_S_SFN_BACKEND OFF CACHE BOOL "Whether to build S regression SFN tests") |
shejia01 | 2feb8e9 | 2021-06-30 19:41:26 +0800 | [diff] [blame] | 36 | |
shejia01 | 2feb8e9 | 2021-06-30 19:41:26 +0800 | [diff] [blame] | 37 | ################################## PS Tests #################################### |
| 38 | |
| 39 | set(PS_TEST_NV_COUNTERS ON CACHE BOOL "Use the test NV counters to test Protected Storage rollback scenarios") |
| 40 | |
| 41 | ################################## Default CRYPTO Tests ######################## |
| 42 | |
Antonio de Angelis | 50891e4 | 2022-10-31 13:44:07 +0000 | [diff] [blame] | 43 | set(TFM_CRYPTO_TEST_ALG_CBC ON CACHE BOOL "Test CBC cryptography mode") |
| 44 | set(TFM_CRYPTO_TEST_ALG_CCM ON CACHE BOOL "Test CCM cryptography mode") |
| 45 | set(TFM_CRYPTO_TEST_ALG_CFB ON CACHE BOOL "Test CFB cryptography mode") |
| 46 | set(TFM_CRYPTO_TEST_ALG_ECB ON CACHE BOOL "Test ECB cryptography mode") |
| 47 | set(TFM_CRYPTO_TEST_ALG_CTR ON CACHE BOOL "Test CTR cryptography mode") |
| 48 | set(TFM_CRYPTO_TEST_ALG_OFB ON CACHE BOOL "Test OFB cryptography mode") |
| 49 | set(TFM_CRYPTO_TEST_ALG_GCM ON CACHE BOOL "Test GCM cryptography mode") |
Andrej Butok | 2a0db5d | 2023-05-24 12:19:59 +0200 | [diff] [blame] | 50 | set(TFM_CRYPTO_TEST_ALG_SHA_224 ON CACHE BOOL "Test SHA-224 cryptography algorithm") |
Summer Qin | a2fc304 | 2023-06-14 11:06:20 +0800 | [diff] [blame] | 51 | if (NOT ${CC312_LEGACY_DRIVER_API_ENABLED}) |
| 52 | set(TFM_CRYPTO_TEST_ALG_SHA_384 OFF CACHE BOOL "Test SHA-384 cryptography algorithm") |
| 53 | set(TFM_CRYPTO_TEST_ALG_SHA_512 OFF CACHE BOOL "Test SHA-512 cryptography algorithm") |
| 54 | else() |
| 55 | set(TFM_CRYPTO_TEST_ALG_SHA_384 ON CACHE BOOL "Test SHA-384 cryptography algorithm") |
| 56 | set(TFM_CRYPTO_TEST_ALG_SHA_512 ON CACHE BOOL "Test SHA-512 cryptography algorithm") |
| 57 | endif() |
Antonio de Angelis | 50891e4 | 2022-10-31 13:44:07 +0000 | [diff] [blame] | 58 | set(TFM_CRYPTO_TEST_HKDF ON CACHE BOOL "Test the HKDF key derivation algorithm") |
| 59 | set(TFM_CRYPTO_TEST_ECDH ON CACHE BOOL "Test the ECDH key agreement algorithm") |
| 60 | set(TFM_CRYPTO_TEST_CHACHA20 OFF CACHE BOOL "Test the ChaCha20 stream cipher") |
| 61 | set(TFM_CRYPTO_TEST_ALG_CHACHA20_POLY1305 OFF CACHE BOOL "Test ChaCha20-Poly1305 AEAD algorithm") |
| 62 | set(TFM_CRYPTO_TEST_ALG_RSASSA_PSS_VERIFICATION ON CACHE BOOL "Test RSASSA-PSS signature verification algorithm") |
| 63 | set(TFM_CRYPTO_TEST_SINGLE_PART_FUNCS ON CACHE BOOL "Test single-part operations in hash, MAC, AEAD and symmetric ciphers") |
Summer Qin | b83741a | 2023-05-12 11:22:43 +0800 | [diff] [blame] | 64 | set(TFM_CRYPTO_TEST_UNSUPPORTED_ALG ON CACHE BOOL "Test unsupported algorithm in hash, MAC") |
shejia01 | 2feb8e9 | 2021-06-30 19:41:26 +0800 | [diff] [blame] | 65 | |
| 66 | ################################## FWU Tests ################################### |
| 67 | |
| 68 | set(TFM_FWU_TEST_REQUEST_REBOOT OFF CACHE BOOL "Test psa_fwu_request_reboot") |
| 69 | set(TFM_FWU_TEST_WRITE_WITH_NULL OFF CACHE BOOL "Test psa_fwu_write with data block NULL") |
| 70 | set(TFM_FWU_TEST_QUERY_WITH_NULL OFF CACHE BOOL "Test psa_fwu_query with info NULL") |
| 71 | |
Feder Liang | db53c6b | 2021-09-07 15:42:09 +0800 | [diff] [blame] | 72 | ############################################ FPU Tests ######################### |
| 73 | |
| 74 | set(TEST_S_FPU OFF CACHE BOOL "Whether to build S regression FPU tests") |
| 75 | |
Jianliang Shen | 2959c1f | 2021-09-01 10:14:06 +0800 | [diff] [blame] | 76 | ################################## Extra test suites ########################### |
| 77 | |
Jianliang Shen | b5fd67b | 2022-11-14 14:15:59 +0800 | [diff] [blame] | 78 | set(EXTRA_NS_TEST_SUITE_PATH "" CACHE PATH "List of extra non-secure test suites directories. An extra test suite folder contains source code, CMakeLists.txt and cmake configuration file") |
| 79 | set(EXTRA_S_TEST_SUITE_PATH "" CACHE PATH "List of extra secure test suites directories. An extra test suite folder contains source code, CMakeLists.txt and cmake configuration file") |