David Hu | 6318d21 | 2021-08-23 18:07:57 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2021, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | ########################## NS test framework ################################### |
| 9 | |
| 10 | set(TEST_FRAMEWORK_NS OFF CACHE BOOL "Whether to build NS regression tests framework") |
| 11 | |
| 12 | ########################## NS test suites ###################################### |
| 13 | |
| 14 | set(TEST_NS_ATTESTATION OFF CACHE BOOL "Whether to build NS regression Attestation tests") |
| 15 | set(TEST_NS_T_COSE OFF CACHE BOOL "Whether to build NS regression t_cose tests") |
| 16 | set(TEST_NS_QCBOR OFF CACHE BOOL "Whether to build NS regression QCBOR tests") |
| 17 | set(TEST_NS_AUDIT OFF CACHE BOOL "Whether to build NS regression Audit log tests") |
| 18 | set(TEST_NS_CORE OFF CACHE BOOL "Whether to build NS regression Core tests") |
| 19 | set(TEST_NS_CRYPTO OFF CACHE BOOL "Whether to build NS regression Crypto tests") |
| 20 | set(TEST_NS_ITS OFF CACHE BOOL "Whether to build NS regression ITS tests") |
| 21 | set(TEST_NS_PS OFF CACHE BOOL "Whether to build NS regression PS tests") |
| 22 | set(TEST_NS_PLATFORM OFF CACHE BOOL "Whether to build NS regression Platform tests") |
| 23 | set(TEST_NS_FWU OFF CACHE BOOL "Whether to build NS regression FWU tests") |
| 24 | set(TEST_NS_IPC OFF CACHE BOOL "Whether to build NS regression IPC tests") |
| 25 | set(TEST_NS_SLIH_IRQ OFF CACHE BOOL "Whether to build NS regression Second-Level Interrupt Handling tests") |
| 26 | set(TEST_NS_FLIH_IRQ OFF CACHE BOOL "Whether to build NS regression First-Level Interrupt Handling tests") |
| 27 | set(TEST_NS_MULTI_CORE OFF CACHE BOOL "Whether to build NS regression multi-core tests") |
| 28 | |
| 29 | ########################## S test framework #################################### |
| 30 | |
| 31 | set(TEST_FRAMEWORK_S OFF CACHE BOOL "Whether to build S regression tests framework") |
| 32 | |
| 33 | ########################## S test suites ####################################### |
| 34 | |
| 35 | set(TEST_S_ATTESTATION OFF CACHE BOOL "Whether to build S regression Attestation tests") |
| 36 | set(TEST_S_AUDIT OFF CACHE BOOL "Whether to build S regression Audit log tests") |
| 37 | set(TEST_S_CRYPTO OFF CACHE BOOL "Whether to build S regression Crypto tests") |
| 38 | set(TEST_S_ITS OFF CACHE BOOL "Whether to build S regression ITS tests") |
| 39 | set(TEST_S_PS OFF CACHE BOOL "Whether to build S regression PS tests") |
| 40 | set(TEST_S_PLATFORM OFF CACHE BOOL "Whether to build S regression Platform tests") |
| 41 | set(TEST_S_FWU OFF CACHE BOOL "Whether to build S regression FWU tests") |
| 42 | set(TEST_S_IPC OFF CACHE BOOL "Whether to build S regression IPC tests") |
shejia01 | 2feb8e9 | 2021-06-30 19:41:26 +0800 | [diff] [blame^] | 43 | |
| 44 | ################################## Core Tests ################################## |
| 45 | |
| 46 | set(TFM_INTERACTIVE_TEST OFF CACHE BOOL "Enable interactive tests") |
| 47 | set(TFM_PERIPH_ACCESS_TEST OFF CACHE BOOL "Enable peripheral access tests") |
| 48 | |
| 49 | ################################## PS Tests #################################### |
| 50 | |
| 51 | set(PS_TEST_NV_COUNTERS ON CACHE BOOL "Use the test NV counters to test Protected Storage rollback scenarios") |
| 52 | |
| 53 | ################################## Default CRYPTO Tests ######################## |
| 54 | |
| 55 | set(TFM_CRYPTO_TEST_ALG_CBC ON CACHE BOOL "Test CBC cryptography mode") |
| 56 | set(TFM_CRYPTO_TEST_ALG_CCM ON CACHE BOOL "Test CCM cryptography mode") |
| 57 | set(TFM_CRYPTO_TEST_ALG_CFB ON CACHE BOOL "Test CFB cryptography mode") |
| 58 | set(TFM_CRYPTO_TEST_ALG_ECB ON CACHE BOOL "Test ECB cryptography mode") |
| 59 | set(TFM_CRYPTO_TEST_ALG_CTR ON CACHE BOOL "Test CTR cryptography mode") |
| 60 | set(TFM_CRYPTO_TEST_ALG_OFB ON CACHE BOOL "Test OFB cryptography mode") |
| 61 | set(TFM_CRYPTO_TEST_ALG_GCM ON CACHE BOOL "Test GCM cryptography mode") |
| 62 | set(TFM_CRYPTO_TEST_ALG_SHA_512 ON CACHE BOOL "Test SHA-512 cryptography algorithm") |
| 63 | set(TFM_CRYPTO_TEST_HKDF ON CACHE BOOL "Test the HKDF key derivation algorithm") |
| 64 | set(TFM_CRYPTO_TEST_ECDH ON CACHE BOOL "Test the ECDH key agreement algorithm") |
| 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 | |
| 72 | ################################## Initial Attestation Tests ################### |
| 73 | |
| 74 | set(ATTEST_TEST_GET_PUBLIC_KEY OFF CACHE BOOL "Require to retrieve Initial Attestation public in runtime for test purpose") |