blob: 4c894ccae385d836ce0b149f141752d7776d3d98 [file] [log] [blame]
Jianliang Shen710cb952022-10-08 11:32:35 +08001#-------------------------------------------------------------------------------
2# Copyright (c) 2022, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8menu "TF-M regression tests"
9
10config TEST_S
11 bool "Enable default secure test cases"
12 default n
13 imply TEST_S_ATTESTATION
14 imply TEST_S_CRYPTO
15 imply TEST_S_ITS
16 imply TEST_S_PS
17 imply TEST_S_PLATFORM
18 imply TEST_S_FWU
19 imply TEST_S_SFN_BACKEND
20
21config TEST_NS
22 bool "Enable default non-secure test cases"
23 depends on NS
24 default n
25 imply TEST_NS_ATTESTATION
26 imply TEST_NS_T_COSE
27 imply TEST_NS_QCBOR
28 imply TEST_NS_CRYPTO
29 imply TEST_NS_PS
30 imply TEST_NS_ITS
31 imply TEST_NS_PLATFORM
32 imply TEST_NS_FWU
33 imply TEST_NS_MULTI_CORE
34 imply TEST_NS_MANAGE_NSID
35 imply TEST_NS_IPC
36 imply TEST_NS_SFN_BACKEND
37
38################################# Secure test ##################################
39
40menu "Secure regression tests"
41
42config TEST_S_ATTESTATION
43 bool "Attestation"
44 depends on TFM_PARTITION_INITIAL_ATTESTATION
45
46config TEST_S_CRYPTO
47 bool "Crypto"
48 depends on TFM_PARTITION_CRYPTO
49
50config TEST_S_ITS
51 bool "ITS"
52 depends on TFM_PARTITION_INTERNAL_TRUSTED_STORAGE
53
54config TEST_S_PS
55 bool "PS"
56 depends on TFM_PARTITION_PROTECTED_STORAGE
57
58config TEST_S_PLATFORM
59 bool "Platform"
60 depends on TFM_PARTITION_PLATFORM
61
62config TEST_S_FWU
63 bool "FWU"
64 depends on TFM_PARTITION_FIRMWARE_UPDATE
65
66config TEST_S_IPC
67 bool "IPC"
68 depends on TFM_SPM_BACKEND_IPC
69
70config TEST_S_SFN_BACKEND
71 bool "SFN backend"
72 depends on TFM_SPM_BACKEND_SFN
73
74config TEST_S_FPU
75 bool "FPU"
76 default n
77endmenu
78
79################################# Non-secure test ##############################
80
81menu "Non-Secure regression tests"
82 depends on NS
83
84config TEST_NS_ATTESTATION
85 bool "Attestation"
86 depends on TFM_PARTITION_INITIAL_ATTESTATION
87
88config TEST_NS_T_COSE
89 bool "t_cose"
90 depends on TFM_PARTITION_INITIAL_ATTESTATION && !SYMMETRIC_INITIAL_ATTESTATION
91
92config TEST_NS_QCBOR
93 bool "QCBOR"
94 depends on TFM_PARTITION_INITIAL_ATTESTATION
95
96config TEST_NS_CRYPTO
97 bool "Crypto"
98 depends on TFM_PARTITION_CRYPTO
99
100comment "PS NS test depends on partition ITS and PS, and NS ITS test"
101 depends on !(TFM_PARTITION_PROTECTED_STORAGE && TEST_NS_ITS)
102
103config TEST_NS_PS
104 bool "PS"
105 depends on TFM_PARTITION_PROTECTED_STORAGE && TEST_NS_ITS
106
107config TEST_NS_ITS
108 bool "ITS"
109 depends on TFM_PARTITION_INTERNAL_TRUSTED_STORAGE
110
111config TEST_NS_PLATFORM
112 bool "Platform"
113 depends on TFM_PARTITION_PLATFORM
114
115config TEST_NS_FWU
116 bool "FWU"
117 depends on TFM_PARTITION_FIRMWARE_UPDATE
118
119config TEST_NS_MULTI_CORE
120 bool "Multi-core"
121 depends on TFM_MULTI_CORE_TOPOLOGY
122
123config TEST_NS_MANAGE_NSID
124 bool "NSID management"
125 depends on TFM_NS_MANAGE_NSID
126
127choice TEST_NS_IRQ
128 prompt "IRQ test type"
129 default TEST_NS_NONE_IRQ
130
131 config TEST_NS_NONE_IRQ
132 bool "None IRQ test"
133
134 # Make FLIH IRQ test as the default IRQ test
135 config TEST_NS_FLIH_IRQ
136 bool "First-Level Interrupt Handling"
137
138 config TEST_NS_SLIH_IRQ
139 bool "Second-Level Interrupt Handling"
140
141endchoice
142
143config TEST_NS_FPU
144 bool "FPU"
145 default n
146
147config TEST_NS_IPC
148 bool "IPC"
149 depends on CONFIG_TFM_SPM_BACKEND_IPC
150
151config TEST_NS_SFN_BACKEND
152 bool "SFN backend"
153 depends on CONFIG_TFM_SPM_BACKEND_SFN
154
155endmenu
156
157################################# Crypto tests #################################
158
159if TEST_NS_CRYPTO || TEST_S_CRYPTO
160
161menu "Crypto Test Configs"
162
163config TFM_CRYPTO_TEST_ALG_CBC
164 bool "Test CBC cryptography mode"
165 default y
166
167config TFM_CRYPTO_TEST_ALG_CCM
168 bool "Test CCM cryptography mode"
169 default y
170
171config TFM_CRYPTO_TEST_ALG_CFB
172 bool "Test CFB cryptography mode"
173 default y
174
175config TFM_CRYPTO_TEST_ALG_ECB
176 bool "Test ECB cryptography mode"
177 default y
178
179config TFM_CRYPTO_TEST_ALG_CTR
180 bool "Test CTR cryptography mode"
181 default y
182
183config TFM_CRYPTO_TEST_ALG_OFB
184 bool "Test OFB cryptography mode"
185 default y
186
187config TFM_CRYPTO_TEST_ALG_GCM
188 bool "Test GCM cryptography mode"
189 default y
190
191config TFM_CRYPTO_TEST_ALG_SHA_384
192 bool "Test SHA-384 cryptography algorithm"
193 default y
194
195config TFM_CRYPTO_TEST_ALG_SHA_512
196 bool "Test SHA-512 cryptography algorithm"
197 default y
198
199config TFM_CRYPTO_TEST_HKDF
200 bool "Test the HKDF key derivation algorithm"
201 default y
202
203config TFM_CRYPTO_TEST_ECDH
204 bool "Test the ECDH key agreement algorithm"
205 default y
206
207config TFM_CRYPTO_TEST_CHACHA20
208 bool "Test the ChaCha20 stream cipher"
209 default n
210
211config TFM_CRYPTO_TEST_ALG_CHACHA20_POLY1305
212 bool "Test ChaCha20-Poly1305 AEAD algorithm"
213 default n
214
215config TFM_CRYPTO_TEST_SINGLE_PART_FUNCS
216 bool "Test single-part operations in hash, MAC, AEAD and symmetric ciphers"
217 default y
218
219endmenu
220endif
221endmenu