blob: 0b9bb9ab35aae2eec9c8415bfbb34e58148dbc0d [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.
63# Results of each test suites are parsed from "PASSED"/"FAILED" in logs.
64monitors_reg_tests = [
65 {
66 'name': 'Secure_Test_Suites_Summary',
67 'start': 'Secure test suites summary',
68 'end': 'End of Secure test suites',
69 'pattern': r"Test suite '(?P<"
70 r"test_case_id>[^\n]+)' has(.*) "
71 r"(?P<result>PASSED|FAILED)",
72 'fixup': {"pass": "PASSED", "fail": "FAILED"},
73 },
74 {
75 'name': 'Non_Secure_Test_Suites_Summary',
76 'start': 'Non-secure test suites summary',
77 'end': r'End of Non-secure test suites',
78 'pattern': r"Test suite '(?P<"
79 r"test_case_id>[^\n]+)' has(.*) "
80 r"(?P<result>PASSED|FAILED)",
81 'fixup': {"pass": "PASSED", "fail": "FAILED"},
82 }
83]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010084
Paul Sokolovsky6024d012022-01-22 20:21:07 +030085# LAVA test-monitor definition for PSA API testsuites, testcases identified
86# by "UT" value in output (testcase identifier).
87monitors_psaapitest_by_ut = [
88 {
89 'name': 'psa_api_suite',
90 'start': 'Running..',
91 'end': 'Entering standby..',
92 'pattern': r" UT: +(?P<test_case_id>[A-Za-z0-9_]+)\r?\n"
93 r".+?"
94 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))",
95 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
96 },
97]
98
99# LAVA test-monitor definition for PSA API testsuites, testcases identified
100# by description in output (for when UT is not set to unique identifier).
101monitors_psaapitest_by_desc = [
102 {
103 'name': 'psa_api_suite',
104 'start': 'Running..',
105 'end': 'Entering standby..',
106 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?) \\|"
107 r".+?"
108 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))",
109 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
110 },
111]
112
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300113# LAVA test-monitor definition for PSA API "crypto" testsuite, which has some
114# failing testcases which we don't want to treat as failures, so can't use
115# normal monitors_psaapitest_by_ut. Note that this is a flaky workaround
116# which will break if e.g. a new testcase is added. This issue should be
117# fixed on TF-M side instead
118monitors_psaapitest_crypto_workaround = [
119 {
120 'name': 'psa_api_crypto_workaround',
121 'start': 'Running..',
Xinyu Zhang7b1bc5a2022-04-07 10:35:34 +0800122 'end': r"TOTAL TESTS : 63\r?\n.*?TOTAL PASSED : 61\r?\n",
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300123 'pattern': '__ignored__',
124 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
125 },
126]
127
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300128
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100129# MPS2 with BL2 bootloader
130# IMAGE0ADDRESS: 0x10000000
131# IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader
132# IMAGE1ADDRESS: 0x10080000
133# IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100134tfm_mps2_sse_200 = {
Matthew Hart2c2688f2020-05-26 13:09:20 +0100135 "templ": "mps2.jinja2",
136 "job_name": "mps2_an521_bl2",
Minos Galanakisafb43152019-09-25 14:17:39 +0100137 "device_type": "mps",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100138 "job_timeout": 15,
139 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800140 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100141 "poweroff_timeout": 1,
142 "recovery_store_url": "https://ci.trustedfirmware.org/userContent/",
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100143 "platforms": {"AN521": "mps2_sse200_an512_new.tar.gz"},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800144 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100145 "build_types": ["Debug", "Release", "Minsizerel"],
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100146 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800147 "binaries": {
148 "firmware": "tfm_s_ns_signed.bin",
149 "bootloader": "bl2.bin"
150 },
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100151 "tests": {
152 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800153 "monitors": monitors_no_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100154 }, # Default
Xinyu Zhang244e1862021-03-12 16:21:54 +0800155 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800156 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800157 }, # DefaultProfileS
158 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800159 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800160 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800161 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800162 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800163 }, # DefaultProfileL
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100164 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800165 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100166 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800167 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800168 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800169 }, # RegressionProfileM
170 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800171 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800172 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800173 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800174 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800175 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100176 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800177 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100178 }, # Regression
179 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800180 "monitors": monitors_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100181 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800182 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800183 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800184 }, # Regression
Minos Galanakisea421232019-06-20 17:11:28 +0100185 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800186 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100187 }, # CoreIPC
188 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800189 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100190 }, # CoreIPCTfmLevel2
Xinyu Zhang244e1862021-03-12 16:21:54 +0800191 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800192 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800193 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300194 'PsaApiTest_Crypto': {
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300195 "monitors": monitors_psaapitest_crypto_workaround,
196 }, # PsaApiTest_Crypto
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300197 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300198 "monitors": monitors_psaapitest_by_desc,
199 }, # PsaApiTest_Storage
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300200 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300201 "monitors": monitors_psaapitest_by_desc,
202 }, # PsaApiTestIPC_Storage
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300203 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300204 "monitors": monitors_psaapitest_by_ut,
205 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300206 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300207 "monitors": monitors_psaapitest_by_ut,
208 }, # PsaApiTestIPC_Attest
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100209 } # Tests
210}
211
Dean Bircha6ede7e2020-03-13 14:00:33 +0000212
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100213# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800214# application: --application cpu0=bl2.axf
215# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100216fvp_mps2_an521_bl2 = {
217 "templ": "fvp_mps2.jinja2",
218 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000219 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100220 "job_timeout": 15,
221 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800222 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000223 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100224 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800225 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100226 "build_types": ["Debug", "Release", "Minsizerel"],
Dean Bircha6ede7e2020-03-13 14:00:33 +0000227 "boot_types": ["BL2"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000228 "data_bin_offset": "0x10080000",
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800229 "binaries": {
230 "application": "bl2.axf",
231 "data": "tfm_s_ns_signed.bin"
232 },
Matthew Hartfb6fd362020-03-04 21:03:59 +0000233 "tests": {
234 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800235 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000236 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800237 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800238 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800239 }, # DefaultProfileS
240 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800241 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800242 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800243 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800244 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800245 }, # DefaultProfileL
Matthew Hartfb6fd362020-03-04 21:03:59 +0000246 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800247 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100248 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800249 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800250 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800251 }, # RegressionProfileM
252 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800253 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800254 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800255 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800256 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800257 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100258 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800259 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100260 }, # Regression
261 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800262 "monitors": monitors_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000263 }, # Regression
Karl Zhang3b092ef2020-11-06 16:56:25 +0800264 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800265 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800266 }, # Regression
Matthew Hartfb6fd362020-03-04 21:03:59 +0000267 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800268 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000269 }, # CoreIPC
270 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800271 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000272 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800273 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800274 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800275 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300276 'PsaApiTest_Crypto': {
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300277 "monitors": monitors_psaapitest_crypto_workaround,
278 }, # PsaApiTest_Crypto
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300279 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300280 "monitors": monitors_psaapitest_by_desc,
281 }, # PsaApiTest_Storage
282
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300283 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300284 "monitors": monitors_psaapitest_by_desc,
285 }, # PsaApiTestIPC_Storage
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300286 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300287 "monitors": monitors_psaapitest_by_ut,
288 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300289 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300290 "monitors": monitors_psaapitest_by_ut,
291 }, # PsaApiTestIPC_Attest
292
Matthew Hartfb6fd362020-03-04 21:03:59 +0000293 } # Tests
294}
295
296
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100297# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800298# application: --application cpu0=tfm_s.axf
299# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100300fvp_mps2_an521_nobl2 = {
301 "templ": "fvp_mps2.jinja2",
302 "job_name": "fvp_mps2_an521_nobl2",
Matthew Hartfb6fd362020-03-04 21:03:59 +0000303 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100304 "job_timeout": 15,
305 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800306 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000307 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100308 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800309 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100310 "build_types": ["Debug", "Release", "Minsizerel"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000311 "boot_types": ["NOBL2"],
312 "data_bin_offset": "0x00100000",
Dean Birch1d545c02020-05-29 14:09:21 +0100313 "cpu_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800314 "binaries": {
315 "application": "tfm_s.axf",
316 "data": "tfm_ns.bin"
317 },
Dean Bircha6ede7e2020-03-13 14:00:33 +0000318 "tests": {
319 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800320 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000321 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800322 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800323 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800324 }, # DefaultProfileS
325 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800326 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800327 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800328 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800329 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800330 }, # DefaultProfileL
Dean Bircha6ede7e2020-03-13 14:00:33 +0000331 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800332 "monitors": monitors_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000333 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800334 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800335 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800336 }, # RegressionProfileM
337 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800338 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800339 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800340 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800341 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800342 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100343 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800344 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100345 }, # RegressionIPC
346 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800347 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100348 }, # RegressionIPCTfmLevel2
Karl Zhang3b092ef2020-11-06 16:56:25 +0800349 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800350 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800351 }, # RegressionIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000352 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800353 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000354 }, # CoreIPC
355 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800356 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000357 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800358 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800359 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800360 }, # CoreIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000361 } # Tests
362}
363
Matthew Hart2c2688f2020-05-26 13:09:20 +0100364
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100365# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800366# application: --application cpu0=bl2.axf
367# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100368fvp_mps2_an519_bl2 = {
369 "templ": "fvp_mps2.jinja2",
370 "job_name": "fvp_mps2_an519_bl2",
371 "device_type": "fvp",
372 "job_timeout": 15,
373 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800374 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100375 "poweroff_timeout": 1,
376 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800377 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100378 "build_types": ["Debug", "Release", "Minsizerel"],
379 "boot_types": ["BL2"],
380 "data_bin_offset": "0x10080000",
381 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800382 "binaries": {
383 "application": "bl2.axf",
384 "data": "tfm_s_ns_signed.bin"
385 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100386 "tests": {
387 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800388 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100389 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800390 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800391 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800392 }, # DefaultProfileS
393 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800394 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800395 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100396 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800397 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100398 }, # 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
Matthew Hart2c2688f2020-05-26 13:09:20 +0100405 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800406 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100407 }, # Regression
408 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800409 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100410 }, # Regression
411 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800412 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100413 }, # CoreIPC
414 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800415 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100416 }, # CoreIPCTfmLevel2
417 } # Tests
418}
419
420
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100421# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800422# application: --application cpu0=tfm_s.axf
423# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100424fvp_mps2_an519_nobl2 = {
425 "templ": "fvp_mps2.jinja2",
426 "job_name": "fvp_mps2_an519_nobl2",
427 "device_type": "fvp",
428 "job_timeout": 15,
429 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800430 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100431 "poweroff_timeout": 1,
432 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800433 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100434 "build_types": ["Debug", "Release", "Minsizerel"],
435 "boot_types": ["NOBL2"],
436 "data_bin_offset": "0x00100000",
437 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800438 "binaries": {
439 "application": "tfm_s.axf",
440 "data": "tfm_ns.bin"
441 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100442 "tests": {
443 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800444 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100445 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800446 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800447 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800448 }, # DefaultProfileS
449 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800450 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800451 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100452 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800453 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100454 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800455 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800456 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800457 }, # RegressionProfileM
458 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800459 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800460 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100461 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800462 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100463 }, # RegressionIPC
464 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800465 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100466 }, # RegressionIPCTfmLevel2
467 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800468 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100469 }, # CoreIPC
470 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800471 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100472 }, # CoreIPCTfmLevel2
473 } # Tests
474}
475
476
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800477# QEMU for MPS2 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100478qemu_mps2_bl2 = {
479 "templ": "qemu_mps2_bl2.jinja2",
480 "job_name": "qemu_mps2_bl2",
481 "device_type": "qemu",
482 "job_timeout": 300,
483 "action_timeout": 300,
484 "poweroff_timeout": 20,
485 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800486 "compilers": ["GCC", "ARMCLANG"],
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100487 "build_types": ["Debug", "Release"],
488 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800489 "binaries": {
490 "firmware": "tfm_s_ns_signed.bin",
491 "bootloader": "bl2.bin"
492 },
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800493 "tests": {
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800494 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800495 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800496 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800497 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800498 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800499 }, # RegressionProfileS
500 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800501 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800502 }, # Regression
503 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800504 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800505 }, # Regression
506 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800507 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800508 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800509 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100510}
511
512
513# Musca-B1 with BL2 bootloader
514# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
515# 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 +0100516musca_b1_bl2 = {
517 "templ": "musca_b1.jinja2",
518 "job_name": "musca_b1_bl2",
519 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800520 "job_timeout": 40,
521 "action_timeout": 20,
522 "monitor_timeout": 30,
Ryan Harkinf6981082020-12-18 14:54:33 +0000523 "poweroff_timeout": 40,
Fathi Boudra31225f72020-11-25 13:51:07 +0100524 "platforms": {"MUSCA_B1": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800525 "compilers": ["GCC", "ARMCLANG"],
Xinyu Zhang43e5d672021-03-24 16:30:26 +0800526 "build_types": ["Debug", "Release", "Minsizerel"],
Fathi Boudra31225f72020-11-25 13:51:07 +0100527 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800528 "binaries": {
529 "firmware": "tfm.hex",
530 },
Fathi Boudra31225f72020-11-25 13:51:07 +0100531 "tests": {
532 "Default": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800533 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100534 },
535 "CoreIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800536 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100537 },
538 "CoreIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800539 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100540 },
541 "CoreIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800542 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100543 },
544 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800545 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100546 },
547 "DefaultProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800548 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100549 },
550 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800551 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100552 },
553 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800554 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100555 },
556 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800557 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100558 },
559 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800560 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100561 },
562 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800563 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100564 },
565 "RegressionProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800566 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100567 },
568 },
569}
570
Xinyu Zhang97114342021-01-21 14:08:03 +0800571# Musca-B1 with BL2 bootloader and OTP enabled
572# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
573# srec_cat bin/bl2.bin -Binary -offset 0xA000000 bin/tfm_s_ns_signed.bin -Binary -offset 0xA020000 -o tfm.hex -Intel
574musca_b1_otp_bl2 = {
575 "templ": "musca_b1_otp.jinja2",
576 "job_name": "musca_b1_opt_bl2",
577 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800578 "job_timeout": 40,
579 "action_timeout": 20,
580 "monitor_timeout": 30,
Xinyu Zhang97114342021-01-21 14:08:03 +0800581 "poweroff_timeout": 40,
582 "platforms": {"MUSCA_B1_OTP": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800583 "compilers": ["GCC"],
Xinyu Zhang97114342021-01-21 14:08:03 +0800584 "build_types": ["Debug"],
585 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800586 "binaries": {
587 "firmware": "tfm.hex",
588 },
Xinyu Zhang97114342021-01-21 14:08:03 +0800589 "tests": {
590 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800591 "monitors": monitors_reg_tests
Xinyu Zhang97114342021-01-21 14:08:03 +0800592 },
593 },
594}
595
Arthur She07c91b52021-07-15 15:03:10 -0700596# STM32L562E-DK
597stm32l562e_dk = {
598 "templ": "stm32l562e_dk.jinja2",
599 "job_name": "stm32l562e_dk",
600 "device_type": "stm32l562e-dk",
601 "job_timeout": 24,
602 "action_timeout": 15,
603 "monitor_timeout": 15,
604 "poweroff_timeout": 5,
605 "platforms": {"stm32l562e_dk": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800606 "compilers": ["GCC", "ARMCLANG"],
Arthur She07c91b52021-07-15 15:03:10 -0700607 "build_types": ["Release", "Minsizerel"],
608 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800609 "binaries": {
610 "tarball": "stm32l562e-dk-tfm.tar.bz2",
611 },
Arthur She07c91b52021-07-15 15:03:10 -0700612 "tests": {
613 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800614 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700615 },
616 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800617 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700618 },
619 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800620 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700621 },
622 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800623 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700624 },
625 },
626}
Xinyu Zhang97114342021-01-21 14:08:03 +0800627
Arthur She3c0dadd2021-11-18 21:17:48 -0800628# LPCxpresso55S69
629lpcxpresso55s69 = {
630 "templ": "lpcxpresso55s69.jinja2",
631 "job_name": "lpcxpresso55s69",
632 "device_type": "lpcxpresso55s69",
633 "job_timeout": 24,
634 "action_timeout": 15,
635 "monitor_timeout": 15,
636 "poweroff_timeout": 5,
637 "platforms": {"lpcxpresso55s69": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800638 "compilers": ["GCC"],
Arthur She3c0dadd2021-11-18 21:17:48 -0800639 "build_types": ["Relwithdebinfo"],
640 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800641 "binaries": {
642 "tarball": "lpcxpresso55s69-tfm.tar.bz2",
643 },
Arthur She3c0dadd2021-11-18 21:17:48 -0800644 "tests": {
645 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800646 "monitors": monitors_no_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800647 },
648 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800649 "monitors": monitors_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800650 },
651 }
652}
653
Arthur She87602dc2022-02-06 14:42:18 -0800654# Cypress PSoC64
655psoc64 = {
656 "templ": "psoc64.jinja2",
657 "job_name": "psoc64",
658 "device_type": "cy8ckit-064s0s2-4343w",
659 "job_timeout": 120,
660 "action_timeout": 120,
661 "monitor_timeout": 120,
662 "poweroff_timeout": 5,
663 "platforms": {"psoc64": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800664 "compilers": ["GCC", "ARMCLANG"],
Arthur She87602dc2022-02-06 14:42:18 -0800665 "build_types": ["Release", "Minsizerel"],
666 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800667 "binaries": {
668 "spe": "tfm_s_signed.hex",
669 "nspe": "tfm_ns_signed.hex",
670 },
Arthur She87602dc2022-02-06 14:42:18 -0800671 "tests": {
672 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800673 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800674 },
675 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800676 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800677 },
678 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800679 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800680 },
681 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800682 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800683 },
684 },
685}
686
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100687# All configurations should be mapped here
Fathi Boudra31225f72020-11-25 13:51:07 +0100688lava_gen_config_map = {
689 "mps2_an521_bl2": tfm_mps2_sse_200,
690 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
691 "fvp_mps2_an521_nobl2": fvp_mps2_an521_nobl2,
692 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
693 "fvp_mps2_an519_nobl2": fvp_mps2_an519_nobl2,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100694 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100695 "musca_b1": musca_b1_bl2,
Xinyu Zhang97114342021-01-21 14:08:03 +0800696 "musca_b1_otp": musca_b1_otp_bl2,
Arthur She07c91b52021-07-15 15:03:10 -0700697 "stm32l562e_dk": stm32l562e_dk,
Arthur She3c0dadd2021-11-18 21:17:48 -0800698 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800699 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100700}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100701
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100702lavagen_config_sort_order = [
703 "templ",
704 "job_name",
705 "device_type",
706 "job_timeout",
707 "action_timeout",
708 "monitor_timeout",
709 "recovery_store_url",
710 "artifact_store_url",
711 "platforms",
712 "compilers",
713 "build_types",
714 "boot_types",
715 "tests"
716]
717
718lava_gen_monitor_sort_order = [
719 'name',
720 'start',
721 'end',
722 'pattern',
723 'fixup',
724]
725
726if __name__ == "__main__":
727 import os
728 import sys
729 from lava_helper import sort_lavagen_config
730 try:
731 from tfm_ci_pylib.utils import export_config_map
732 except ImportError:
733 dir_path = os.path.dirname(os.path.realpath(__file__))
734 sys.path.append(os.path.join(dir_path, "../"))
735 from tfm_ci_pylib.utils import export_config_map
736
737 if len(sys.argv) == 2:
738 if sys.argv[1] == "--export":
739 export_config_map(lava_gen_config_map)
740 if len(sys.argv) == 3:
741 if sys.argv[1] == "--export":
742 export_config_map(sort_lavagen_config(lava_gen_config_map),
743 sys.argv[2])