blob: de29b96e0f0a5f9c23c556f257a3cd17bc4ef083 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" lava_job_generator_configs.py:
4
5 Default configurations for lava job generator """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Xinyu Zhang04d77472022-03-21 14:37:37 +080011 * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Leonardo Sandoval66386a22021-04-15 14:35:08 -050022tf_downloads="https://downloads.trustedfirmware.org"
23coverage_trace_plugin=tf_downloads + "/coverage-plugin/qa-tools/coverage-tool/coverage-plugin/coverage_trace.so"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010024
25def lava_gen_get_config_subset(config,
26 default=True,
27 core=True,
28 regression=True):
29 """ Allow dynamic generation of configuration combinations by subtracking
30 undesired ones """
31
32 from copy import deepcopy
33 cfg = deepcopy(config)
34 tests = deepcopy(config["tests"])
35
36 # Remove all configs not requests by the caller
37 if not default:
38 tests.pop("Default")
Minos Galanakisea421232019-06-20 17:11:28 +010039 if not core:
40 tests.pop("CoreIPC")
41 tests.pop("CoreIPCTfmLevel2")
Xinyu Zhang204dc372020-11-12 14:18:00 +080042 tests.pop("CoreIPCTfmLevel3")
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010043 if not regression:
44 tests.pop("Regression")
45
46 cfg["tests"] = tests
47 return cfg
48
Xinyu Zhangf724cd22022-03-21 15:46:26 +080049# LAVA test-monitor definition for configs with regression tests.
50# "Non-Secure system starting..." is expected to indicate
51# that TF-M has been booted successfully.
52monitors_no_reg_tests = [
53 {
54 'name': 'NS_SYSTEM_BOOTING',
55 'start': 'Non-Secure system',
56 'end': r'starting\\.{3}',
57 'pattern': r'Non-Secure system starting\\.{3}',
58 'fixup': {"pass": "!", "fail": ""},
59 }
60]
61
62# LAVA test-monitor definition for configs with regression tests.
Paul Sokolovsky65671e62022-03-23 21:09:12 +030063# Results of each test case is parsed separately, capturing test case id.
64# Works across any test suites enabled.
Xinyu Zhangf724cd22022-03-21 15:46:26 +080065monitors_reg_tests = [
66 {
Paul Sokolovsky65671e62022-03-23 21:09:12 +030067 'name': 'regression_suite',
Xinyu Zhange4db0632022-04-10 23:22:22 +080068 'start': 'Execute test suites',
Paul Sokolovsky65671e62022-03-23 21:09:12 +030069 'end': 'End of Non-secure test suites',
70 'pattern': r"TEST: (?P<test_case_id>.+?) - (?P<result>(PASSED|FAILED|SKIPPED))",
71 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
Xinyu Zhangf724cd22022-03-21 15:46:26 +080072 },
Paul Sokolovsky65671e62022-03-23 21:09:12 +030073] # Monitors
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010074
Paul Sokolovsky6024d012022-01-22 20:21:07 +030075# LAVA test-monitor definition for PSA API testsuites, testcases identified
76# by "UT" value in output (testcase identifier).
77monitors_psaapitest_by_ut = [
78 {
79 'name': 'psa_api_suite',
80 'start': 'Running..',
81 'end': 'Entering standby..',
82 'pattern': r" UT: +(?P<test_case_id>[A-Za-z0-9_]+)\r?\n"
83 r".+?"
84 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))",
85 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
86 },
87]
88
89# LAVA test-monitor definition for PSA API testsuites, testcases identified
90# by description in output (for when UT is not set to unique identifier).
91monitors_psaapitest_by_desc = [
92 {
93 'name': 'psa_api_suite',
94 'start': 'Running..',
95 'end': 'Entering standby..',
96 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?) \\|"
97 r".+?"
98 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))",
99 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
100 },
101]
102
Paul Sokolovskye3d2bb12022-06-06 17:04:34 +0300103monitors_psaapitest_ff = [
104 {
105 'name': 'psa_api_suite',
106 'start': 'Running..',
107 'end': 'Entering standby..',
108 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?)\r?\n"
109 r".+"
110 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED|SIM ERROR))",
111 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
112 },
113]
114
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300115
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100116# MPS2 with BL2 bootloader
117# IMAGE0ADDRESS: 0x10000000
118# IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader
119# IMAGE1ADDRESS: 0x10080000
120# IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100121tfm_mps2_sse_200 = {
Matthew Hart2c2688f2020-05-26 13:09:20 +0100122 "templ": "mps2.jinja2",
123 "job_name": "mps2_an521_bl2",
Minos Galanakisafb43152019-09-25 14:17:39 +0100124 "device_type": "mps",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100125 "job_timeout": 15,
126 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800127 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100128 "poweroff_timeout": 1,
129 "recovery_store_url": "https://ci.trustedfirmware.org/userContent/",
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100130 "platforms": {"AN521": "mps2_sse200_an512_new.tar.gz"},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800131 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100132 "build_types": ["Debug", "Release", "Minsizerel"],
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100133 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800134 "binaries": {
135 "firmware": "tfm_s_ns_signed.bin",
136 "bootloader": "bl2.bin"
137 },
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100138 "tests": {
139 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800140 "monitors": monitors_no_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100141 }, # Default
Xinyu Zhang244e1862021-03-12 16:21:54 +0800142 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800143 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800144 }, # DefaultProfileS
145 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800146 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800147 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800148 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800149 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800150 }, # DefaultProfileL
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100151 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800152 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100153 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800154 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800155 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800156 }, # RegressionProfileM
157 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800158 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800159 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800160 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800161 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800162 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100163 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800164 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100165 }, # Regression
166 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800167 "monitors": monitors_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100168 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800169 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800170 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800171 }, # Regression
Minos Galanakisea421232019-06-20 17:11:28 +0100172 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800173 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100174 }, # CoreIPC
175 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800176 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100177 }, # CoreIPCTfmLevel2
Xinyu Zhang244e1862021-03-12 16:21:54 +0800178 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800179 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800180 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300181 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300182 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300183 }, # PsaApiTest_Crypto
Paul Sokolovsky68c86e32022-05-02 16:39:24 +0300184 'PsaApiTestIPC_Crypto': {
185 "monitors": monitors_psaapitest_by_ut,
186 },
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300187 'PsaApiTestIPCTfmLevel2_Crypto': {
188 "monitors": monitors_psaapitest_by_ut,
189 },
190 'PsaApiTestIPCTfmLevel3_Crypto': {
191 "monitors": monitors_psaapitest_by_ut,
192 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300193 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300194 "monitors": monitors_psaapitest_by_desc,
195 }, # PsaApiTest_Storage
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300196 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300197 "monitors": monitors_psaapitest_by_desc,
198 }, # PsaApiTestIPC_Storage
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300199 'PsaApiTestIPCTfmLevel2_STORAGE': {
200 "monitors": monitors_psaapitest_by_desc,
201 },
202 'PsaApiTestIPCTfmLevel3_STORAGE': {
203 "monitors": monitors_psaapitest_by_desc,
204 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300205 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300206 "monitors": monitors_psaapitest_by_ut,
207 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300208 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300209 "monitors": monitors_psaapitest_by_ut,
210 }, # PsaApiTestIPC_Attest
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300211 'PsaApiTestIPCTfmLevel2_Attest': {
212 "monitors": monitors_psaapitest_by_ut,
213 },
214 'PsaApiTestIPCTfmLevel3_Attest': {
215 "monitors": monitors_psaapitest_by_ut,
216 },
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100217 } # Tests
218}
219
Bence Balogh4fe9b882022-03-30 15:23:47 +0200220# FVP with BL2 bootloader
221# firmware <-> ns <-> application: --application cpu0=bl2.axf
222# bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000
223fvp_mps3_an552_bl2 = {
224 "templ": "fvp_mps3.jinja2",
225 "job_name": "fvp_mps3_an552_bl2",
226 "device_type": "fvp",
227 "job_timeout": 15,
228 "action_timeout": 10,
229 "monitor_timeout": 15,
230 "poweroff_timeout": 1,
231 "platforms": {"AN552": ""},
232 "compilers": ["GCC", "ARMCLANG"],
233 "build_types": ["Debug", "Release"],
234 "boot_types": ["BL2"],
235 "data_bin_offset": "0x01000000",
236 "binaries": {
237 "application": "bl2.axf",
238 "data": "tfm_s_ns_signed.bin"
239 },
240 "tests": {
241 'Default': {
242 "monitors": monitors_no_reg_tests
243 }, # Default
244 'Regression': {
245 "monitors": monitors_reg_tests
246 }, # Regression
247 'RegressionIPC': {
248 "monitors": monitors_reg_tests
249 }, # Regression
250 'RegressionIPCTfmLevel2': {
251 "monitors": monitors_reg_tests
252 }, # Regression
253 'RegressionIPCTfmLevel3': {
254 "monitors": monitors_reg_tests
255 }, # Regression
256 'CoreIPC': {
257 "monitors": monitors_no_reg_tests
258 }, # CoreIPC
259 'CoreIPCTfmLevel2': {
260 "monitors": monitors_no_reg_tests
261 }, # CoreIPCTfmLevel2
262 'CoreIPCTfmLevel3': {
263 "monitors": monitors_no_reg_tests
264 }, # CoreIPCTfmLevel3
265
266 } # Tests
267}
Dean Bircha6ede7e2020-03-13 14:00:33 +0000268
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100269# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800270# application: --application cpu0=bl2.axf
271# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100272fvp_mps2_an521_bl2 = {
273 "templ": "fvp_mps2.jinja2",
274 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000275 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100276 "job_timeout": 15,
277 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800278 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000279 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100280 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800281 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100282 "build_types": ["Debug", "Release", "Minsizerel"],
Dean Bircha6ede7e2020-03-13 14:00:33 +0000283 "boot_types": ["BL2"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000284 "data_bin_offset": "0x10080000",
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800285 "binaries": {
286 "application": "bl2.axf",
287 "data": "tfm_s_ns_signed.bin"
288 },
Matthew Hartfb6fd362020-03-04 21:03:59 +0000289 "tests": {
290 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800291 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000292 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800293 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800294 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800295 }, # DefaultProfileS
296 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800297 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800298 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800299 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800300 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800301 }, # DefaultProfileL
Matthew Hartfb6fd362020-03-04 21:03:59 +0000302 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800303 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100304 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800305 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800306 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800307 }, # RegressionProfileM
308 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800309 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800310 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800311 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800312 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800313 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100314 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800315 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100316 }, # Regression
317 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800318 "monitors": monitors_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000319 }, # Regression
Karl Zhang3b092ef2020-11-06 16:56:25 +0800320 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800321 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800322 }, # Regression
Matthew Hartfb6fd362020-03-04 21:03:59 +0000323 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800324 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000325 }, # CoreIPC
326 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800327 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000328 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800329 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800330 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800331 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300332 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300333 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300334 }, # PsaApiTest_Crypto
Paul Sokolovsky68c86e32022-05-02 16:39:24 +0300335 'PsaApiTestIPC_Crypto': {
336 "monitors": monitors_psaapitest_by_ut,
337 },
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300338 'PsaApiTestIPCTfmLevel2_Crypto': {
339 "monitors": monitors_psaapitest_by_ut,
340 },
341 'PsaApiTestIPCTfmLevel3_Crypto': {
342 "monitors": monitors_psaapitest_by_ut,
343 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300344 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300345 "monitors": monitors_psaapitest_by_desc,
346 }, # PsaApiTest_Storage
347
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300348 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300349 "monitors": monitors_psaapitest_by_desc,
350 }, # PsaApiTestIPC_Storage
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300351 'PsaApiTestIPCTfmLevel2_STORAGE': {
352 "monitors": monitors_psaapitest_by_desc,
353 },
354 'PsaApiTestIPCTfmLevel3_STORAGE': {
355 "monitors": monitors_psaapitest_by_desc,
356 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300357 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300358 "monitors": monitors_psaapitest_by_ut,
359 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300360 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300361 "monitors": monitors_psaapitest_by_ut,
362 }, # PsaApiTestIPC_Attest
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300363 'PsaApiTestIPCTfmLevel2_Attest': {
364 "monitors": monitors_psaapitest_by_ut,
365 },
366 'PsaApiTestIPCTfmLevel3_Attest': {
367 "monitors": monitors_psaapitest_by_ut,
368 },
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300369
Matthew Hartfb6fd362020-03-04 21:03:59 +0000370 } # Tests
371}
372
373
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100374# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800375# application: --application cpu0=tfm_s.axf
376# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100377fvp_mps2_an521_nobl2 = {
378 "templ": "fvp_mps2.jinja2",
379 "job_name": "fvp_mps2_an521_nobl2",
Matthew Hartfb6fd362020-03-04 21:03:59 +0000380 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100381 "job_timeout": 15,
382 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800383 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000384 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100385 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800386 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100387 "build_types": ["Debug", "Release", "Minsizerel"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000388 "boot_types": ["NOBL2"],
389 "data_bin_offset": "0x00100000",
Dean Birch1d545c02020-05-29 14:09:21 +0100390 "cpu_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800391 "binaries": {
392 "application": "tfm_s.axf",
393 "data": "tfm_ns.bin"
394 },
Dean Bircha6ede7e2020-03-13 14:00:33 +0000395 "tests": {
396 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800397 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000398 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800399 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800400 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800401 }, # DefaultProfileS
402 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800403 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800404 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800405 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800406 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800407 }, # DefaultProfileL
Dean Bircha6ede7e2020-03-13 14:00:33 +0000408 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800409 "monitors": monitors_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000410 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800411 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800412 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800413 }, # RegressionProfileM
414 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800415 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800416 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800417 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800418 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800419 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100420 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800421 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100422 }, # RegressionIPC
423 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800424 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100425 }, # RegressionIPCTfmLevel2
Karl Zhang3b092ef2020-11-06 16:56:25 +0800426 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800427 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800428 }, # RegressionIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000429 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800430 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000431 }, # CoreIPC
432 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800433 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000434 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800435 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800436 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800437 }, # CoreIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000438 } # Tests
439}
440
Matthew Hart2c2688f2020-05-26 13:09:20 +0100441
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100442# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800443# application: --application cpu0=bl2.axf
444# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100445fvp_mps2_an519_bl2 = {
446 "templ": "fvp_mps2.jinja2",
447 "job_name": "fvp_mps2_an519_bl2",
448 "device_type": "fvp",
449 "job_timeout": 15,
450 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800451 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100452 "poweroff_timeout": 1,
453 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800454 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100455 "build_types": ["Debug", "Release", "Minsizerel"],
456 "boot_types": ["BL2"],
457 "data_bin_offset": "0x10080000",
458 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800459 "binaries": {
460 "application": "bl2.axf",
461 "data": "tfm_s_ns_signed.bin"
462 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100463 "tests": {
464 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800465 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100466 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800467 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800468 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800469 }, # DefaultProfileS
470 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800471 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800472 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100473 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800474 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100475 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800476 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800477 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800478 }, # RegressionProfileM
479 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800480 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800481 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100482 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800483 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100484 }, # Regression
485 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800486 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100487 }, # Regression
488 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800489 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100490 }, # CoreIPC
491 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800492 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100493 }, # CoreIPCTfmLevel2
494 } # Tests
495}
496
497
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100498# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800499# application: --application cpu0=tfm_s.axf
500# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100501fvp_mps2_an519_nobl2 = {
502 "templ": "fvp_mps2.jinja2",
503 "job_name": "fvp_mps2_an519_nobl2",
504 "device_type": "fvp",
505 "job_timeout": 15,
506 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800507 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100508 "poweroff_timeout": 1,
509 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800510 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100511 "build_types": ["Debug", "Release", "Minsizerel"],
512 "boot_types": ["NOBL2"],
513 "data_bin_offset": "0x00100000",
514 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800515 "binaries": {
516 "application": "tfm_s.axf",
517 "data": "tfm_ns.bin"
518 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100519 "tests": {
520 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800521 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100522 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800523 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800524 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800525 }, # DefaultProfileS
526 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800527 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800528 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100529 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800530 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100531 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800532 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800533 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800534 }, # RegressionProfileM
535 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800536 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800537 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100538 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800539 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100540 }, # RegressionIPC
541 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800542 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100543 }, # RegressionIPCTfmLevel2
544 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800545 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100546 }, # CoreIPC
547 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800548 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100549 }, # CoreIPCTfmLevel2
550 } # Tests
551}
552
553
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800554# QEMU for MPS2 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100555qemu_mps2_bl2 = {
556 "templ": "qemu_mps2_bl2.jinja2",
557 "job_name": "qemu_mps2_bl2",
558 "device_type": "qemu",
559 "job_timeout": 300,
560 "action_timeout": 300,
561 "poweroff_timeout": 20,
562 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800563 "compilers": ["GCC", "ARMCLANG"],
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100564 "build_types": ["Debug", "Release"],
565 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800566 "binaries": {
567 "firmware": "tfm_s_ns_signed.bin",
568 "bootloader": "bl2.bin"
569 },
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800570 "tests": {
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800571 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800572 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800573 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800574 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800575 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800576 }, # RegressionProfileS
577 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800578 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800579 }, # Regression
580 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800581 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800582 }, # Regression
583 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800584 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800585 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800586 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100587}
588
589
590# Musca-B1 with BL2 bootloader
591# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
592# srec_cat bin/bl2.bin -Binary -offset 0xA000000 bin/tfm_s_ns_signed.bin -Binary -offset 0xA020000 -o tfm.hex -Intel
Fathi Boudra31225f72020-11-25 13:51:07 +0100593musca_b1_bl2 = {
594 "templ": "musca_b1.jinja2",
595 "job_name": "musca_b1_bl2",
596 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800597 "job_timeout": 40,
598 "action_timeout": 20,
599 "monitor_timeout": 30,
Ryan Harkinf6981082020-12-18 14:54:33 +0000600 "poweroff_timeout": 40,
Fathi Boudra31225f72020-11-25 13:51:07 +0100601 "platforms": {"MUSCA_B1": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800602 "compilers": ["GCC", "ARMCLANG"],
Xinyu Zhang43e5d672021-03-24 16:30:26 +0800603 "build_types": ["Debug", "Release", "Minsizerel"],
Fathi Boudra31225f72020-11-25 13:51:07 +0100604 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800605 "binaries": {
606 "firmware": "tfm.hex",
607 },
Fathi Boudra31225f72020-11-25 13:51:07 +0100608 "tests": {
609 "Default": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800610 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100611 },
612 "CoreIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800613 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100614 },
615 "CoreIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800616 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100617 },
618 "CoreIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800619 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100620 },
621 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800622 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100623 },
624 "DefaultProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800625 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100626 },
627 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800628 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100629 },
630 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800631 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100632 },
633 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800634 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100635 },
636 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800637 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100638 },
639 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800640 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100641 },
642 "RegressionProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800643 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100644 },
645 },
646}
647
Arthur She07c91b52021-07-15 15:03:10 -0700648# STM32L562E-DK
649stm32l562e_dk = {
650 "templ": "stm32l562e_dk.jinja2",
651 "job_name": "stm32l562e_dk",
652 "device_type": "stm32l562e-dk",
653 "job_timeout": 24,
654 "action_timeout": 15,
655 "monitor_timeout": 15,
656 "poweroff_timeout": 5,
657 "platforms": {"stm32l562e_dk": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800658 "compilers": ["GCC", "ARMCLANG"],
Arthur She07c91b52021-07-15 15:03:10 -0700659 "build_types": ["Release", "Minsizerel"],
660 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800661 "binaries": {
662 "tarball": "stm32l562e-dk-tfm.tar.bz2",
663 },
Arthur She07c91b52021-07-15 15:03:10 -0700664 "tests": {
665 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800666 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700667 },
668 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800669 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700670 },
671 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800672 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700673 },
674 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800675 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700676 },
677 },
678}
Xinyu Zhang97114342021-01-21 14:08:03 +0800679
Arthur She3c0dadd2021-11-18 21:17:48 -0800680# LPCxpresso55S69
681lpcxpresso55s69 = {
682 "templ": "lpcxpresso55s69.jinja2",
683 "job_name": "lpcxpresso55s69",
684 "device_type": "lpcxpresso55s69",
685 "job_timeout": 24,
686 "action_timeout": 15,
687 "monitor_timeout": 15,
688 "poweroff_timeout": 5,
689 "platforms": {"lpcxpresso55s69": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800690 "compilers": ["GCC"],
Arthur She3c0dadd2021-11-18 21:17:48 -0800691 "build_types": ["Relwithdebinfo"],
692 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800693 "binaries": {
694 "tarball": "lpcxpresso55s69-tfm.tar.bz2",
695 },
Arthur She3c0dadd2021-11-18 21:17:48 -0800696 "tests": {
697 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800698 "monitors": monitors_no_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800699 },
700 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800701 "monitors": monitors_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800702 },
703 }
704}
705
Arthur She87602dc2022-02-06 14:42:18 -0800706# Cypress PSoC64
707psoc64 = {
708 "templ": "psoc64.jinja2",
709 "job_name": "psoc64",
710 "device_type": "cy8ckit-064s0s2-4343w",
711 "job_timeout": 120,
712 "action_timeout": 120,
713 "monitor_timeout": 120,
714 "poweroff_timeout": 5,
715 "platforms": {"psoc64": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800716 "compilers": ["GCC", "ARMCLANG"],
Arthur She87602dc2022-02-06 14:42:18 -0800717 "build_types": ["Release", "Minsizerel"],
718 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800719 "binaries": {
720 "spe": "tfm_s_signed.hex",
721 "nspe": "tfm_ns_signed.hex",
722 },
Arthur She87602dc2022-02-06 14:42:18 -0800723 "tests": {
724 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800725 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800726 },
727 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800728 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800729 },
730 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800731 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800732 },
733 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800734 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800735 },
736 },
737}
738
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100739# All configurations should be mapped here
Fathi Boudra31225f72020-11-25 13:51:07 +0100740lava_gen_config_map = {
741 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh4fe9b882022-03-30 15:23:47 +0200742 "fvp_mps3_an552_bl2": fvp_mps3_an552_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100743 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
744 "fvp_mps2_an521_nobl2": fvp_mps2_an521_nobl2,
745 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
746 "fvp_mps2_an519_nobl2": fvp_mps2_an519_nobl2,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100747 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100748 "musca_b1": musca_b1_bl2,
Arthur She07c91b52021-07-15 15:03:10 -0700749 "stm32l562e_dk": stm32l562e_dk,
Arthur She3c0dadd2021-11-18 21:17:48 -0800750 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800751 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100752}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100753
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100754lavagen_config_sort_order = [
755 "templ",
756 "job_name",
757 "device_type",
758 "job_timeout",
759 "action_timeout",
760 "monitor_timeout",
761 "recovery_store_url",
762 "artifact_store_url",
763 "platforms",
764 "compilers",
765 "build_types",
766 "boot_types",
767 "tests"
768]
769
770lava_gen_monitor_sort_order = [
771 'name',
772 'start',
773 'end',
774 'pattern',
775 'fixup',
776]
777
778if __name__ == "__main__":
779 import os
780 import sys
781 from lava_helper import sort_lavagen_config
782 try:
783 from tfm_ci_pylib.utils import export_config_map
784 except ImportError:
785 dir_path = os.path.dirname(os.path.realpath(__file__))
786 sys.path.append(os.path.join(dir_path, "../"))
787 from tfm_ci_pylib.utils import export_config_map
788
789 if len(sys.argv) == 2:
790 if sys.argv[1] == "--export":
791 export_config_map(lava_gen_config_map)
792 if len(sys.argv) == 3:
793 if sys.argv[1] == "--export":
794 export_config_map(sort_lavagen_config(lava_gen_config_map),
795 sys.argv[2])