blob: b6c7f1a38335da75f006046b9db54fa3715227d6 [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 Sokolovsky6024d012022-01-22 20:21:07 +0300175 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300176 "monitors": monitors_psaapitest_by_desc,
177 }, # PsaApiTest_Storage
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300178 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300179 "monitors": monitors_psaapitest_by_desc,
180 }, # PsaApiTestIPC_Storage
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300181 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300182 "monitors": monitors_psaapitest_by_ut,
183 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300184 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300185 "monitors": monitors_psaapitest_by_ut,
186 }, # PsaApiTestIPC_Attest
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100187 } # Tests
188}
189
Bence Balogh4fe9b882022-03-30 15:23:47 +0200190# FVP with BL2 bootloader
191# firmware <-> ns <-> application: --application cpu0=bl2.axf
192# bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000
193fvp_mps3_an552_bl2 = {
194 "templ": "fvp_mps3.jinja2",
195 "job_name": "fvp_mps3_an552_bl2",
196 "device_type": "fvp",
197 "job_timeout": 15,
198 "action_timeout": 10,
199 "monitor_timeout": 15,
200 "poweroff_timeout": 1,
201 "platforms": {"AN552": ""},
202 "compilers": ["GCC", "ARMCLANG"],
203 "build_types": ["Debug", "Release"],
204 "boot_types": ["BL2"],
205 "data_bin_offset": "0x01000000",
206 "binaries": {
207 "application": "bl2.axf",
208 "data": "tfm_s_ns_signed.bin"
209 },
210 "tests": {
211 'Default': {
212 "monitors": monitors_no_reg_tests
213 }, # Default
214 'Regression': {
215 "monitors": monitors_reg_tests
216 }, # Regression
217 'RegressionIPC': {
218 "monitors": monitors_reg_tests
219 }, # Regression
220 'RegressionIPCTfmLevel2': {
221 "monitors": monitors_reg_tests
222 }, # Regression
223 'RegressionIPCTfmLevel3': {
224 "monitors": monitors_reg_tests
225 }, # Regression
226 'CoreIPC': {
227 "monitors": monitors_no_reg_tests
228 }, # CoreIPC
229 'CoreIPCTfmLevel2': {
230 "monitors": monitors_no_reg_tests
231 }, # CoreIPCTfmLevel2
232 'CoreIPCTfmLevel3': {
233 "monitors": monitors_no_reg_tests
234 }, # CoreIPCTfmLevel3
235
236 } # Tests
237}
Dean Bircha6ede7e2020-03-13 14:00:33 +0000238
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100239# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800240# application: --application cpu0=bl2.axf
241# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100242fvp_mps2_an521_bl2 = {
243 "templ": "fvp_mps2.jinja2",
244 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000245 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100246 "job_timeout": 15,
247 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800248 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000249 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100250 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800251 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100252 "build_types": ["Debug", "Release", "Minsizerel"],
Dean Bircha6ede7e2020-03-13 14:00:33 +0000253 "boot_types": ["BL2"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000254 "data_bin_offset": "0x10080000",
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800255 "binaries": {
256 "application": "bl2.axf",
257 "data": "tfm_s_ns_signed.bin"
258 },
Matthew Hartfb6fd362020-03-04 21:03:59 +0000259 "tests": {
260 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800261 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000262 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800263 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800264 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800265 }, # DefaultProfileS
266 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800267 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800268 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800269 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800270 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800271 }, # DefaultProfileL
Matthew Hartfb6fd362020-03-04 21:03:59 +0000272 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800273 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100274 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800275 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800276 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800277 }, # RegressionProfileM
278 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800279 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800280 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800281 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800282 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800283 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100284 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800285 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100286 }, # Regression
287 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800288 "monitors": monitors_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000289 }, # Regression
Karl Zhang3b092ef2020-11-06 16:56:25 +0800290 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800291 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800292 }, # Regression
Matthew Hartfb6fd362020-03-04 21:03:59 +0000293 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800294 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000295 }, # CoreIPC
296 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800297 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000298 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800299 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800300 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800301 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300302 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300303 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300304 }, # PsaApiTest_Crypto
Paul Sokolovsky68c86e32022-05-02 16:39:24 +0300305 'PsaApiTestIPC_Crypto': {
306 "monitors": monitors_psaapitest_by_ut,
307 },
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300308 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300309 "monitors": monitors_psaapitest_by_desc,
310 }, # PsaApiTest_Storage
311
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300312 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300313 "monitors": monitors_psaapitest_by_desc,
314 }, # PsaApiTestIPC_Storage
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300315 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300316 "monitors": monitors_psaapitest_by_ut,
317 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300318 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300319 "monitors": monitors_psaapitest_by_ut,
320 }, # PsaApiTestIPC_Attest
321
Matthew Hartfb6fd362020-03-04 21:03:59 +0000322 } # Tests
323}
324
325
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100326# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800327# application: --application cpu0=tfm_s.axf
328# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100329fvp_mps2_an521_nobl2 = {
330 "templ": "fvp_mps2.jinja2",
331 "job_name": "fvp_mps2_an521_nobl2",
Matthew Hartfb6fd362020-03-04 21:03:59 +0000332 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100333 "job_timeout": 15,
334 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800335 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000336 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100337 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800338 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100339 "build_types": ["Debug", "Release", "Minsizerel"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000340 "boot_types": ["NOBL2"],
341 "data_bin_offset": "0x00100000",
Dean Birch1d545c02020-05-29 14:09:21 +0100342 "cpu_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800343 "binaries": {
344 "application": "tfm_s.axf",
345 "data": "tfm_ns.bin"
346 },
Dean Bircha6ede7e2020-03-13 14:00:33 +0000347 "tests": {
348 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800349 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000350 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800351 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800352 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800353 }, # DefaultProfileS
354 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800355 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800356 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800357 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800358 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800359 }, # DefaultProfileL
Dean Bircha6ede7e2020-03-13 14:00:33 +0000360 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800361 "monitors": monitors_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000362 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800363 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800364 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800365 }, # RegressionProfileM
366 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800367 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800368 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800369 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800370 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800371 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100372 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800373 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100374 }, # RegressionIPC
375 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800376 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100377 }, # RegressionIPCTfmLevel2
Karl Zhang3b092ef2020-11-06 16:56:25 +0800378 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800379 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800380 }, # RegressionIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000381 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800382 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000383 }, # CoreIPC
384 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800385 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000386 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800387 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800388 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800389 }, # CoreIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000390 } # Tests
391}
392
Matthew Hart2c2688f2020-05-26 13:09:20 +0100393
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100394# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800395# application: --application cpu0=bl2.axf
396# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100397fvp_mps2_an519_bl2 = {
398 "templ": "fvp_mps2.jinja2",
399 "job_name": "fvp_mps2_an519_bl2",
400 "device_type": "fvp",
401 "job_timeout": 15,
402 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800403 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100404 "poweroff_timeout": 1,
405 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800406 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100407 "build_types": ["Debug", "Release", "Minsizerel"],
408 "boot_types": ["BL2"],
409 "data_bin_offset": "0x10080000",
410 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800411 "binaries": {
412 "application": "bl2.axf",
413 "data": "tfm_s_ns_signed.bin"
414 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100415 "tests": {
416 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800417 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100418 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800419 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800420 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800421 }, # DefaultProfileS
422 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800423 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800424 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100425 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800426 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100427 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800428 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800429 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800430 }, # RegressionProfileM
431 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800432 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800433 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100434 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800435 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100436 }, # Regression
437 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800438 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100439 }, # Regression
440 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800441 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100442 }, # CoreIPC
443 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800444 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100445 }, # CoreIPCTfmLevel2
446 } # Tests
447}
448
449
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100450# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800451# application: --application cpu0=tfm_s.axf
452# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100453fvp_mps2_an519_nobl2 = {
454 "templ": "fvp_mps2.jinja2",
455 "job_name": "fvp_mps2_an519_nobl2",
456 "device_type": "fvp",
457 "job_timeout": 15,
458 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800459 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100460 "poweroff_timeout": 1,
461 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800462 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100463 "build_types": ["Debug", "Release", "Minsizerel"],
464 "boot_types": ["NOBL2"],
465 "data_bin_offset": "0x00100000",
466 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800467 "binaries": {
468 "application": "tfm_s.axf",
469 "data": "tfm_ns.bin"
470 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100471 "tests": {
472 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800473 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100474 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800475 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800476 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800477 }, # DefaultProfileS
478 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800479 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800480 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100481 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800482 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100483 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800484 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800485 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800486 }, # RegressionProfileM
487 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800488 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800489 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100490 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800491 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100492 }, # RegressionIPC
493 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800494 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100495 }, # RegressionIPCTfmLevel2
496 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800497 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100498 }, # CoreIPC
499 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800500 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100501 }, # CoreIPCTfmLevel2
502 } # Tests
503}
504
505
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800506# QEMU for MPS2 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100507qemu_mps2_bl2 = {
508 "templ": "qemu_mps2_bl2.jinja2",
509 "job_name": "qemu_mps2_bl2",
510 "device_type": "qemu",
511 "job_timeout": 300,
512 "action_timeout": 300,
513 "poweroff_timeout": 20,
514 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800515 "compilers": ["GCC", "ARMCLANG"],
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100516 "build_types": ["Debug", "Release"],
517 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800518 "binaries": {
519 "firmware": "tfm_s_ns_signed.bin",
520 "bootloader": "bl2.bin"
521 },
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800522 "tests": {
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800523 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800524 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800525 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800526 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800527 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800528 }, # RegressionProfileS
529 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800530 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800531 }, # Regression
532 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800533 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800534 }, # Regression
535 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800536 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800537 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800538 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100539}
540
541
542# Musca-B1 with BL2 bootloader
543# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
544# 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 +0100545musca_b1_bl2 = {
546 "templ": "musca_b1.jinja2",
547 "job_name": "musca_b1_bl2",
548 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800549 "job_timeout": 40,
550 "action_timeout": 20,
551 "monitor_timeout": 30,
Ryan Harkinf6981082020-12-18 14:54:33 +0000552 "poweroff_timeout": 40,
Fathi Boudra31225f72020-11-25 13:51:07 +0100553 "platforms": {"MUSCA_B1": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800554 "compilers": ["GCC", "ARMCLANG"],
Xinyu Zhang43e5d672021-03-24 16:30:26 +0800555 "build_types": ["Debug", "Release", "Minsizerel"],
Fathi Boudra31225f72020-11-25 13:51:07 +0100556 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800557 "binaries": {
558 "firmware": "tfm.hex",
559 },
Fathi Boudra31225f72020-11-25 13:51:07 +0100560 "tests": {
561 "Default": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800562 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100563 },
564 "CoreIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800565 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100566 },
567 "CoreIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800568 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100569 },
570 "CoreIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800571 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100572 },
573 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800574 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100575 },
576 "DefaultProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800577 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100578 },
579 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800580 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100581 },
582 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800583 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100584 },
585 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800586 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100587 },
588 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800589 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100590 },
591 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800592 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100593 },
594 "RegressionProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800595 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100596 },
597 },
598}
599
Arthur She07c91b52021-07-15 15:03:10 -0700600# STM32L562E-DK
601stm32l562e_dk = {
602 "templ": "stm32l562e_dk.jinja2",
603 "job_name": "stm32l562e_dk",
604 "device_type": "stm32l562e-dk",
605 "job_timeout": 24,
606 "action_timeout": 15,
607 "monitor_timeout": 15,
608 "poweroff_timeout": 5,
609 "platforms": {"stm32l562e_dk": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800610 "compilers": ["GCC", "ARMCLANG"],
Arthur She07c91b52021-07-15 15:03:10 -0700611 "build_types": ["Release", "Minsizerel"],
612 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800613 "binaries": {
614 "tarball": "stm32l562e-dk-tfm.tar.bz2",
615 },
Arthur She07c91b52021-07-15 15:03:10 -0700616 "tests": {
617 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800618 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700619 },
620 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800621 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700622 },
623 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800624 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700625 },
626 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800627 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700628 },
629 },
630}
Xinyu Zhang97114342021-01-21 14:08:03 +0800631
Arthur She3c0dadd2021-11-18 21:17:48 -0800632# LPCxpresso55S69
633lpcxpresso55s69 = {
634 "templ": "lpcxpresso55s69.jinja2",
635 "job_name": "lpcxpresso55s69",
636 "device_type": "lpcxpresso55s69",
637 "job_timeout": 24,
638 "action_timeout": 15,
639 "monitor_timeout": 15,
640 "poweroff_timeout": 5,
641 "platforms": {"lpcxpresso55s69": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800642 "compilers": ["GCC"],
Arthur She3c0dadd2021-11-18 21:17:48 -0800643 "build_types": ["Relwithdebinfo"],
644 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800645 "binaries": {
646 "tarball": "lpcxpresso55s69-tfm.tar.bz2",
647 },
Arthur She3c0dadd2021-11-18 21:17:48 -0800648 "tests": {
649 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800650 "monitors": monitors_no_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800651 },
652 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800653 "monitors": monitors_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800654 },
655 }
656}
657
Arthur She87602dc2022-02-06 14:42:18 -0800658# Cypress PSoC64
659psoc64 = {
660 "templ": "psoc64.jinja2",
661 "job_name": "psoc64",
662 "device_type": "cy8ckit-064s0s2-4343w",
663 "job_timeout": 120,
664 "action_timeout": 120,
665 "monitor_timeout": 120,
666 "poweroff_timeout": 5,
667 "platforms": {"psoc64": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800668 "compilers": ["GCC", "ARMCLANG"],
Arthur She87602dc2022-02-06 14:42:18 -0800669 "build_types": ["Release", "Minsizerel"],
670 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800671 "binaries": {
672 "spe": "tfm_s_signed.hex",
673 "nspe": "tfm_ns_signed.hex",
674 },
Arthur She87602dc2022-02-06 14:42:18 -0800675 "tests": {
676 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800677 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800678 },
679 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800680 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800681 },
682 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800683 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800684 },
685 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800686 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800687 },
688 },
689}
690
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100691# All configurations should be mapped here
Fathi Boudra31225f72020-11-25 13:51:07 +0100692lava_gen_config_map = {
693 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh4fe9b882022-03-30 15:23:47 +0200694 "fvp_mps3_an552_bl2": fvp_mps3_an552_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100695 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
696 "fvp_mps2_an521_nobl2": fvp_mps2_an521_nobl2,
697 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
698 "fvp_mps2_an519_nobl2": fvp_mps2_an519_nobl2,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100699 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100700 "musca_b1": musca_b1_bl2,
Arthur She07c91b52021-07-15 15:03:10 -0700701 "stm32l562e_dk": stm32l562e_dk,
Arthur She3c0dadd2021-11-18 21:17:48 -0800702 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800703 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100704}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100705
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100706lavagen_config_sort_order = [
707 "templ",
708 "job_name",
709 "device_type",
710 "job_timeout",
711 "action_timeout",
712 "monitor_timeout",
713 "recovery_store_url",
714 "artifact_store_url",
715 "platforms",
716 "compilers",
717 "build_types",
718 "boot_types",
719 "tests"
720]
721
722lava_gen_monitor_sort_order = [
723 'name',
724 'start',
725 'end',
726 'pattern',
727 'fixup',
728]
729
730if __name__ == "__main__":
731 import os
732 import sys
733 from lava_helper import sort_lavagen_config
734 try:
735 from tfm_ci_pylib.utils import export_config_map
736 except ImportError:
737 dir_path = os.path.dirname(os.path.realpath(__file__))
738 sys.path.append(os.path.join(dir_path, "../"))
739 from tfm_ci_pylib.utils import export_config_map
740
741 if len(sys.argv) == 2:
742 if sys.argv[1] == "--export":
743 export_config_map(lava_gen_config_map)
744 if len(sys.argv) == 3:
745 if sys.argv[1] == "--export":
746 export_config_map(sort_lavagen_config(lava_gen_config_map),
747 sys.argv[2])