blob: eb465df3e44906373a289f62928c44e2713bbcd9 [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
Satish Kumar1cfdd912022-08-01 09:24:07 +010062# LAVA test-monitor definitions 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.
Satish Kumar1cfdd912022-08-01 09:24:07 +010065monitors_ns_reg_tests = [
Xinyu Zhangf724cd22022-03-21 15:46:26 +080066 {
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
Satish Kumar1cfdd912022-08-01 09:24:07 +010074monitors_s_reg_tests = [
75 {
76 'name': 'regression_suite',
77 'start': 'Execute test suites',
78 'end': 'End of Secure test suites',
79 'pattern': r"TEST: (?P<test_case_id>.+?) - (?P<result>(PASSED|FAILED|SKIPPED))",
80 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
81 },
82] # Monitors
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010083
Paul Sokolovsky6024d012022-01-22 20:21:07 +030084# LAVA test-monitor definition for PSA API testsuites, testcases identified
85# by "UT" value in output (testcase identifier).
86monitors_psaapitest_by_ut = [
87 {
88 'name': 'psa_api_suite',
89 'start': 'Running..',
90 'end': 'Entering standby..',
91 'pattern': r" UT: +(?P<test_case_id>[A-Za-z0-9_]+)\r?\n"
92 r".+?"
93 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))",
94 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
95 },
96]
97
98# LAVA test-monitor definition for PSA API testsuites, testcases identified
99# by description in output (for when UT is not set to unique identifier).
100monitors_psaapitest_by_desc = [
101 {
102 'name': 'psa_api_suite',
103 'start': 'Running..',
104 'end': 'Entering standby..',
105 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?) \\|"
106 r".+?"
107 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))",
108 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
109 },
110]
111
Paul Sokolovskye3d2bb12022-06-06 17:04:34 +0300112monitors_psaapitest_ff = [
113 {
114 'name': 'psa_api_suite',
115 'start': 'Running..',
116 'end': 'Entering standby..',
117 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?)\r?\n"
118 r".+"
119 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED|SIM ERROR))",
120 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
121 },
122]
123
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300124
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100125# MPS2 with BL2 bootloader
126# IMAGE0ADDRESS: 0x10000000
127# IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader
128# IMAGE1ADDRESS: 0x10080000
129# IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100130tfm_mps2_sse_200 = {
Matthew Hart2c2688f2020-05-26 13:09:20 +0100131 "templ": "mps2.jinja2",
132 "job_name": "mps2_an521_bl2",
Minos Galanakisafb43152019-09-25 14:17:39 +0100133 "device_type": "mps",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100134 "job_timeout": 15,
135 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800136 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100137 "poweroff_timeout": 1,
138 "recovery_store_url": "https://ci.trustedfirmware.org/userContent/",
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100139 "platforms": {"AN521": "mps2_sse200_an512_new.tar.gz"},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800140 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100141 "build_types": ["Debug", "Release", "Minsizerel"],
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100142 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800143 "binaries": {
144 "firmware": "tfm_s_ns_signed.bin",
145 "bootloader": "bl2.bin"
146 },
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100147 "tests": {
148 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800149 "monitors": monitors_no_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100150 }, # Default
Xinyu Zhang244e1862021-03-12 16:21:54 +0800151 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800152 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800153 }, # DefaultProfileS
154 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800155 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800156 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800157 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800158 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800159 }, # DefaultProfileL
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100160 'Regression': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100161 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100162 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800163 'RegressionProfileM': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100164 "monitors": monitors_ns_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800165 }, # RegressionProfileM
166 'RegressionProfileS': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100167 "monitors": monitors_ns_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800168 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800169 'RegressionProfileL': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100170 "monitors": monitors_ns_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800171 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100172 'RegressionIPC': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100173 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100174 }, # Regression
175 'RegressionIPCTfmLevel2': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100176 "monitors": monitors_ns_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100177 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800178 'RegressionIPCTfmLevel3': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100179 "monitors": monitors_ns_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800180 }, # Regression
Minos Galanakisea421232019-06-20 17:11:28 +0100181 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800182 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100183 }, # CoreIPC
184 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800185 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100186 }, # CoreIPCTfmLevel2
Xinyu Zhang244e1862021-03-12 16:21:54 +0800187 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800188 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800189 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300190 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300191 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300192 }, # PsaApiTest_Crypto
Paul Sokolovsky68c86e32022-05-02 16:39:24 +0300193 'PsaApiTestIPC_Crypto': {
194 "monitors": monitors_psaapitest_by_ut,
195 },
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300196 'PsaApiTestIPCTfmLevel2_Crypto': {
197 "monitors": monitors_psaapitest_by_ut,
198 },
199 'PsaApiTestIPCTfmLevel3_Crypto': {
200 "monitors": monitors_psaapitest_by_ut,
201 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300202 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300203 "monitors": monitors_psaapitest_by_desc,
204 }, # PsaApiTest_Storage
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300205 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300206 "monitors": monitors_psaapitest_by_desc,
207 }, # PsaApiTestIPC_Storage
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300208 'PsaApiTestIPCTfmLevel2_STORAGE': {
209 "monitors": monitors_psaapitest_by_desc,
210 },
211 'PsaApiTestIPCTfmLevel3_STORAGE': {
212 "monitors": monitors_psaapitest_by_desc,
213 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300214 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300215 "monitors": monitors_psaapitest_by_ut,
216 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300217 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300218 "monitors": monitors_psaapitest_by_ut,
219 }, # PsaApiTestIPC_Attest
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300220 'PsaApiTestIPCTfmLevel2_Attest': {
221 "monitors": monitors_psaapitest_by_ut,
222 },
223 'PsaApiTestIPCTfmLevel3_Attest': {
224 "monitors": monitors_psaapitest_by_ut,
225 },
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100226 } # Tests
227}
228
Bence Balogh4fe9b882022-03-30 15:23:47 +0200229# FVP with BL2 bootloader
230# firmware <-> ns <-> application: --application cpu0=bl2.axf
231# bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000
232fvp_mps3_an552_bl2 = {
233 "templ": "fvp_mps3.jinja2",
234 "job_name": "fvp_mps3_an552_bl2",
235 "device_type": "fvp",
236 "job_timeout": 15,
237 "action_timeout": 10,
238 "monitor_timeout": 15,
239 "poweroff_timeout": 1,
240 "platforms": {"AN552": ""},
241 "compilers": ["GCC", "ARMCLANG"],
242 "build_types": ["Debug", "Release"],
243 "boot_types": ["BL2"],
244 "data_bin_offset": "0x01000000",
245 "binaries": {
246 "application": "bl2.axf",
247 "data": "tfm_s_ns_signed.bin"
248 },
249 "tests": {
250 'Default': {
251 "monitors": monitors_no_reg_tests
252 }, # Default
253 'Regression': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100254 "monitors": monitors_ns_reg_tests
Bence Balogh4fe9b882022-03-30 15:23:47 +0200255 }, # Regression
256 'RegressionIPC': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100257 "monitors": monitors_ns_reg_tests
Bence Balogh4fe9b882022-03-30 15:23:47 +0200258 }, # Regression
259 'RegressionIPCTfmLevel2': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100260 "monitors": monitors_ns_reg_tests
Bence Balogh4fe9b882022-03-30 15:23:47 +0200261 }, # Regression
262 'RegressionIPCTfmLevel3': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100263 "monitors": monitors_ns_reg_tests
Bence Balogh4fe9b882022-03-30 15:23:47 +0200264 }, # Regression
265 'CoreIPC': {
266 "monitors": monitors_no_reg_tests
267 }, # CoreIPC
268 'CoreIPCTfmLevel2': {
269 "monitors": monitors_no_reg_tests
270 }, # CoreIPCTfmLevel2
271 'CoreIPCTfmLevel3': {
272 "monitors": monitors_no_reg_tests
273 }, # CoreIPCTfmLevel3
274
275 } # Tests
276}
Dean Bircha6ede7e2020-03-13 14:00:33 +0000277
Satish Kumar1cfdd912022-08-01 09:24:07 +0100278# FVP with BL1 and BL2 bootloader
279fvp_corstone1000 = {
280 "templ": "fvp_corstone1000.jinja2",
281 "job_name": "fvp_corstone1000",
282 "device_type": "fvp",
283 "job_timeout": 15,
284 "action_timeout": 10,
285 "monitor_timeout": 15,
286 "poweroff_timeout": 1,
287 "platforms": {"corstone1000": ""},
288 "compilers": ["GCC"],
289 "build_types": ["Debug"],
290 "boot_types": ["BL2"],
291 "data_bin_offset": "0x68100000",
292 "binaries": {
293 "application": "bl1.bin",
294 "data": "flash.bin"
295 },
296 "tests": {
297 'RegressionIPC': {
298 "monitors": monitors_s_reg_tests
299 }, # Regression
300
301 } # Tests
302}
303
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100304# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800305# application: --application cpu0=bl2.axf
306# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100307fvp_mps2_an521_bl2 = {
308 "templ": "fvp_mps2.jinja2",
309 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000310 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100311 "job_timeout": 15,
312 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800313 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000314 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100315 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800316 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100317 "build_types": ["Debug", "Release", "Minsizerel"],
Dean Bircha6ede7e2020-03-13 14:00:33 +0000318 "boot_types": ["BL2"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000319 "data_bin_offset": "0x10080000",
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800320 "binaries": {
321 "application": "bl2.axf",
322 "data": "tfm_s_ns_signed.bin"
323 },
Matthew Hartfb6fd362020-03-04 21:03:59 +0000324 "tests": {
325 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800326 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000327 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800328 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800329 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800330 }, # DefaultProfileS
331 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800332 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800333 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800334 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800335 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800336 }, # DefaultProfileL
Matthew Hartfb6fd362020-03-04 21:03:59 +0000337 'Regression': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100338 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100339 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800340 'RegressionProfileM': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100341 "monitors": monitors_ns_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800342 }, # RegressionProfileM
343 'RegressionProfileS': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100344 "monitors": monitors_ns_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800345 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800346 'RegressionProfileL': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100347 "monitors": monitors_ns_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800348 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100349 'RegressionIPC': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100350 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100351 }, # Regression
352 'RegressionIPCTfmLevel2': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100353 "monitors": monitors_ns_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000354 }, # Regression
Karl Zhang3b092ef2020-11-06 16:56:25 +0800355 'RegressionIPCTfmLevel3': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100356 "monitors": monitors_ns_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800357 }, # Regression
Matthew Hartfb6fd362020-03-04 21:03:59 +0000358 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800359 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000360 }, # CoreIPC
361 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800362 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000363 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800364 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800365 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800366 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300367 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300368 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300369 }, # PsaApiTest_Crypto
Paul Sokolovsky68c86e32022-05-02 16:39:24 +0300370 'PsaApiTestIPC_Crypto': {
371 "monitors": monitors_psaapitest_by_ut,
372 },
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300373 'PsaApiTestIPCTfmLevel2_Crypto': {
374 "monitors": monitors_psaapitest_by_ut,
375 },
376 'PsaApiTestIPCTfmLevel3_Crypto': {
377 "monitors": monitors_psaapitest_by_ut,
378 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300379 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300380 "monitors": monitors_psaapitest_by_desc,
381 }, # PsaApiTest_Storage
382
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300383 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300384 "monitors": monitors_psaapitest_by_desc,
385 }, # PsaApiTestIPC_Storage
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300386 'PsaApiTestIPCTfmLevel2_STORAGE': {
387 "monitors": monitors_psaapitest_by_desc,
388 },
389 'PsaApiTestIPCTfmLevel3_STORAGE': {
390 "monitors": monitors_psaapitest_by_desc,
391 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300392 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300393 "monitors": monitors_psaapitest_by_ut,
394 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300395 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300396 "monitors": monitors_psaapitest_by_ut,
397 }, # PsaApiTestIPC_Attest
Paul Sokolovsky1d744622022-05-04 23:23:44 +0300398 'PsaApiTestIPCTfmLevel2_Attest': {
399 "monitors": monitors_psaapitest_by_ut,
400 },
401 'PsaApiTestIPCTfmLevel3_Attest': {
402 "monitors": monitors_psaapitest_by_ut,
403 },
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300404
Paul Sokolovsky1cc66422022-07-05 18:30:40 +0300405 'PsaApiTestIPC_FF': {
406 "monitors": monitors_psaapitest_ff,
407 },
408 'PsaApiTestIPCTfmLevel2_FF': {
409 "monitors": monitors_psaapitest_ff,
410 },
411
Matthew Hartfb6fd362020-03-04 21:03:59 +0000412 } # Tests
413}
414
415
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100416# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800417# application: --application cpu0=tfm_s.axf
418# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100419fvp_mps2_an521_nobl2 = {
420 "templ": "fvp_mps2.jinja2",
421 "job_name": "fvp_mps2_an521_nobl2",
Matthew Hartfb6fd362020-03-04 21:03:59 +0000422 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100423 "job_timeout": 15,
424 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800425 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000426 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100427 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800428 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100429 "build_types": ["Debug", "Release", "Minsizerel"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000430 "boot_types": ["NOBL2"],
431 "data_bin_offset": "0x00100000",
Dean Birch1d545c02020-05-29 14:09:21 +0100432 "cpu_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800433 "binaries": {
434 "application": "tfm_s.axf",
435 "data": "tfm_ns.bin"
436 },
Dean Bircha6ede7e2020-03-13 14:00:33 +0000437 "tests": {
438 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800439 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000440 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800441 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800442 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800443 }, # DefaultProfileS
444 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800445 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800446 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800447 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800448 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800449 }, # DefaultProfileL
Dean Bircha6ede7e2020-03-13 14:00:33 +0000450 'Regression': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100451 "monitors": monitors_ns_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000452 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800453 'RegressionProfileM': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100454 "monitors": monitors_ns_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800455 }, # RegressionProfileM
456 'RegressionProfileS': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100457 "monitors": monitors_ns_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800458 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800459 'RegressionProfileL': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100460 "monitors": monitors_ns_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800461 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100462 'RegressionIPC': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100463 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100464 }, # RegressionIPC
465 'RegressionIPCTfmLevel2': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100466 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100467 }, # RegressionIPCTfmLevel2
Karl Zhang3b092ef2020-11-06 16:56:25 +0800468 'RegressionIPCTfmLevel3': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100469 "monitors": monitors_ns_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800470 }, # RegressionIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000471 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800472 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000473 }, # CoreIPC
474 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800475 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000476 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800477 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800478 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800479 }, # CoreIPCTfmLevel3
Paul Sokolovsky1cc66422022-07-05 18:30:40 +0300480
481 'PsaApiTestIPC_FF': {
482 "monitors": monitors_psaapitest_ff,
483 },
484 'PsaApiTestIPCTfmLevel2_FF': {
485 "monitors": monitors_psaapitest_ff,
486 },
487
Dean Bircha6ede7e2020-03-13 14:00:33 +0000488 } # Tests
489}
490
Matthew Hart2c2688f2020-05-26 13:09:20 +0100491
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100492# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800493# application: --application cpu0=bl2.axf
494# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100495fvp_mps2_an519_bl2 = {
496 "templ": "fvp_mps2.jinja2",
497 "job_name": "fvp_mps2_an519_bl2",
498 "device_type": "fvp",
499 "job_timeout": 15,
500 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800501 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100502 "poweroff_timeout": 1,
503 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800504 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100505 "build_types": ["Debug", "Release", "Minsizerel"],
506 "boot_types": ["BL2"],
507 "data_bin_offset": "0x10080000",
508 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800509 "binaries": {
510 "application": "bl2.axf",
511 "data": "tfm_s_ns_signed.bin"
512 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100513 "tests": {
514 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800515 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100516 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800517 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800518 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800519 }, # DefaultProfileS
520 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800521 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800522 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100523 'Regression': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100524 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100525 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800526 'RegressionProfileM': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100527 "monitors": monitors_ns_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800528 }, # RegressionProfileM
529 'RegressionProfileS': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100530 "monitors": monitors_ns_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800531 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100532 'RegressionIPC': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100533 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100534 }, # Regression
535 'RegressionIPCTfmLevel2': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100536 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100537 }, # Regression
538 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800539 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100540 }, # CoreIPC
541 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800542 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100543 }, # CoreIPCTfmLevel2
544 } # Tests
545}
546
547
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100548# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800549# application: --application cpu0=tfm_s.axf
550# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100551fvp_mps2_an519_nobl2 = {
552 "templ": "fvp_mps2.jinja2",
553 "job_name": "fvp_mps2_an519_nobl2",
554 "device_type": "fvp",
555 "job_timeout": 15,
556 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800557 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100558 "poweroff_timeout": 1,
559 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800560 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100561 "build_types": ["Debug", "Release", "Minsizerel"],
562 "boot_types": ["NOBL2"],
563 "data_bin_offset": "0x00100000",
564 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800565 "binaries": {
566 "application": "tfm_s.axf",
567 "data": "tfm_ns.bin"
568 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100569 "tests": {
570 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800571 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100572 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800573 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800574 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800575 }, # DefaultProfileS
576 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800577 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800578 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100579 'Regression': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100580 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100581 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800582 'RegressionProfileM': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100583 "monitors": monitors_ns_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800584 }, # RegressionProfileM
585 'RegressionProfileS': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100586 "monitors": monitors_ns_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800587 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100588 'RegressionIPC': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100589 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100590 }, # RegressionIPC
591 'RegressionIPCTfmLevel2': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100592 "monitors": monitors_ns_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100593 }, # RegressionIPCTfmLevel2
594 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800595 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100596 }, # CoreIPC
597 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800598 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100599 }, # CoreIPCTfmLevel2
600 } # Tests
601}
602
603
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800604# QEMU for MPS2 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100605qemu_mps2_bl2 = {
606 "templ": "qemu_mps2_bl2.jinja2",
607 "job_name": "qemu_mps2_bl2",
608 "device_type": "qemu",
Xinyu Zhangaad0e642022-08-09 14:28:58 +0800609 "job_timeout": 15,
610 "action_timeout": 10,
611 "monitor_timeout": 15,
612 "poweroff_timeout": 1,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100613 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800614 "compilers": ["GCC", "ARMCLANG"],
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100615 "build_types": ["Debug", "Release"],
616 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800617 "binaries": {
618 "firmware": "tfm_s_ns_signed.bin",
619 "bootloader": "bl2.bin"
620 },
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800621 "tests": {
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800622 'Regression': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100623 "monitors": monitors_ns_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800624 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800625 'RegressionProfileS': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100626 "monitors": monitors_ns_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800627 }, # RegressionProfileS
628 'RegressionIPC': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100629 "monitors": monitors_ns_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800630 }, # Regression
631 'RegressionIPCTfmLevel2': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100632 "monitors": monitors_ns_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800633 }, # Regression
634 'RegressionIPCTfmLevel3': {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100635 "monitors": monitors_ns_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800636 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800637 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100638}
639
640
641# Musca-B1 with BL2 bootloader
642# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
643# 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 +0100644musca_b1_bl2 = {
645 "templ": "musca_b1.jinja2",
646 "job_name": "musca_b1_bl2",
647 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800648 "job_timeout": 40,
649 "action_timeout": 20,
650 "monitor_timeout": 30,
Ryan Harkinf6981082020-12-18 14:54:33 +0000651 "poweroff_timeout": 40,
Fathi Boudra31225f72020-11-25 13:51:07 +0100652 "platforms": {"MUSCA_B1": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800653 "compilers": ["GCC", "ARMCLANG"],
Xinyu Zhang43e5d672021-03-24 16:30:26 +0800654 "build_types": ["Debug", "Release", "Minsizerel"],
Fathi Boudra31225f72020-11-25 13:51:07 +0100655 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800656 "binaries": {
657 "firmware": "tfm.hex",
658 },
Fathi Boudra31225f72020-11-25 13:51:07 +0100659 "tests": {
660 "Default": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800661 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100662 },
663 "CoreIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800664 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100665 },
666 "CoreIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800667 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100668 },
669 "CoreIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800670 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100671 },
672 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800673 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100674 },
675 "DefaultProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800676 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100677 },
678 "Regression": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100679 "monitors": monitors_ns_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100680 },
681 "RegressionIPC": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100682 "monitors": monitors_ns_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100683 },
684 "RegressionIPCTfmLevel2": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100685 "monitors": monitors_ns_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100686 },
687 "RegressionIPCTfmLevel3": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100688 "monitors": monitors_ns_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100689 },
690 "RegressionProfileM": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100691 "monitors": monitors_ns_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100692 },
693 "RegressionProfileS": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100694 "monitors": monitors_ns_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100695 },
696 },
697}
698
Arthur She07c91b52021-07-15 15:03:10 -0700699# STM32L562E-DK
700stm32l562e_dk = {
701 "templ": "stm32l562e_dk.jinja2",
702 "job_name": "stm32l562e_dk",
703 "device_type": "stm32l562e-dk",
704 "job_timeout": 24,
705 "action_timeout": 15,
706 "monitor_timeout": 15,
707 "poweroff_timeout": 5,
708 "platforms": {"stm32l562e_dk": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800709 "compilers": ["GCC", "ARMCLANG"],
Arthur She07c91b52021-07-15 15:03:10 -0700710 "build_types": ["Release", "Minsizerel"],
711 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800712 "binaries": {
713 "tarball": "stm32l562e-dk-tfm.tar.bz2",
714 },
Arthur She07c91b52021-07-15 15:03:10 -0700715 "tests": {
716 "Regression": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100717 "monitors": monitors_ns_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700718 },
719 "RegressionIPC": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100720 "monitors": monitors_ns_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700721 },
722 "RegressionIPCTfmLevel2": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100723 "monitors": monitors_ns_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700724 },
725 "RegressionIPCTfmLevel3": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100726 "monitors": monitors_ns_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700727 },
728 },
729}
Xinyu Zhang97114342021-01-21 14:08:03 +0800730
Arthur She3c0dadd2021-11-18 21:17:48 -0800731# LPCxpresso55S69
732lpcxpresso55s69 = {
733 "templ": "lpcxpresso55s69.jinja2",
734 "job_name": "lpcxpresso55s69",
735 "device_type": "lpcxpresso55s69",
736 "job_timeout": 24,
737 "action_timeout": 15,
738 "monitor_timeout": 15,
739 "poweroff_timeout": 5,
740 "platforms": {"lpcxpresso55s69": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800741 "compilers": ["GCC"],
Arthur She3c0dadd2021-11-18 21:17:48 -0800742 "build_types": ["Relwithdebinfo"],
743 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800744 "binaries": {
745 "tarball": "lpcxpresso55s69-tfm.tar.bz2",
746 },
Arthur She3c0dadd2021-11-18 21:17:48 -0800747 "tests": {
748 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800749 "monitors": monitors_no_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800750 },
751 "RegressionProfileM": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100752 "monitors": monitors_ns_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800753 },
754 }
755}
756
Arthur She87602dc2022-02-06 14:42:18 -0800757# Cypress PSoC64
758psoc64 = {
759 "templ": "psoc64.jinja2",
760 "job_name": "psoc64",
761 "device_type": "cy8ckit-064s0s2-4343w",
762 "job_timeout": 120,
763 "action_timeout": 120,
764 "monitor_timeout": 120,
765 "poweroff_timeout": 5,
766 "platforms": {"psoc64": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800767 "compilers": ["GCC", "ARMCLANG"],
Arthur She87602dc2022-02-06 14:42:18 -0800768 "build_types": ["Release", "Minsizerel"],
769 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800770 "binaries": {
771 "spe": "tfm_s_signed.hex",
772 "nspe": "tfm_ns_signed.hex",
773 },
Arthur She87602dc2022-02-06 14:42:18 -0800774 "tests": {
775 "Regression": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100776 "monitors": monitors_ns_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800777 },
778 "RegressionIPC": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100779 "monitors": monitors_ns_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800780 },
781 "RegressionIPCTfmLevel2": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100782 "monitors": monitors_ns_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800783 },
784 "RegressionIPCTfmLevel3": {
Satish Kumar1cfdd912022-08-01 09:24:07 +0100785 "monitors": monitors_ns_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800786 },
787 },
788}
789
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100790# All configurations should be mapped here
Fathi Boudra31225f72020-11-25 13:51:07 +0100791lava_gen_config_map = {
792 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh4fe9b882022-03-30 15:23:47 +0200793 "fvp_mps3_an552_bl2": fvp_mps3_an552_bl2,
Satish Kumar1cfdd912022-08-01 09:24:07 +0100794 "fvp_corstone1000": fvp_corstone1000,
Fathi Boudra31225f72020-11-25 13:51:07 +0100795 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
796 "fvp_mps2_an521_nobl2": fvp_mps2_an521_nobl2,
797 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
798 "fvp_mps2_an519_nobl2": fvp_mps2_an519_nobl2,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100799 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100800 "musca_b1": musca_b1_bl2,
Arthur She07c91b52021-07-15 15:03:10 -0700801 "stm32l562e_dk": stm32l562e_dk,
Arthur She3c0dadd2021-11-18 21:17:48 -0800802 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800803 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100804}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100805
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100806lavagen_config_sort_order = [
807 "templ",
808 "job_name",
809 "device_type",
810 "job_timeout",
811 "action_timeout",
812 "monitor_timeout",
813 "recovery_store_url",
814 "artifact_store_url",
815 "platforms",
816 "compilers",
817 "build_types",
818 "boot_types",
819 "tests"
820]
821
822lava_gen_monitor_sort_order = [
823 'name',
824 'start',
825 'end',
826 'pattern',
827 'fixup',
828]