blob: c227a0414f7848a2e90e6729b6a39f3a3856df15 [file] [log] [blame]
David Hu6318d212021-08-23 18:07:57 +08001#-------------------------------------------------------------------------------
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
10set(TEST_FRAMEWORK_NS OFF CACHE BOOL "Whether to build NS regression tests framework")
11
12########################## NS test suites ######################################
13
14set(TEST_NS_ATTESTATION OFF CACHE BOOL "Whether to build NS regression Attestation tests")
15set(TEST_NS_T_COSE OFF CACHE BOOL "Whether to build NS regression t_cose tests")
16set(TEST_NS_QCBOR OFF CACHE BOOL "Whether to build NS regression QCBOR tests")
17set(TEST_NS_AUDIT OFF CACHE BOOL "Whether to build NS regression Audit log tests")
18set(TEST_NS_CORE OFF CACHE BOOL "Whether to build NS regression Core tests")
19set(TEST_NS_CRYPTO OFF CACHE BOOL "Whether to build NS regression Crypto tests")
20set(TEST_NS_ITS OFF CACHE BOOL "Whether to build NS regression ITS tests")
21set(TEST_NS_PS OFF CACHE BOOL "Whether to build NS regression PS tests")
22set(TEST_NS_PLATFORM OFF CACHE BOOL "Whether to build NS regression Platform tests")
23set(TEST_NS_FWU OFF CACHE BOOL "Whether to build NS regression FWU tests")
24set(TEST_NS_IPC OFF CACHE BOOL "Whether to build NS regression IPC tests")
25set(TEST_NS_SLIH_IRQ OFF CACHE BOOL "Whether to build NS regression Second-Level Interrupt Handling tests")
26set(TEST_NS_FLIH_IRQ OFF CACHE BOOL "Whether to build NS regression First-Level Interrupt Handling tests")
27set(TEST_NS_MULTI_CORE OFF CACHE BOOL "Whether to build NS regression multi-core tests")
28
29########################## S test framework ####################################
30
31set(TEST_FRAMEWORK_S OFF CACHE BOOL "Whether to build S regression tests framework")
32
33########################## S test suites #######################################
34
35set(TEST_S_ATTESTATION OFF CACHE BOOL "Whether to build S regression Attestation tests")
36set(TEST_S_AUDIT OFF CACHE BOOL "Whether to build S regression Audit log tests")
37set(TEST_S_CRYPTO OFF CACHE BOOL "Whether to build S regression Crypto tests")
38set(TEST_S_ITS OFF CACHE BOOL "Whether to build S regression ITS tests")
39set(TEST_S_PS OFF CACHE BOOL "Whether to build S regression PS tests")
40set(TEST_S_PLATFORM OFF CACHE BOOL "Whether to build S regression Platform tests")
41set(TEST_S_FWU OFF CACHE BOOL "Whether to build S regression FWU tests")
42set(TEST_S_IPC OFF CACHE BOOL "Whether to build S regression IPC tests")
shejia012feb8e92021-06-30 19:41:26 +080043
44################################## Core Tests ##################################
45
46set(TFM_INTERACTIVE_TEST OFF CACHE BOOL "Enable interactive tests")
47set(TFM_PERIPH_ACCESS_TEST OFF CACHE BOOL "Enable peripheral access tests")
48
49################################## PS Tests ####################################
50
51set(PS_TEST_NV_COUNTERS ON CACHE BOOL "Use the test NV counters to test Protected Storage rollback scenarios")
52
53################################## Default CRYPTO Tests ########################
54
55set(TFM_CRYPTO_TEST_ALG_CBC ON CACHE BOOL "Test CBC cryptography mode")
56set(TFM_CRYPTO_TEST_ALG_CCM ON CACHE BOOL "Test CCM cryptography mode")
57set(TFM_CRYPTO_TEST_ALG_CFB ON CACHE BOOL "Test CFB cryptography mode")
58set(TFM_CRYPTO_TEST_ALG_ECB ON CACHE BOOL "Test ECB cryptography mode")
59set(TFM_CRYPTO_TEST_ALG_CTR ON CACHE BOOL "Test CTR cryptography mode")
60set(TFM_CRYPTO_TEST_ALG_OFB ON CACHE BOOL "Test OFB cryptography mode")
61set(TFM_CRYPTO_TEST_ALG_GCM ON CACHE BOOL "Test GCM cryptography mode")
62set(TFM_CRYPTO_TEST_ALG_SHA_512 ON CACHE BOOL "Test SHA-512 cryptography algorithm")
63set(TFM_CRYPTO_TEST_HKDF ON CACHE BOOL "Test the HKDF key derivation algorithm")
64set(TFM_CRYPTO_TEST_ECDH ON CACHE BOOL "Test the ECDH key agreement algorithm")
65
66################################## FWU Tests ###################################
67
68set(TFM_FWU_TEST_REQUEST_REBOOT OFF CACHE BOOL "Test psa_fwu_request_reboot")
69set(TFM_FWU_TEST_WRITE_WITH_NULL OFF CACHE BOOL "Test psa_fwu_write with data block NULL")
70set(TFM_FWU_TEST_QUERY_WITH_NULL OFF CACHE BOOL "Test psa_fwu_query with info NULL")
71
72################################## Initial Attestation Tests ###################
73
74set(ATTEST_TEST_GET_PUBLIC_KEY OFF CACHE BOOL "Require to retrieve Initial Attestation public in runtime for test purpose")