blob: 69ce5c7e7e5f1d565458257109f65fa6891a3778 [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
103
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100104# MPS2 with BL2 bootloader
105# IMAGE0ADDRESS: 0x10000000
106# IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader
107# IMAGE1ADDRESS: 0x10080000
108# IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100109tfm_mps2_sse_200 = {
Matthew Hart2c2688f2020-05-26 13:09:20 +0100110 "templ": "mps2.jinja2",
111 "job_name": "mps2_an521_bl2",
Minos Galanakisafb43152019-09-25 14:17:39 +0100112 "device_type": "mps",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100113 "job_timeout": 15,
114 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800115 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100116 "poweroff_timeout": 1,
117 "recovery_store_url": "https://ci.trustedfirmware.org/userContent/",
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100118 "platforms": {"AN521": "mps2_sse200_an512_new.tar.gz"},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800119 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100120 "build_types": ["Debug", "Release", "Minsizerel"],
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100121 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800122 "binaries": {
123 "firmware": "tfm_s_ns_signed.bin",
124 "bootloader": "bl2.bin"
125 },
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100126 "tests": {
127 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800128 "monitors": monitors_no_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100129 }, # Default
Xinyu Zhang244e1862021-03-12 16:21:54 +0800130 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800131 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800132 }, # DefaultProfileS
133 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800134 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800135 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800136 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800137 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800138 }, # DefaultProfileL
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100139 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800140 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100141 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800142 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800143 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800144 }, # RegressionProfileM
145 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800146 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800147 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800148 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800149 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800150 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100151 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800152 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100153 }, # Regression
154 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800155 "monitors": monitors_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100156 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800157 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800158 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800159 }, # Regression
Minos Galanakisea421232019-06-20 17:11:28 +0100160 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800161 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100162 }, # CoreIPC
163 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800164 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100165 }, # CoreIPCTfmLevel2
Xinyu Zhang244e1862021-03-12 16:21:54 +0800166 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800167 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800168 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300169 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300170 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300171 }, # PsaApiTest_Crypto
Paul Sokolovsky68c86e32022-05-02 16:39:24 +0300172 'PsaApiTestIPC_Crypto': {
173 "monitors": monitors_psaapitest_by_ut,
174 },
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300175 'PsaApiTestIPCTfmLevel2_Crypto': {
176 "monitors": monitors_psaapitest_by_ut,
177 },
178 'PsaApiTestIPCTfmLevel3_Crypto': {
179 "monitors": monitors_psaapitest_by_ut,
180 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300181 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300182 "monitors": monitors_psaapitest_by_desc,
183 }, # PsaApiTest_Storage
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300184 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300185 "monitors": monitors_psaapitest_by_desc,
186 }, # PsaApiTestIPC_Storage
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300187 'PsaApiTestIPCTfmLevel2_STORAGE': {
188 "monitors": monitors_psaapitest_by_desc,
189 },
190 'PsaApiTestIPCTfmLevel3_STORAGE': {
191 "monitors": monitors_psaapitest_by_desc,
192 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300193 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300194 "monitors": monitors_psaapitest_by_ut,
195 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300196 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300197 "monitors": monitors_psaapitest_by_ut,
198 }, # PsaApiTestIPC_Attest
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300199 'PsaApiTestIPCTfmLevel2_Attest': {
200 "monitors": monitors_psaapitest_by_ut,
201 },
202 'PsaApiTestIPCTfmLevel3_Attest': {
203 "monitors": monitors_psaapitest_by_ut,
204 },
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100205 } # Tests
206}
207
Bence Balogh4fe9b882022-03-30 15:23:47 +0200208# FVP with BL2 bootloader
209# firmware <-> ns <-> application: --application cpu0=bl2.axf
210# bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000
211fvp_mps3_an552_bl2 = {
212 "templ": "fvp_mps3.jinja2",
213 "job_name": "fvp_mps3_an552_bl2",
214 "device_type": "fvp",
215 "job_timeout": 15,
216 "action_timeout": 10,
217 "monitor_timeout": 15,
218 "poweroff_timeout": 1,
219 "platforms": {"AN552": ""},
220 "compilers": ["GCC", "ARMCLANG"],
221 "build_types": ["Debug", "Release"],
222 "boot_types": ["BL2"],
223 "data_bin_offset": "0x01000000",
224 "binaries": {
225 "application": "bl2.axf",
226 "data": "tfm_s_ns_signed.bin"
227 },
228 "tests": {
229 'Default': {
230 "monitors": monitors_no_reg_tests
231 }, # Default
232 'Regression': {
233 "monitors": monitors_reg_tests
234 }, # Regression
235 'RegressionIPC': {
236 "monitors": monitors_reg_tests
237 }, # Regression
238 'RegressionIPCTfmLevel2': {
239 "monitors": monitors_reg_tests
240 }, # Regression
241 'RegressionIPCTfmLevel3': {
242 "monitors": monitors_reg_tests
243 }, # Regression
244 'CoreIPC': {
245 "monitors": monitors_no_reg_tests
246 }, # CoreIPC
247 'CoreIPCTfmLevel2': {
248 "monitors": monitors_no_reg_tests
249 }, # CoreIPCTfmLevel2
250 'CoreIPCTfmLevel3': {
251 "monitors": monitors_no_reg_tests
252 }, # CoreIPCTfmLevel3
253
254 } # Tests
255}
Dean Bircha6ede7e2020-03-13 14:00:33 +0000256
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100257# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800258# application: --application cpu0=bl2.axf
259# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100260fvp_mps2_an521_bl2 = {
261 "templ": "fvp_mps2.jinja2",
262 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000263 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100264 "job_timeout": 15,
265 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800266 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000267 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100268 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800269 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100270 "build_types": ["Debug", "Release", "Minsizerel"],
Dean Bircha6ede7e2020-03-13 14:00:33 +0000271 "boot_types": ["BL2"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000272 "data_bin_offset": "0x10080000",
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800273 "binaries": {
274 "application": "bl2.axf",
275 "data": "tfm_s_ns_signed.bin"
276 },
Matthew Hartfb6fd362020-03-04 21:03:59 +0000277 "tests": {
278 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800279 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000280 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800281 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800282 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800283 }, # DefaultProfileS
284 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800285 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800286 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800287 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800288 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800289 }, # DefaultProfileL
Matthew Hartfb6fd362020-03-04 21:03:59 +0000290 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800291 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100292 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800293 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800294 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800295 }, # RegressionProfileM
296 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800297 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800298 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800299 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800300 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800301 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100302 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800303 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100304 }, # Regression
305 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800306 "monitors": monitors_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000307 }, # Regression
Karl Zhang3b092ef2020-11-06 16:56:25 +0800308 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800309 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800310 }, # Regression
Matthew Hartfb6fd362020-03-04 21:03:59 +0000311 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800312 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000313 }, # CoreIPC
314 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800315 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000316 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800317 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800318 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800319 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300320 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300321 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300322 }, # PsaApiTest_Crypto
Paul Sokolovsky68c86e32022-05-02 16:39:24 +0300323 'PsaApiTestIPC_Crypto': {
324 "monitors": monitors_psaapitest_by_ut,
325 },
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300326 'PsaApiTestIPCTfmLevel2_Crypto': {
327 "monitors": monitors_psaapitest_by_ut,
328 },
329 'PsaApiTestIPCTfmLevel3_Crypto': {
330 "monitors": monitors_psaapitest_by_ut,
331 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300332 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300333 "monitors": monitors_psaapitest_by_desc,
334 }, # PsaApiTest_Storage
335
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300336 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300337 "monitors": monitors_psaapitest_by_desc,
338 }, # PsaApiTestIPC_Storage
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300339 'PsaApiTestIPCTfmLevel2_STORAGE': {
340 "monitors": monitors_psaapitest_by_desc,
341 },
342 'PsaApiTestIPCTfmLevel3_STORAGE': {
343 "monitors": monitors_psaapitest_by_desc,
344 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300345 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300346 "monitors": monitors_psaapitest_by_ut,
347 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300348 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300349 "monitors": monitors_psaapitest_by_ut,
350 }, # PsaApiTestIPC_Attest
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300351 'PsaApiTestIPCTfmLevel2_Attest': {
352 "monitors": monitors_psaapitest_by_ut,
353 },
354 'PsaApiTestIPCTfmLevel3_Attest': {
355 "monitors": monitors_psaapitest_by_ut,
356 },
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300357
Matthew Hartfb6fd362020-03-04 21:03:59 +0000358 } # Tests
359}
360
361
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100362# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800363# application: --application cpu0=tfm_s.axf
364# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100365fvp_mps2_an521_nobl2 = {
366 "templ": "fvp_mps2.jinja2",
367 "job_name": "fvp_mps2_an521_nobl2",
Matthew Hartfb6fd362020-03-04 21:03:59 +0000368 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100369 "job_timeout": 15,
370 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800371 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000372 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100373 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800374 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100375 "build_types": ["Debug", "Release", "Minsizerel"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000376 "boot_types": ["NOBL2"],
377 "data_bin_offset": "0x00100000",
Dean Birch1d545c02020-05-29 14:09:21 +0100378 "cpu_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800379 "binaries": {
380 "application": "tfm_s.axf",
381 "data": "tfm_ns.bin"
382 },
Dean Bircha6ede7e2020-03-13 14:00:33 +0000383 "tests": {
384 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800385 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000386 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800387 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800388 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800389 }, # DefaultProfileS
390 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800391 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800392 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800393 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800394 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800395 }, # DefaultProfileL
Dean Bircha6ede7e2020-03-13 14:00:33 +0000396 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800397 "monitors": monitors_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000398 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800399 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800400 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800401 }, # RegressionProfileM
402 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800403 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800404 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800405 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800406 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800407 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100408 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800409 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100410 }, # RegressionIPC
411 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800412 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100413 }, # RegressionIPCTfmLevel2
Karl Zhang3b092ef2020-11-06 16:56:25 +0800414 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800415 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800416 }, # RegressionIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000417 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800418 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000419 }, # CoreIPC
420 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800421 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000422 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800423 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800424 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800425 }, # CoreIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000426 } # Tests
427}
428
Matthew Hart2c2688f2020-05-26 13:09:20 +0100429
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100430# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800431# application: --application cpu0=bl2.axf
432# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100433fvp_mps2_an519_bl2 = {
434 "templ": "fvp_mps2.jinja2",
435 "job_name": "fvp_mps2_an519_bl2",
436 "device_type": "fvp",
437 "job_timeout": 15,
438 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800439 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100440 "poweroff_timeout": 1,
441 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800442 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100443 "build_types": ["Debug", "Release", "Minsizerel"],
444 "boot_types": ["BL2"],
445 "data_bin_offset": "0x10080000",
446 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800447 "binaries": {
448 "application": "bl2.axf",
449 "data": "tfm_s_ns_signed.bin"
450 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100451 "tests": {
452 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800453 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100454 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800455 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800456 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800457 }, # DefaultProfileS
458 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800459 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800460 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100461 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800462 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100463 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800464 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800465 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800466 }, # RegressionProfileM
467 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800468 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800469 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100470 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800471 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100472 }, # Regression
473 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800474 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100475 }, # Regression
476 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800477 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100478 }, # CoreIPC
479 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800480 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100481 }, # CoreIPCTfmLevel2
482 } # Tests
483}
484
485
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100486# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800487# application: --application cpu0=tfm_s.axf
488# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100489fvp_mps2_an519_nobl2 = {
490 "templ": "fvp_mps2.jinja2",
491 "job_name": "fvp_mps2_an519_nobl2",
492 "device_type": "fvp",
493 "job_timeout": 15,
494 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800495 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100496 "poweroff_timeout": 1,
497 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800498 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100499 "build_types": ["Debug", "Release", "Minsizerel"],
500 "boot_types": ["NOBL2"],
501 "data_bin_offset": "0x00100000",
502 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800503 "binaries": {
504 "application": "tfm_s.axf",
505 "data": "tfm_ns.bin"
506 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100507 "tests": {
508 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800509 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100510 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800511 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800512 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800513 }, # DefaultProfileS
514 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800515 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800516 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100517 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800518 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100519 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800520 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800521 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800522 }, # RegressionProfileM
523 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800524 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800525 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100526 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800527 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100528 }, # RegressionIPC
529 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800530 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100531 }, # RegressionIPCTfmLevel2
532 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800533 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100534 }, # CoreIPC
535 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800536 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100537 }, # CoreIPCTfmLevel2
538 } # Tests
539}
540
541
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800542# QEMU for MPS2 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100543qemu_mps2_bl2 = {
544 "templ": "qemu_mps2_bl2.jinja2",
545 "job_name": "qemu_mps2_bl2",
546 "device_type": "qemu",
547 "job_timeout": 300,
548 "action_timeout": 300,
549 "poweroff_timeout": 20,
550 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800551 "compilers": ["GCC", "ARMCLANG"],
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100552 "build_types": ["Debug", "Release"],
553 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800554 "binaries": {
555 "firmware": "tfm_s_ns_signed.bin",
556 "bootloader": "bl2.bin"
557 },
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800558 "tests": {
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800559 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800560 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800561 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800562 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800563 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800564 }, # RegressionProfileS
565 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800566 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800567 }, # Regression
568 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800569 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800570 }, # Regression
571 'RegressionIPCTfmLevel3': {
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 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100575}
576
577
578# Musca-B1 with BL2 bootloader
579# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
580# 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 +0100581musca_b1_bl2 = {
582 "templ": "musca_b1.jinja2",
583 "job_name": "musca_b1_bl2",
584 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800585 "job_timeout": 40,
586 "action_timeout": 20,
587 "monitor_timeout": 30,
Ryan Harkinf6981082020-12-18 14:54:33 +0000588 "poweroff_timeout": 40,
Fathi Boudra31225f72020-11-25 13:51:07 +0100589 "platforms": {"MUSCA_B1": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800590 "compilers": ["GCC", "ARMCLANG"],
Xinyu Zhang43e5d672021-03-24 16:30:26 +0800591 "build_types": ["Debug", "Release", "Minsizerel"],
Fathi Boudra31225f72020-11-25 13:51:07 +0100592 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800593 "binaries": {
594 "firmware": "tfm.hex",
595 },
Fathi Boudra31225f72020-11-25 13:51:07 +0100596 "tests": {
597 "Default": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800598 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100599 },
600 "CoreIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800601 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100602 },
603 "CoreIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800604 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100605 },
606 "CoreIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800607 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100608 },
609 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800610 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100611 },
612 "DefaultProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800613 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100614 },
615 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800616 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100617 },
618 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800619 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100620 },
621 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800622 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100623 },
624 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800625 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100626 },
627 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800628 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100629 },
630 "RegressionProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800631 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100632 },
633 },
634}
635
Arthur She07c91b52021-07-15 15:03:10 -0700636# STM32L562E-DK
637stm32l562e_dk = {
638 "templ": "stm32l562e_dk.jinja2",
639 "job_name": "stm32l562e_dk",
640 "device_type": "stm32l562e-dk",
641 "job_timeout": 24,
642 "action_timeout": 15,
643 "monitor_timeout": 15,
644 "poweroff_timeout": 5,
645 "platforms": {"stm32l562e_dk": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800646 "compilers": ["GCC", "ARMCLANG"],
Arthur She07c91b52021-07-15 15:03:10 -0700647 "build_types": ["Release", "Minsizerel"],
648 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800649 "binaries": {
650 "tarball": "stm32l562e-dk-tfm.tar.bz2",
651 },
Arthur She07c91b52021-07-15 15:03:10 -0700652 "tests": {
653 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800654 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700655 },
656 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800657 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700658 },
659 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800660 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700661 },
662 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800663 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700664 },
665 },
666}
Xinyu Zhang97114342021-01-21 14:08:03 +0800667
Arthur She3c0dadd2021-11-18 21:17:48 -0800668# LPCxpresso55S69
669lpcxpresso55s69 = {
670 "templ": "lpcxpresso55s69.jinja2",
671 "job_name": "lpcxpresso55s69",
672 "device_type": "lpcxpresso55s69",
673 "job_timeout": 24,
674 "action_timeout": 15,
675 "monitor_timeout": 15,
676 "poweroff_timeout": 5,
677 "platforms": {"lpcxpresso55s69": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800678 "compilers": ["GCC"],
Arthur She3c0dadd2021-11-18 21:17:48 -0800679 "build_types": ["Relwithdebinfo"],
680 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800681 "binaries": {
682 "tarball": "lpcxpresso55s69-tfm.tar.bz2",
683 },
Arthur She3c0dadd2021-11-18 21:17:48 -0800684 "tests": {
685 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800686 "monitors": monitors_no_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800687 },
688 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800689 "monitors": monitors_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800690 },
691 }
692}
693
Arthur She87602dc2022-02-06 14:42:18 -0800694# Cypress PSoC64
695psoc64 = {
696 "templ": "psoc64.jinja2",
697 "job_name": "psoc64",
698 "device_type": "cy8ckit-064s0s2-4343w",
699 "job_timeout": 120,
700 "action_timeout": 120,
701 "monitor_timeout": 120,
702 "poweroff_timeout": 5,
703 "platforms": {"psoc64": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800704 "compilers": ["GCC", "ARMCLANG"],
Arthur She87602dc2022-02-06 14:42:18 -0800705 "build_types": ["Release", "Minsizerel"],
706 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800707 "binaries": {
708 "spe": "tfm_s_signed.hex",
709 "nspe": "tfm_ns_signed.hex",
710 },
Arthur She87602dc2022-02-06 14:42:18 -0800711 "tests": {
712 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800713 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800714 },
715 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800716 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800717 },
718 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800719 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800720 },
721 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800722 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800723 },
724 },
725}
726
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100727# All configurations should be mapped here
Fathi Boudra31225f72020-11-25 13:51:07 +0100728lava_gen_config_map = {
729 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh4fe9b882022-03-30 15:23:47 +0200730 "fvp_mps3_an552_bl2": fvp_mps3_an552_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100731 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
732 "fvp_mps2_an521_nobl2": fvp_mps2_an521_nobl2,
733 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
734 "fvp_mps2_an519_nobl2": fvp_mps2_an519_nobl2,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100735 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100736 "musca_b1": musca_b1_bl2,
Arthur She07c91b52021-07-15 15:03:10 -0700737 "stm32l562e_dk": stm32l562e_dk,
Arthur She3c0dadd2021-11-18 21:17:48 -0800738 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800739 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100740}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100741
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100742lavagen_config_sort_order = [
743 "templ",
744 "job_name",
745 "device_type",
746 "job_timeout",
747 "action_timeout",
748 "monitor_timeout",
749 "recovery_store_url",
750 "artifact_store_url",
751 "platforms",
752 "compilers",
753 "build_types",
754 "boot_types",
755 "tests"
756]
757
758lava_gen_monitor_sort_order = [
759 'name',
760 'start',
761 'end',
762 'pattern',
763 'fixup',
764]
765
766if __name__ == "__main__":
767 import os
768 import sys
769 from lava_helper import sort_lavagen_config
770 try:
771 from tfm_ci_pylib.utils import export_config_map
772 except ImportError:
773 dir_path = os.path.dirname(os.path.realpath(__file__))
774 sys.path.append(os.path.join(dir_path, "../"))
775 from tfm_ci_pylib.utils import export_config_map
776
777 if len(sys.argv) == 2:
778 if sys.argv[1] == "--export":
779 export_config_map(lava_gen_config_map)
780 if len(sys.argv) == 3:
781 if sys.argv[1] == "--export":
782 export_config_map(sort_lavagen_config(lava_gen_config_map),
783 sys.argv[2])