Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | """ lava_job_generator_configs.py: |
| 4 | |
| 5 | Default configurations for lava job generator """ |
| 6 | |
| 7 | from __future__ import print_function |
| 8 | |
| 9 | __copyright__ = """ |
| 10 | /* |
Xinyu Zhang | 04d7747 | 2022-03-21 14:37:37 +0800 | [diff] [blame^] | 11 | * Copyright (c) 2018-2022, Arm Limited. All rights reserved. |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 12 | * |
| 13 | * SPDX-License-Identifier: BSD-3-Clause |
| 14 | * |
| 15 | */ |
| 16 | """ |
Karl Zhang | 08681e6 | 2020-10-30 13:56:03 +0800 | [diff] [blame] | 17 | |
| 18 | __author__ = "tf-m@lists.trustedfirmware.org" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 19 | __project__ = "Trusted Firmware-M Open CI" |
Xinyu Zhang | 06286a9 | 2021-07-22 14:00:51 +0800 | [diff] [blame] | 20 | __version__ = "1.4.0" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 21 | |
Leonardo Sandoval | 66386a2 | 2021-04-15 14:35:08 -0500 | [diff] [blame] | 22 | tf_downloads="https://downloads.trustedfirmware.org" |
| 23 | coverage_trace_plugin=tf_downloads + "/coverage-plugin/qa-tools/coverage-tool/coverage-plugin/coverage_trace.so" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 24 | |
| 25 | def 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 Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 39 | if not core: |
| 40 | tests.pop("CoreIPC") |
| 41 | tests.pop("CoreIPCTfmLevel2") |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 42 | tests.pop("CoreIPCTfmLevel3") |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 43 | if not regression: |
| 44 | tests.pop("Regression") |
| 45 | |
| 46 | cfg["tests"] = tests |
| 47 | return cfg |
| 48 | |
| 49 | |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 50 | # LAVA test-monitor definition for PSA API testsuites, testcases identified |
| 51 | # by "UT" value in output (testcase identifier). |
| 52 | monitors_psaapitest_by_ut = [ |
| 53 | { |
| 54 | 'name': 'psa_api_suite', |
| 55 | 'start': 'Running..', |
| 56 | 'end': 'Entering standby..', |
| 57 | 'pattern': r" UT: +(?P<test_case_id>[A-Za-z0-9_]+)\r?\n" |
| 58 | r".+?" |
| 59 | r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))", |
| 60 | 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"}, |
| 61 | }, |
| 62 | ] |
| 63 | |
| 64 | # LAVA test-monitor definition for PSA API testsuites, testcases identified |
| 65 | # by description in output (for when UT is not set to unique identifier). |
| 66 | monitors_psaapitest_by_desc = [ |
| 67 | { |
| 68 | 'name': 'psa_api_suite', |
| 69 | 'start': 'Running..', |
| 70 | 'end': 'Entering standby..', |
| 71 | 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?) \\|" |
| 72 | r".+?" |
| 73 | r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))", |
| 74 | 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"}, |
| 75 | }, |
| 76 | ] |
| 77 | |
Paul Sokolovsky | 7eae975 | 2022-02-09 21:38:55 +0300 | [diff] [blame] | 78 | # LAVA test-monitor definition for PSA API "crypto" testsuite, which has some |
| 79 | # failing testcases which we don't want to treat as failures, so can't use |
| 80 | # normal monitors_psaapitest_by_ut. Note that this is a flaky workaround |
| 81 | # which will break if e.g. a new testcase is added. This issue should be |
| 82 | # fixed on TF-M side instead |
| 83 | monitors_psaapitest_crypto_workaround = [ |
| 84 | { |
| 85 | 'name': 'psa_api_crypto_workaround', |
| 86 | 'start': 'Running..', |
| 87 | 'end': r"TOTAL TESTS : 63\r?\n.*?TOTAL PASSED : 51\r?\n", |
| 88 | 'pattern': '__ignored__', |
| 89 | 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"}, |
| 90 | }, |
| 91 | ] |
| 92 | |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 93 | |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 94 | # MPS2 with BL2 bootloader |
| 95 | # IMAGE0ADDRESS: 0x10000000 |
| 96 | # IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader |
| 97 | # IMAGE1ADDRESS: 0x10080000 |
| 98 | # IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 99 | tfm_mps2_sse_200 = { |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 100 | "templ": "mps2.jinja2", |
| 101 | "job_name": "mps2_an521_bl2", |
Minos Galanakis | afb4315 | 2019-09-25 14:17:39 +0100 | [diff] [blame] | 102 | "device_type": "mps", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 103 | "job_timeout": 15, |
| 104 | "action_timeout": 10, |
Xinyu Zhang | d8703f0 | 2021-05-18 20:30:07 +0800 | [diff] [blame] | 105 | "monitor_timeout": 15, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 106 | "poweroff_timeout": 1, |
| 107 | "recovery_store_url": "https://ci.trustedfirmware.org/userContent/", |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 108 | "platforms": {"AN521": "mps2_sse200_an512_new.tar.gz"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 109 | "compilers": ["GNUARM", "ARMCLANG"], |
| 110 | "build_types": ["Debug", "Release", "Minsizerel"], |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 111 | "boot_types": ["BL2"], |
| 112 | "tests": { |
| 113 | 'Default': { |
| 114 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 115 | "firmware": "tfm_s_ns_signed.bin", |
| 116 | "bootloader": "bl2.bin" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 117 | }, |
| 118 | "monitors": [ |
| 119 | { |
| 120 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 121 | 'start': 'Non-Secure system', |
| 122 | 'end': r'starting\\.{3}', |
| 123 | 'pattern': r'Non-Secure system starting\\.{3}', |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 124 | 'fixup': {"pass": "!", "fail": ""}, |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 125 | } # Monitors |
| 126 | ] |
| 127 | }, # Default |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 128 | 'DefaultProfileS': { |
| 129 | "binaries": { |
| 130 | "firmware": "tfm_s_ns_signed.bin", |
| 131 | "bootloader": "bl2.bin" |
| 132 | }, |
| 133 | "monitors": [ |
| 134 | { |
| 135 | 'name': 'Secure_Test_Suites_Summary', |
| 136 | 'start': 'Non-Secure system', |
| 137 | 'end': r'starting\\.{3}', |
| 138 | 'pattern': r'Non-Secure system starting\\.{3}', |
| 139 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 140 | } # Monitors |
| 141 | ] |
| 142 | }, # DefaultProfileS |
| 143 | 'DefaultProfileM': { |
| 144 | "binaries": { |
| 145 | "firmware": "tfm_s_ns_signed.bin", |
| 146 | "bootloader": "bl2.bin" |
| 147 | }, |
| 148 | "monitors": [ |
| 149 | { |
| 150 | 'name': 'Secure_Test_Suites_Summary', |
| 151 | 'start': 'Non-Secure system', |
| 152 | 'end': r'starting\\.{3}', |
| 153 | 'pattern': r'Non-Secure system starting\\.{3}', |
| 154 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 155 | } # Monitors |
| 156 | ] |
| 157 | }, # DefaultProfileM |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 158 | 'DefaultProfileL': { |
| 159 | "binaries": { |
| 160 | "firmware": "tfm_s_ns_signed.bin", |
| 161 | "bootloader": "bl2.bin" |
| 162 | }, |
| 163 | "monitors": [ |
| 164 | { |
| 165 | 'name': 'Secure_Test_Suites_Summary', |
| 166 | 'start': 'Non-Secure system', |
| 167 | 'end': r'starting\\.{3}', |
| 168 | 'pattern': r'Non-Secure system starting\\.{3}', |
| 169 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 170 | } # Monitors |
| 171 | ] |
| 172 | }, # DefaultProfileL |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 173 | |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 174 | 'Regression': { |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 175 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 176 | "firmware": "tfm_s_ns_signed.bin", |
| 177 | "bootloader": "bl2.bin" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 178 | }, |
| 179 | "monitors": [ |
| 180 | { |
| 181 | 'name': 'Secure_Test_Suites_Summary', |
| 182 | 'start': 'Secure test suites summary', |
| 183 | 'end': 'End of Secure test suites', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 184 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 185 | r"test_case_id>[^\n]+)' has(.*) " |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 186 | r"(?P<result>PASSED|FAILED)", |
| 187 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 188 | }, |
| 189 | { |
| 190 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 191 | 'start': 'Non-secure test suites summary', |
| 192 | 'end': r'End of Non-secure test suites', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 193 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 194 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 195 | r"(?P<result>PASSED|FAILED)", |
| 196 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 197 | } |
| 198 | ] # Monitors |
| 199 | }, # Regression |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 200 | |
| 201 | 'RegressionProfileM': { |
| 202 | "binaries": { |
| 203 | "firmware": "tfm_s_ns_signed.bin", |
| 204 | "bootloader": "bl2.bin" |
| 205 | }, |
| 206 | "monitors": [ |
| 207 | { |
| 208 | 'name': 'Secure_Test_Suites_Summary', |
| 209 | 'start': 'Secure test suites summary', |
| 210 | 'end': 'End of Secure test suites', |
| 211 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 212 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 213 | r"(?P<result>PASSED|FAILED)", |
| 214 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 215 | }, |
| 216 | { |
| 217 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 218 | 'start': 'Non-secure test suites summary', |
| 219 | 'end': r'End of Non-secure test suites', |
| 220 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 221 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 222 | r"(?P<result>PASSED|FAILED)", |
| 223 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 224 | } |
| 225 | ] # Monitors |
| 226 | }, # RegressionProfileM |
| 227 | 'RegressionProfileS': { |
| 228 | "binaries": { |
| 229 | "firmware": "tfm_s_ns_signed.bin", |
| 230 | "bootloader": "bl2.bin" |
| 231 | }, |
| 232 | "monitors": [ |
| 233 | { |
| 234 | 'name': 'Secure_Test_Suites_Summary', |
| 235 | 'start': 'Secure test suites summary', |
| 236 | 'end': 'End of Secure test suites', |
| 237 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 238 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 239 | r"(?P<result>PASSED|FAILED)", |
| 240 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 241 | }, |
| 242 | { |
| 243 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 244 | 'start': 'Non-secure test suites summary', |
| 245 | 'end': r'End of Non-secure test suites', |
| 246 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 247 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 248 | r"(?P<result>PASSED|FAILED)", |
| 249 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 250 | } |
| 251 | ] # Monitors |
| 252 | }, # RegressionProfileS |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 253 | 'RegressionProfileL': { |
| 254 | "binaries": { |
| 255 | "firmware": "tfm_s_ns_signed.bin", |
| 256 | "bootloader": "bl2.bin" |
| 257 | }, |
| 258 | "monitors": [ |
| 259 | { |
| 260 | 'name': 'Secure_Test_Suites_Summary', |
| 261 | 'start': 'Secure test suites summary', |
| 262 | 'end': 'End of Secure test suites', |
| 263 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 264 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 265 | r"(?P<result>PASSED|FAILED)", |
| 266 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 267 | }, |
| 268 | { |
| 269 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 270 | 'start': 'Non-secure test suites summary', |
| 271 | 'end': r'End of Non-secure test suites', |
| 272 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 273 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 274 | r"(?P<result>PASSED|FAILED)", |
| 275 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 276 | } |
| 277 | ] # Monitors |
| 278 | }, # RegressionProfileL |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 279 | |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 280 | 'RegressionIPC': { |
| 281 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 282 | "firmware": "tfm_s_ns_signed.bin", |
| 283 | "bootloader": "bl2.bin" |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 284 | }, |
| 285 | "monitors": [ |
| 286 | { |
| 287 | 'name': 'Secure_Test_Suites_Summary', |
| 288 | 'start': 'Secure test suites summary', |
| 289 | 'end': 'End of Secure test suites', |
| 290 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 291 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 292 | r"(?P<result>PASSED|FAILED)", |
| 293 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 294 | }, |
| 295 | { |
| 296 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 297 | 'start': 'Non-secure test suites summary', |
| 298 | 'end': r'End of Non-secure test suites', |
| 299 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 300 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 301 | r"(?P<result>PASSED|FAILED)", |
| 302 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 303 | } |
| 304 | ] # Monitors |
| 305 | }, # Regression |
| 306 | 'RegressionIPCTfmLevel2': { |
| 307 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 308 | "firmware": "tfm_s_ns_signed.bin", |
| 309 | "bootloader": "bl2.bin" |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 310 | }, |
| 311 | "monitors": [ |
| 312 | { |
| 313 | 'name': 'Secure_Test_Suites_Summary', |
| 314 | 'start': 'Secure test suites summary', |
| 315 | 'end': 'End of Secure test suites', |
| 316 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 317 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 318 | r"(?P<result>PASSED|FAILED)", |
| 319 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 320 | }, |
| 321 | { |
| 322 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 323 | 'start': 'Non-secure test suites summary', |
| 324 | 'end': r'End of Non-secure test suites', |
| 325 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 326 | r"test_case_id>[^\n]+)' has(.*) " |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 327 | r"(?P<result>PASSED|FAILED)", |
| 328 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 329 | } |
| 330 | ] # Monitors |
| 331 | }, # Regression |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 332 | 'RegressionIPCTfmLevel3': { |
| 333 | "binaries": { |
| 334 | "firmware": "tfm_s_ns_signed.bin", |
| 335 | "bootloader": "bl2.bin" |
| 336 | }, |
| 337 | "monitors": [ |
| 338 | { |
| 339 | 'name': 'Secure_Test_Suites_Summary', |
| 340 | 'start': 'Secure test suites summary', |
| 341 | 'end': 'End of Secure test suites', |
| 342 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 343 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 344 | r"(?P<result>PASSED|FAILED)", |
| 345 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 346 | }, |
| 347 | { |
| 348 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 349 | 'start': 'Non-secure test suites summary', |
| 350 | 'end': r'End of Non-secure test suites', |
| 351 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 352 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 353 | r"(?P<result>PASSED|FAILED)", |
| 354 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 355 | } |
| 356 | ] # Monitors |
| 357 | }, # Regression |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 358 | 'CoreIPC': { |
| 359 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 360 | "firmware": "tfm_s_ns_signed.bin", |
| 361 | "bootloader": "bl2.bin" |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 362 | }, |
| 363 | "monitors": [ |
| 364 | { |
| 365 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 366 | 'start': 'Non-Secure system', |
| 367 | 'end': r'starting\\.{3}', |
| 368 | 'pattern': r'Non-Secure system starting\\.{3}', |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 369 | 'fixup': {"pass": "!", "fail": ""}, |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 370 | } # Monitors |
| 371 | ] |
| 372 | }, # CoreIPC |
| 373 | 'CoreIPCTfmLevel2': { |
| 374 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 375 | "firmware": "tfm_s_ns_signed.bin", |
| 376 | "bootloader": "bl2.bin" |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 377 | }, |
| 378 | "monitors": [ |
| 379 | { |
| 380 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 381 | 'start': 'Non-Secure system', |
| 382 | 'end': r'starting\\.{3}', |
| 383 | 'pattern': r'Non-Secure system starting\\.{3}', |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 384 | 'fixup': {"pass": "!", "fail": ""}, |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 385 | } # Monitors |
| 386 | ] |
| 387 | }, # CoreIPCTfmLevel2 |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 388 | 'CoreIPCTfmLevel3': { |
| 389 | "binaries": { |
| 390 | "firmware": "tfm_s_ns_signed.bin", |
| 391 | "bootloader": "bl2.bin" |
| 392 | }, |
| 393 | "monitors": [ |
| 394 | { |
| 395 | 'name': 'Secure_Test_Suites_Summary', |
| 396 | 'start': 'Non-Secure system', |
| 397 | 'end': r'starting\\.{3}', |
| 398 | 'pattern': r'Non-Secure system starting\\.{3}', |
| 399 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 244e186 | 2021-03-12 16:21:54 +0800 | [diff] [blame] | 400 | } # Monitors |
| 401 | ] |
| 402 | }, # CoreIPCTfmLevel3 |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 403 | |
Paul Sokolovsky | 7eae975 | 2022-02-09 21:38:55 +0300 | [diff] [blame] | 404 | 'PsaApiTest_Crypto': { |
| 405 | "binaries": { |
| 406 | "firmware": "tfm_s_ns_signed.bin", |
| 407 | "bootloader": "bl2.bin" |
| 408 | }, |
| 409 | "monitors": monitors_psaapitest_crypto_workaround, |
| 410 | }, # PsaApiTest_Crypto |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 411 | |
| 412 | 'PsaApiTest_STORAGE': { |
| 413 | "binaries": { |
| 414 | "firmware": "tfm_s_ns_signed.bin", |
| 415 | "bootloader": "bl2.bin" |
| 416 | }, |
| 417 | "monitors": monitors_psaapitest_by_desc, |
| 418 | }, # PsaApiTest_Storage |
| 419 | |
Paul Sokolovsky | 0c82ae2 | 2022-02-16 20:01:10 +0300 | [diff] [blame] | 420 | 'PsaApiTestIPC_STORAGE': { |
| 421 | "binaries": { |
| 422 | "firmware": "tfm_s_ns_signed.bin", |
| 423 | "bootloader": "bl2.bin" |
| 424 | }, |
| 425 | "monitors": monitors_psaapitest_by_desc, |
| 426 | }, # PsaApiTestIPC_Storage |
| 427 | |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 428 | 'PsaApiTest_Attest': { |
| 429 | "binaries": { |
| 430 | "firmware": "tfm_s_ns_signed.bin", |
| 431 | "bootloader": "bl2.bin" |
| 432 | }, |
| 433 | "monitors": monitors_psaapitest_by_ut, |
| 434 | }, # PsaApiTest_Attest |
| 435 | |
Paul Sokolovsky | 46ff531 | 2022-02-16 20:23:01 +0300 | [diff] [blame] | 436 | 'PsaApiTestIPC_Attest': { |
| 437 | "binaries": { |
| 438 | "firmware": "tfm_s_ns_signed.bin", |
| 439 | "bootloader": "bl2.bin" |
| 440 | }, |
| 441 | "monitors": monitors_psaapitest_by_ut, |
| 442 | }, # PsaApiTestIPC_Attest |
| 443 | |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 444 | } # Tests |
| 445 | } |
| 446 | |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 447 | |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 448 | # FVP with BL2 bootloader |
| 449 | # firmware <-> ns <-> application: --application cpu0=bl2.axf |
| 450 | # bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x10080000 |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 451 | fvp_mps2_an521_bl2 = { |
| 452 | "templ": "fvp_mps2.jinja2", |
| 453 | "job_name": "fvp_mps2_an521_bl2", |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 454 | "device_type": "fvp", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 455 | "job_timeout": 15, |
| 456 | "action_timeout": 10, |
Xinyu Zhang | d8703f0 | 2021-05-18 20:30:07 +0800 | [diff] [blame] | 457 | "monitor_timeout": 15, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 458 | "poweroff_timeout": 1, |
Dean Birch | 1d545c0 | 2020-05-29 14:09:21 +0100 | [diff] [blame] | 459 | "platforms": {"AN521": ""}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 460 | "compilers": ["GNUARM", "ARMCLANG"], |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 461 | "build_types": ["Debug", "Release", "Minsizerel"], |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 462 | "boot_types": ["BL2"], |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 463 | "data_bin_offset": "0x10080000", |
| 464 | "tests": { |
| 465 | 'Default': { |
| 466 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 467 | "firmware": "bl2.axf", |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 468 | "bootloader": "tfm_s_ns_signed.bin" |
| 469 | }, |
| 470 | "monitors": [ |
| 471 | { |
| 472 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 473 | 'start': 'Non-Secure system', |
| 474 | 'end': r'starting\\.{3}', |
| 475 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 476 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 477 | } # Monitors |
| 478 | ] |
| 479 | }, # Default |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 480 | 'DefaultProfileS': { |
| 481 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 482 | "firmware": "bl2.axf", |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 483 | "bootloader": "tfm_s_ns_signed.bin" |
| 484 | }, |
| 485 | "monitors": [ |
| 486 | { |
| 487 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 488 | 'start': 'Non-Secure system', |
| 489 | 'end': r'starting\\.{3}', |
| 490 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 491 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 492 | } # Monitors |
| 493 | ] |
| 494 | }, # DefaultProfileS |
| 495 | 'DefaultProfileM': { |
| 496 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 497 | "firmware": "bl2.axf", |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 498 | "bootloader": "tfm_s_ns_signed.bin" |
| 499 | }, |
| 500 | "monitors": [ |
| 501 | { |
| 502 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 503 | 'start': 'Non-Secure system', |
| 504 | 'end': r'starting\\.{3}', |
| 505 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 506 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 507 | } # Monitors |
| 508 | ] |
| 509 | }, # DefaultProfileM |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 510 | 'DefaultProfileL': { |
| 511 | "binaries": { |
| 512 | "firmware": "bl2.axf", |
| 513 | "bootloader": "tfm_s_ns_signed.bin" |
| 514 | }, |
| 515 | "monitors": [ |
| 516 | { |
| 517 | 'name': 'Secure_Test_Suites_Summary', |
| 518 | 'start': 'Non-Secure system', |
| 519 | 'end': r'starting\\.{3}', |
| 520 | 'pattern': r'Non-Secure system starting\\.{3}', |
| 521 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 522 | } # Monitors |
| 523 | ] |
| 524 | }, # DefaultProfileL |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 525 | |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 526 | 'Regression': { |
| 527 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 528 | "firmware": "bl2.axf", |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 529 | "bootloader": "tfm_s_ns_signed.bin" |
| 530 | }, |
| 531 | "monitors": [ |
| 532 | { |
| 533 | 'name': 'Secure_Test_Suites_Summary', |
| 534 | 'start': 'Secure test suites summary', |
| 535 | 'end': 'End of Secure test suites', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 536 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 537 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 538 | r"(?P<result>PASSED|FAILED)", |
| 539 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 540 | }, |
| 541 | { |
| 542 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 543 | 'start': 'Non-secure test suites summary', |
| 544 | 'end': r'End of Non-secure test suites', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 545 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 546 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 547 | r"(?P<result>PASSED|FAILED)", |
| 548 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 549 | } |
| 550 | ] # Monitors |
| 551 | }, # Regression |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 552 | |
| 553 | 'RegressionProfileM': { |
| 554 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 555 | "firmware": "bl2.axf", |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 556 | "bootloader": "tfm_s_ns_signed.bin" |
| 557 | }, |
| 558 | "monitors": [ |
| 559 | { |
| 560 | 'name': 'Secure_Test_Suites_Summary', |
| 561 | 'start': 'Secure test suites summary', |
| 562 | 'end': 'End of Secure test suites', |
| 563 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 564 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 565 | r"(?P<result>PASSED|FAILED)", |
| 566 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 567 | }, |
| 568 | { |
| 569 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 570 | 'start': 'Non-secure test suites summary', |
| 571 | 'end': r'End of Non-secure test suites', |
| 572 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 573 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 574 | r"(?P<result>PASSED|FAILED)", |
| 575 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 576 | } |
| 577 | ] # Monitors |
| 578 | }, # RegressionProfileM |
| 579 | 'RegressionProfileS': { |
| 580 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 581 | "firmware": "bl2.axf", |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 582 | "bootloader": "tfm_s_ns_signed.bin" |
| 583 | }, |
| 584 | "monitors": [ |
| 585 | { |
| 586 | 'name': 'Secure_Test_Suites_Summary', |
| 587 | 'start': 'Secure test suites summary', |
| 588 | 'end': 'End of Secure test suites', |
| 589 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 590 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 591 | r"(?P<result>PASSED|FAILED)", |
| 592 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 593 | }, |
| 594 | { |
| 595 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 596 | 'start': 'Non-secure test suites summary', |
| 597 | 'end': r'End of Non-secure test suites', |
| 598 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 599 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 600 | r"(?P<result>PASSED|FAILED)", |
| 601 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 602 | } |
| 603 | ] # Monitors |
| 604 | }, # RegressionProfileS |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 605 | 'RegressionProfileL': { |
| 606 | "binaries": { |
| 607 | "firmware": "bl2.axf", |
| 608 | "bootloader": "tfm_s_ns_signed.bin" |
| 609 | }, |
| 610 | "monitors": [ |
| 611 | { |
| 612 | 'name': 'Secure_Test_Suites_Summary', |
| 613 | 'start': 'Secure test suites summary', |
| 614 | 'end': 'End of Secure test suites', |
| 615 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 616 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 617 | r"(?P<result>PASSED|FAILED)", |
| 618 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 619 | }, |
| 620 | { |
| 621 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 622 | 'start': 'Non-secure test suites summary', |
| 623 | 'end': r'End of Non-secure test suites', |
| 624 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 625 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 626 | r"(?P<result>PASSED|FAILED)", |
| 627 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 628 | } |
| 629 | ] # Monitors |
| 630 | }, # RegressionProfileL |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 631 | |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 632 | 'RegressionIPC': { |
| 633 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 634 | "firmware": "bl2.axf", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 635 | "bootloader": "tfm_s_ns_signed.bin" |
| 636 | }, |
| 637 | "monitors": [ |
| 638 | { |
| 639 | 'name': 'Secure_Test_Suites_Summary', |
| 640 | 'start': 'Secure test suites summary', |
| 641 | 'end': 'End of Secure test suites', |
| 642 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 643 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 644 | r"(?P<result>PASSED|FAILED)", |
| 645 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 646 | }, |
| 647 | { |
| 648 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 649 | 'start': 'Non-secure test suites summary', |
| 650 | 'end': r'End of Non-secure test suites', |
| 651 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 652 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 653 | r"(?P<result>PASSED|FAILED)", |
| 654 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 655 | } |
| 656 | ] # Monitors |
| 657 | }, # Regression |
| 658 | 'RegressionIPCTfmLevel2': { |
| 659 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 660 | "firmware": "bl2.axf", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 661 | "bootloader": "tfm_s_ns_signed.bin" |
| 662 | }, |
| 663 | "monitors": [ |
| 664 | { |
| 665 | 'name': 'Secure_Test_Suites_Summary', |
| 666 | 'start': 'Secure test suites summary', |
| 667 | 'end': 'End of Secure test suites', |
| 668 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 669 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 670 | r"(?P<result>PASSED|FAILED)", |
| 671 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 672 | }, |
| 673 | { |
| 674 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 675 | 'start': 'Non-secure test suites summary', |
| 676 | 'end': r'End of Non-secure test suites', |
| 677 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 678 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 679 | r"(?P<result>PASSED|FAILED)", |
| 680 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 681 | } |
| 682 | ] # Monitors |
| 683 | }, # Regression |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 684 | 'RegressionIPCTfmLevel3': { |
| 685 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 686 | "firmware": "bl2.axf", |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 687 | "bootloader": "tfm_s_ns_signed.bin" |
| 688 | }, |
| 689 | "monitors": [ |
| 690 | { |
| 691 | 'name': 'Secure_Test_Suites_Summary', |
| 692 | 'start': 'Secure test suites summary', |
| 693 | 'end': 'End of Secure test suites', |
| 694 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 695 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 696 | r"(?P<result>PASSED|FAILED)", |
| 697 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 698 | }, |
| 699 | { |
| 700 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 701 | 'start': 'Non-secure test suites summary', |
| 702 | 'end': r'End of Non-secure test suites', |
| 703 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 704 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 705 | r"(?P<result>PASSED|FAILED)", |
| 706 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 707 | } |
| 708 | ] # Monitors |
| 709 | }, # Regression |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 710 | 'CoreIPC': { |
| 711 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 712 | "firmware": "bl2.axf", |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 713 | "bootloader": "tfm_s_ns_signed.bin" |
| 714 | }, |
| 715 | "monitors": [ |
| 716 | { |
| 717 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 718 | 'start': 'Non-Secure system', |
| 719 | 'end': r'starting\\.{3}', |
| 720 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 721 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 722 | } # Monitors |
| 723 | ] |
| 724 | }, # CoreIPC |
| 725 | 'CoreIPCTfmLevel2': { |
| 726 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 727 | "firmware": "bl2.axf", |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 728 | "bootloader": "tfm_s_ns_signed.bin" |
| 729 | }, |
| 730 | "monitors": [ |
| 731 | { |
| 732 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 733 | 'start': 'Non-Secure system', |
| 734 | 'end': r'starting\\.{3}', |
| 735 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 736 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 737 | } # Monitors |
| 738 | ] |
| 739 | }, # CoreIPCTfmLevel2 |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 740 | 'CoreIPCTfmLevel3': { |
| 741 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 742 | "firmware": "bl2.axf", |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 743 | "bootloader": "tfm_s_ns_signed.bin" |
| 744 | }, |
| 745 | "monitors": [ |
| 746 | { |
| 747 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 748 | 'start': 'Non-Secure system', |
| 749 | 'end': r'starting\\.{3}', |
| 750 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 751 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 752 | } # Monitors |
| 753 | ] |
| 754 | }, # CoreIPCTfmLevel3 |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 755 | |
Paul Sokolovsky | 7eae975 | 2022-02-09 21:38:55 +0300 | [diff] [blame] | 756 | 'PsaApiTest_Crypto': { |
| 757 | "binaries": { |
| 758 | "firmware": "bl2.axf", |
| 759 | "bootloader": "tfm_s_ns_signed.bin" |
| 760 | }, |
| 761 | "monitors": monitors_psaapitest_crypto_workaround, |
| 762 | }, # PsaApiTest_Crypto |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 763 | |
| 764 | 'PsaApiTest_STORAGE': { |
| 765 | "binaries": { |
| 766 | "firmware": "bl2.axf", |
| 767 | "bootloader": "tfm_s_ns_signed.bin" |
| 768 | }, |
| 769 | "monitors": monitors_psaapitest_by_desc, |
| 770 | }, # PsaApiTest_Storage |
| 771 | |
Paul Sokolovsky | 0c82ae2 | 2022-02-16 20:01:10 +0300 | [diff] [blame] | 772 | 'PsaApiTestIPC_STORAGE': { |
| 773 | "binaries": { |
| 774 | "firmware": "bl2.axf", |
| 775 | "bootloader": "tfm_s_ns_signed.bin" |
| 776 | }, |
| 777 | "monitors": monitors_psaapitest_by_desc, |
| 778 | }, # PsaApiTestIPC_Storage |
| 779 | |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 780 | 'PsaApiTest_Attest': { |
| 781 | "binaries": { |
| 782 | "firmware": "bl2.axf", |
| 783 | "bootloader": "tfm_s_ns_signed.bin" |
| 784 | }, |
| 785 | "monitors": monitors_psaapitest_by_ut, |
| 786 | }, # PsaApiTest_Attest |
| 787 | |
Paul Sokolovsky | 46ff531 | 2022-02-16 20:23:01 +0300 | [diff] [blame] | 788 | 'PsaApiTestIPC_Attest': { |
| 789 | "binaries": { |
| 790 | "firmware": "bl2.axf", |
| 791 | "bootloader": "tfm_s_ns_signed.bin" |
| 792 | }, |
| 793 | "monitors": monitors_psaapitest_by_ut, |
| 794 | }, # PsaApiTestIPC_Attest |
| 795 | |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 796 | } # Tests |
| 797 | } |
| 798 | |
| 799 | |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 800 | # FVP without BL2 bootloader |
| 801 | # firmware <-> ns <-> application: --application cpu0=tfm_s.axf |
| 802 | # bootloader <-> s <-> data: --data cpu0=tfm_ns.bin@0x00100000 |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 803 | fvp_mps2_an521_nobl2 = { |
| 804 | "templ": "fvp_mps2.jinja2", |
| 805 | "job_name": "fvp_mps2_an521_nobl2", |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 806 | "device_type": "fvp", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 807 | "job_timeout": 15, |
| 808 | "action_timeout": 10, |
Xinyu Zhang | d8703f0 | 2021-05-18 20:30:07 +0800 | [diff] [blame] | 809 | "monitor_timeout": 15, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 810 | "poweroff_timeout": 1, |
Dean Birch | 1d545c0 | 2020-05-29 14:09:21 +0100 | [diff] [blame] | 811 | "platforms": {"AN521": ""}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 812 | "compilers": ["GNUARM", "ARMCLANG"], |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 813 | "build_types": ["Debug", "Release", "Minsizerel"], |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 814 | "boot_types": ["NOBL2"], |
| 815 | "data_bin_offset": "0x00100000", |
Dean Birch | 1d545c0 | 2020-05-29 14:09:21 +0100 | [diff] [blame] | 816 | "cpu_baseline": 1, |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 817 | "tests": { |
| 818 | 'Default': { |
| 819 | "binaries": { |
| 820 | "firmware": "tfm_s.axf", |
| 821 | "bootloader": "tfm_ns.bin" |
| 822 | }, |
| 823 | "monitors": [ |
| 824 | { |
| 825 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 826 | 'start': 'Non-Secure system', |
| 827 | 'end': r'starting\\.{3}', |
| 828 | 'pattern': r'Non-Secure system starting\\.{3}', |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 829 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 830 | } |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 831 | ] |
| 832 | }, # Default |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 833 | 'DefaultProfileS': { |
| 834 | "binaries": { |
| 835 | "firmware": "tfm_s.axf", |
| 836 | "bootloader": "tfm_ns.bin" |
| 837 | }, |
| 838 | "monitors": [ |
| 839 | { |
| 840 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 841 | 'start': 'Non-Secure system', |
| 842 | 'end': r'starting\\.{3}', |
| 843 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 844 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 845 | } # Monitors |
| 846 | ] |
| 847 | }, # DefaultProfileS |
| 848 | 'DefaultProfileM': { |
| 849 | "binaries": { |
| 850 | "firmware": "tfm_s.axf", |
| 851 | "bootloader": "tfm_ns.bin" |
| 852 | }, |
| 853 | "monitors": [ |
| 854 | { |
| 855 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 856 | 'start': 'Non-Secure system', |
| 857 | 'end': r'starting\\.{3}', |
| 858 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 859 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 860 | } # Monitors |
| 861 | ] |
| 862 | }, # DefaultProfileM |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 863 | 'DefaultProfileL': { |
| 864 | "binaries": { |
| 865 | "firmware": "tfm_s.axf", |
| 866 | "bootloader": "tfm_ns.bin" |
| 867 | }, |
| 868 | "monitors": [ |
| 869 | { |
| 870 | 'name': 'Secure_Test_Suites_Summary', |
| 871 | 'start': 'Non-Secure system', |
| 872 | 'end': r'starting\\.{3}', |
| 873 | 'pattern': r'Non-Secure system starting\\.{3}', |
| 874 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 875 | } # Monitors |
| 876 | ] |
| 877 | }, # DefaultProfileL |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 878 | |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 879 | 'Regression': { |
| 880 | "binaries": { |
| 881 | "firmware": "tfm_s.axf", |
| 882 | "bootloader": "tfm_ns.bin" |
| 883 | }, |
| 884 | "monitors": [ |
| 885 | { |
| 886 | 'name': 'Secure_Test_Suites_Summary', |
| 887 | 'start': 'Secure test suites summary', |
| 888 | 'end': 'End of Secure test suites', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 889 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 890 | r"test_case_id>[^\n]+)' has(.*) " |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 891 | r"(?P<result>PASSED|FAILED)", |
| 892 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 893 | }, |
| 894 | { |
| 895 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 896 | 'start': 'Non-secure test suites summary', |
| 897 | 'end': r'End of Non-secure test suites', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 898 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 899 | r"test_case_id>[^\n]+)' has(.*) " |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 900 | r"(?P<result>PASSED|FAILED)", |
| 901 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 902 | } |
| 903 | ] # Monitors |
| 904 | }, # Regression |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 905 | 'RegressionProfileM': { |
| 906 | "binaries": { |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 907 | "firmware": "tfm_s.axf", |
| 908 | "bootloader": "tfm_ns.bin" |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 909 | }, |
| 910 | "monitors": [ |
| 911 | { |
| 912 | 'name': 'Secure_Test_Suites_Summary', |
| 913 | 'start': 'Secure test suites summary', |
| 914 | 'end': 'End of Secure test suites', |
| 915 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 916 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 917 | r"(?P<result>PASSED|FAILED)", |
| 918 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 919 | }, |
| 920 | { |
| 921 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 922 | 'start': 'Non-secure test suites summary', |
| 923 | 'end': r'End of Non-secure test suites', |
| 924 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 925 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 926 | r"(?P<result>PASSED|FAILED)", |
| 927 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 928 | } |
| 929 | ] # Monitors |
| 930 | }, # RegressionProfileM |
| 931 | 'RegressionProfileS': { |
| 932 | "binaries": { |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 933 | "firmware": "tfm_s.axf", |
| 934 | "bootloader": "tfm_ns.bin" |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 935 | }, |
| 936 | "monitors": [ |
| 937 | { |
| 938 | 'name': 'Secure_Test_Suites_Summary', |
| 939 | 'start': 'Secure test suites summary', |
| 940 | 'end': 'End of Secure test suites', |
| 941 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 942 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 943 | r"(?P<result>PASSED|FAILED)", |
| 944 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 945 | }, |
| 946 | { |
| 947 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 948 | 'start': 'Non-secure test suites summary', |
| 949 | 'end': r'End of Non-secure test suites', |
| 950 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 951 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 952 | r"(?P<result>PASSED|FAILED)", |
| 953 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 954 | } |
| 955 | ] # Monitors |
| 956 | }, # RegressionProfileS |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 957 | 'RegressionProfileL': { |
| 958 | "binaries": { |
| 959 | "firmware": "tfm_s.axf", |
| 960 | "bootloader": "tfm_ns.bin" |
| 961 | }, |
| 962 | "monitors": [ |
| 963 | { |
| 964 | 'name': 'Secure_Test_Suites_Summary', |
| 965 | 'start': 'Secure test suites summary', |
| 966 | 'end': 'End of Secure test suites', |
| 967 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 968 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 969 | r"(?P<result>PASSED|FAILED)", |
| 970 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 971 | }, |
| 972 | { |
| 973 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 974 | 'start': 'Non-secure test suites summary', |
| 975 | 'end': r'End of Non-secure test suites', |
| 976 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 977 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 978 | r"(?P<result>PASSED|FAILED)", |
| 979 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 980 | } |
| 981 | ] # Monitors |
| 982 | }, # RegressionProfileL |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 983 | |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 984 | 'RegressionIPC': { |
| 985 | "binaries": { |
| 986 | "firmware": "tfm_s.axf", |
| 987 | "bootloader": "tfm_ns.bin" |
| 988 | }, |
| 989 | "monitors": [ |
| 990 | { |
| 991 | 'name': 'Secure_Test_Suites_Summary', |
| 992 | 'start': 'Secure test suites summary', |
| 993 | 'end': 'End of Secure test suites', |
| 994 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 995 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 996 | r"(?P<result>PASSED|FAILED)", |
| 997 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 998 | }, |
| 999 | { |
| 1000 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1001 | 'start': 'Non-secure test suites summary', |
| 1002 | 'end': r'End of Non-secure test suites', |
| 1003 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1004 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1005 | r"(?P<result>PASSED|FAILED)", |
| 1006 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1007 | } |
| 1008 | ] # Monitors |
| 1009 | }, # RegressionIPC |
| 1010 | 'RegressionIPCTfmLevel2': { |
| 1011 | "binaries": { |
| 1012 | "firmware": "tfm_s.axf", |
| 1013 | "bootloader": "tfm_ns.bin" |
| 1014 | }, |
| 1015 | "monitors": [ |
| 1016 | { |
| 1017 | 'name': 'Secure_Test_Suites_Summary', |
| 1018 | 'start': 'Secure test suites summary', |
| 1019 | 'end': 'End of Secure test suites', |
| 1020 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1021 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1022 | r"(?P<result>PASSED|FAILED)", |
| 1023 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1024 | }, |
| 1025 | { |
| 1026 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1027 | 'start': 'Non-secure test suites summary', |
| 1028 | 'end': r'End of Non-secure test suites', |
| 1029 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1030 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1031 | r"(?P<result>PASSED|FAILED)", |
| 1032 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1033 | } |
| 1034 | ] # Monitors |
| 1035 | }, # RegressionIPCTfmLevel2 |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 1036 | 'RegressionIPCTfmLevel3': { |
| 1037 | "binaries": { |
| 1038 | "firmware": "tfm_s.axf", |
| 1039 | "bootloader": "tfm_ns.bin" |
| 1040 | }, |
| 1041 | "monitors": [ |
| 1042 | { |
| 1043 | 'name': 'Secure_Test_Suites_Summary', |
| 1044 | 'start': 'Secure test suites summary', |
| 1045 | 'end': 'End of Secure test suites', |
| 1046 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1047 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 1048 | r"(?P<result>PASSED|FAILED)", |
| 1049 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 1050 | }, |
| 1051 | { |
| 1052 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1053 | 'start': 'Non-secure test suites summary', |
| 1054 | 'end': r'End of Non-secure test suites', |
| 1055 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1056 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 1057 | r"(?P<result>PASSED|FAILED)", |
| 1058 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 3b092ef | 2020-11-06 16:56:25 +0800 | [diff] [blame] | 1059 | } |
| 1060 | ] # Monitors |
| 1061 | }, # RegressionIPCTfmLevel3 |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 1062 | 'CoreIPC': { |
| 1063 | "binaries": { |
| 1064 | "firmware": "tfm_s.axf", |
| 1065 | "bootloader": "tfm_ns.bin" |
| 1066 | }, |
| 1067 | "monitors": [ |
| 1068 | { |
| 1069 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1070 | 'start': 'Non-Secure system', |
| 1071 | 'end': r'starting\\.{3}', |
| 1072 | 'pattern': r'Non-Secure system starting\\.{3}', |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 1073 | 'fixup': {"pass": "!", "fail": ""}, |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 1074 | } # Monitors |
| 1075 | ] |
| 1076 | }, # CoreIPC |
| 1077 | 'CoreIPCTfmLevel2': { |
| 1078 | "binaries": { |
| 1079 | "firmware": "tfm_s.axf", |
| 1080 | "bootloader": "tfm_ns.bin" |
| 1081 | }, |
| 1082 | "monitors": [ |
| 1083 | { |
| 1084 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1085 | 'start': 'Non-Secure system', |
| 1086 | 'end': r'starting\\.{3}', |
| 1087 | 'pattern': r'Non-Secure system starting\\.{3}', |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 1088 | 'fixup': {"pass": "!", "fail": ""}, |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 1089 | } # Monitors |
| 1090 | ] |
| 1091 | }, # CoreIPCTfmLevel2 |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1092 | 'CoreIPCTfmLevel3': { |
| 1093 | "binaries": { |
| 1094 | "firmware": "tfm_s.axf", |
| 1095 | "bootloader": "tfm_ns.bin" |
| 1096 | }, |
| 1097 | "monitors": [ |
| 1098 | { |
| 1099 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1100 | 'start': 'Non-Secure system', |
| 1101 | 'end': r'starting\\.{3}', |
| 1102 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1103 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1104 | } # Monitors |
| 1105 | ] |
| 1106 | }, # CoreIPCTfmLevel3 |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 1107 | } # Tests |
| 1108 | } |
| 1109 | |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1110 | |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1111 | # FVP with BL2 bootloader |
| 1112 | # firmware <-> ns <-> application: --application cpu0=bl2.axf |
| 1113 | # bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x10080000 |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1114 | fvp_mps2_an519_bl2 = { |
| 1115 | "templ": "fvp_mps2.jinja2", |
| 1116 | "job_name": "fvp_mps2_an519_bl2", |
| 1117 | "device_type": "fvp", |
| 1118 | "job_timeout": 15, |
| 1119 | "action_timeout": 10, |
Xinyu Zhang | d8703f0 | 2021-05-18 20:30:07 +0800 | [diff] [blame] | 1120 | "monitor_timeout": 15, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1121 | "poweroff_timeout": 1, |
| 1122 | "platforms": {"AN519": ""}, |
| 1123 | "compilers": ["GNUARM", "ARMCLANG"], |
| 1124 | "build_types": ["Debug", "Release", "Minsizerel"], |
| 1125 | "boot_types": ["BL2"], |
| 1126 | "data_bin_offset": "0x10080000", |
| 1127 | "cpu0_baseline": 1, |
| 1128 | "tests": { |
| 1129 | 'Default': { |
| 1130 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1131 | "firmware": "bl2.axf", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1132 | "bootloader": "tfm_s_ns_signed.bin" |
| 1133 | }, |
| 1134 | "monitors": [ |
| 1135 | { |
| 1136 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1137 | 'start': 'Non-Secure system', |
| 1138 | 'end': r'starting\\.{3}', |
| 1139 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1140 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1141 | } # Monitors |
| 1142 | ] |
| 1143 | }, # Default |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1144 | 'DefaultProfileS': { |
| 1145 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1146 | "firmware": "bl2.axf", |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1147 | "bootloader": "tfm_s_ns_signed.bin" |
| 1148 | }, |
| 1149 | "monitors": [ |
| 1150 | { |
| 1151 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1152 | 'start': 'Non-Secure system', |
| 1153 | 'end': r'starting\\.{3}', |
| 1154 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1155 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1156 | } # Monitors |
| 1157 | ] |
| 1158 | }, # DefaultProfileS |
| 1159 | 'DefaultProfileM': { |
| 1160 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1161 | "firmware": "bl2.axf", |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1162 | "bootloader": "tfm_s_ns_signed.bin" |
| 1163 | }, |
| 1164 | "monitors": [ |
| 1165 | { |
| 1166 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1167 | 'start': 'Non-Secure system', |
| 1168 | 'end': r'starting\\.{3}', |
| 1169 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1170 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1171 | } # Monitors |
| 1172 | ] |
| 1173 | }, # DefaultProfileM |
| 1174 | |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1175 | 'Regression': { |
| 1176 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1177 | "firmware": "bl2.axf", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1178 | "bootloader": "tfm_s_ns_signed.bin" |
| 1179 | }, |
| 1180 | "monitors": [ |
| 1181 | { |
| 1182 | 'name': 'Secure_Test_Suites_Summary', |
| 1183 | 'start': 'Secure test suites summary', |
| 1184 | 'end': 'End of Secure test suites', |
| 1185 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1186 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1187 | r"(?P<result>PASSED|FAILED)", |
| 1188 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1189 | }, |
| 1190 | { |
| 1191 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1192 | 'start': 'Non-secure test suites summary', |
| 1193 | 'end': r'End of Non-secure test suites', |
| 1194 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1195 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1196 | r"(?P<result>PASSED|FAILED)", |
| 1197 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1198 | } |
| 1199 | ] # Monitors |
| 1200 | }, # Regression |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1201 | |
| 1202 | 'RegressionProfileM': { |
| 1203 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1204 | "firmware": "bl2.axf", |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1205 | "bootloader": "tfm_s_ns_signed.bin" |
| 1206 | }, |
| 1207 | "monitors": [ |
| 1208 | { |
| 1209 | 'name': 'Secure_Test_Suites_Summary', |
| 1210 | 'start': 'Secure test suites summary', |
| 1211 | 'end': 'End of Secure test suites', |
| 1212 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1213 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1214 | r"(?P<result>PASSED|FAILED)", |
| 1215 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1216 | }, |
| 1217 | { |
| 1218 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1219 | 'start': 'Non-secure test suites summary', |
| 1220 | 'end': r'End of Non-secure test suites', |
| 1221 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1222 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1223 | r"(?P<result>PASSED|FAILED)", |
| 1224 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1225 | } |
| 1226 | ] # Monitors |
| 1227 | }, # RegressionProfileM |
| 1228 | 'RegressionProfileS': { |
| 1229 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1230 | "firmware": "bl2.axf", |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1231 | "bootloader": "tfm_s_ns_signed.bin" |
| 1232 | }, |
| 1233 | "monitors": [ |
| 1234 | { |
| 1235 | 'name': 'Secure_Test_Suites_Summary', |
| 1236 | 'start': 'Secure test suites summary', |
| 1237 | 'end': 'End of Secure test suites', |
| 1238 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1239 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1240 | r"(?P<result>PASSED|FAILED)", |
| 1241 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1242 | }, |
| 1243 | { |
| 1244 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1245 | 'start': 'Non-secure test suites summary', |
| 1246 | 'end': r'End of Non-secure test suites', |
| 1247 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1248 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1249 | r"(?P<result>PASSED|FAILED)", |
| 1250 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1251 | } |
| 1252 | ] # Monitors |
| 1253 | }, # RegressionProfileS |
| 1254 | |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1255 | 'RegressionIPC': { |
| 1256 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1257 | "firmware": "bl2.axf", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1258 | "bootloader": "tfm_s_ns_signed.bin" |
| 1259 | }, |
| 1260 | "monitors": [ |
| 1261 | { |
| 1262 | 'name': 'Secure_Test_Suites_Summary', |
| 1263 | 'start': 'Secure test suites summary', |
| 1264 | 'end': 'End of Secure test suites', |
| 1265 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1266 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1267 | r"(?P<result>PASSED|FAILED)", |
| 1268 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1269 | }, |
| 1270 | { |
| 1271 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1272 | 'start': 'Non-secure test suites summary', |
| 1273 | 'end': r'End of Non-secure test suites', |
| 1274 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1275 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1276 | r"(?P<result>PASSED|FAILED)", |
| 1277 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1278 | } |
| 1279 | ] # Monitors |
| 1280 | }, # Regression |
| 1281 | 'RegressionIPCTfmLevel2': { |
| 1282 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1283 | "firmware": "bl2.axf", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1284 | "bootloader": "tfm_s_ns_signed.bin" |
| 1285 | }, |
| 1286 | "monitors": [ |
| 1287 | { |
| 1288 | 'name': 'Secure_Test_Suites_Summary', |
| 1289 | 'start': 'Secure test suites summary', |
| 1290 | 'end': 'End of Secure test suites', |
| 1291 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1292 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1293 | r"(?P<result>PASSED|FAILED)", |
| 1294 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1295 | }, |
| 1296 | { |
| 1297 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1298 | 'start': 'Non-secure test suites summary', |
| 1299 | 'end': r'End of Non-secure test suites', |
| 1300 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1301 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1302 | r"(?P<result>PASSED|FAILED)", |
| 1303 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1304 | } |
| 1305 | ] # Monitors |
| 1306 | }, # Regression |
| 1307 | 'CoreIPC': { |
| 1308 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1309 | "firmware": "bl2.axf", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1310 | "bootloader": "tfm_s_ns_signed.bin" |
| 1311 | }, |
| 1312 | "monitors": [ |
| 1313 | { |
| 1314 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1315 | 'start': 'Non-Secure system', |
| 1316 | 'end': r'starting\\.{3}', |
| 1317 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1318 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1319 | } # Monitors |
| 1320 | ] |
| 1321 | }, # CoreIPC |
| 1322 | 'CoreIPCTfmLevel2': { |
| 1323 | "binaries": { |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1324 | "firmware": "bl2.axf", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1325 | "bootloader": "tfm_s_ns_signed.bin" |
| 1326 | }, |
| 1327 | "monitors": [ |
| 1328 | { |
| 1329 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1330 | 'start': 'Non-Secure system', |
| 1331 | 'end': r'starting\\.{3}', |
| 1332 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1333 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1334 | } # Monitors |
| 1335 | ] |
| 1336 | }, # CoreIPCTfmLevel2 |
| 1337 | } # Tests |
| 1338 | } |
| 1339 | |
| 1340 | |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1341 | # FVP without BL2 bootloader |
| 1342 | # firmware <-> ns <-> application: --application cpu0=tfm_s.axf |
| 1343 | # bootloader <-> s <-> data: --data cpu0=tfm_ns.bin@0x00100000 |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1344 | fvp_mps2_an519_nobl2 = { |
| 1345 | "templ": "fvp_mps2.jinja2", |
| 1346 | "job_name": "fvp_mps2_an519_nobl2", |
| 1347 | "device_type": "fvp", |
| 1348 | "job_timeout": 15, |
| 1349 | "action_timeout": 10, |
Xinyu Zhang | d8703f0 | 2021-05-18 20:30:07 +0800 | [diff] [blame] | 1350 | "monitor_timeout": 15, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1351 | "poweroff_timeout": 1, |
| 1352 | "platforms": {"AN519": ""}, |
| 1353 | "compilers": ["GNUARM", "ARMCLANG"], |
| 1354 | "build_types": ["Debug", "Release", "Minsizerel"], |
| 1355 | "boot_types": ["NOBL2"], |
| 1356 | "data_bin_offset": "0x00100000", |
| 1357 | "cpu0_baseline": 1, |
| 1358 | "tests": { |
| 1359 | 'Default': { |
| 1360 | "binaries": { |
| 1361 | "firmware": "tfm_s.axf", |
| 1362 | "bootloader": "tfm_ns.bin" |
| 1363 | }, |
| 1364 | "monitors": [ |
| 1365 | { |
| 1366 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1367 | 'start': 'Non-Secure system', |
| 1368 | 'end': r'starting\\.{3}', |
| 1369 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1370 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1371 | } |
| 1372 | ] |
| 1373 | }, # Default |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1374 | 'DefaultProfileS': { |
| 1375 | "binaries": { |
| 1376 | "firmware": "tfm_s.axf", |
| 1377 | "bootloader": "tfm_ns.bin" |
| 1378 | }, |
| 1379 | "monitors": [ |
| 1380 | { |
| 1381 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1382 | 'start': 'Non-Secure system', |
| 1383 | 'end': r'starting\\.{3}', |
| 1384 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1385 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1386 | } # Monitors |
| 1387 | ] |
| 1388 | }, # DefaultProfileS |
| 1389 | 'DefaultProfileM': { |
| 1390 | "binaries": { |
| 1391 | "firmware": "tfm_s.axf", |
| 1392 | "bootloader": "tfm_ns.bin" |
| 1393 | }, |
| 1394 | "monitors": [ |
| 1395 | { |
| 1396 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1397 | 'start': 'Non-Secure system', |
| 1398 | 'end': r'starting\\.{3}', |
| 1399 | 'pattern': r'Non-Secure system starting\\.{3}', |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1400 | 'fixup': {"pass": "!", "fail": ""}, |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1401 | } # Monitors |
| 1402 | ] |
| 1403 | }, # DefaultProfileM |
| 1404 | |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1405 | 'Regression': { |
| 1406 | "binaries": { |
| 1407 | "firmware": "tfm_s.axf", |
| 1408 | "bootloader": "tfm_ns.bin" |
| 1409 | }, |
| 1410 | "monitors": [ |
| 1411 | { |
| 1412 | 'name': 'Secure_Test_Suites_Summary', |
| 1413 | 'start': 'Secure test suites summary', |
| 1414 | 'end': 'End of Secure test suites', |
| 1415 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1416 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1417 | r"(?P<result>PASSED|FAILED)", |
| 1418 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1419 | }, |
| 1420 | { |
| 1421 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1422 | 'start': 'Non-secure test suites summary', |
| 1423 | 'end': r'End of Non-secure test suites', |
| 1424 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1425 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1426 | r"(?P<result>PASSED|FAILED)", |
| 1427 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1428 | } |
| 1429 | ] # Monitors |
| 1430 | }, # Regression |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1431 | 'RegressionProfileM': { |
| 1432 | "binaries": { |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1433 | "firmware": "tfm_s.axf", |
| 1434 | "bootloader": "tfm_ns.bin" |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1435 | }, |
| 1436 | "monitors": [ |
| 1437 | { |
| 1438 | 'name': 'Secure_Test_Suites_Summary', |
| 1439 | 'start': 'Secure test suites summary', |
| 1440 | 'end': 'End of Secure test suites', |
| 1441 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1442 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1443 | r"(?P<result>PASSED|FAILED)", |
| 1444 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1445 | }, |
| 1446 | { |
| 1447 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1448 | 'start': 'Non-secure test suites summary', |
| 1449 | 'end': r'End of Non-secure test suites', |
| 1450 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1451 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1452 | r"(?P<result>PASSED|FAILED)", |
| 1453 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1454 | } |
| 1455 | ] # Monitors |
| 1456 | }, # RegressionProfileM |
| 1457 | 'RegressionProfileS': { |
| 1458 | "binaries": { |
Xinyu Zhang | 204dc37 | 2020-11-12 14:18:00 +0800 | [diff] [blame] | 1459 | "firmware": "tfm_s.axf", |
| 1460 | "bootloader": "tfm_ns.bin" |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1461 | }, |
| 1462 | "monitors": [ |
| 1463 | { |
| 1464 | 'name': 'Secure_Test_Suites_Summary', |
| 1465 | 'start': 'Secure test suites summary', |
| 1466 | 'end': 'End of Secure test suites', |
| 1467 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1468 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1469 | r"(?P<result>PASSED|FAILED)", |
| 1470 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1471 | }, |
| 1472 | { |
| 1473 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1474 | 'start': 'Non-secure test suites summary', |
| 1475 | 'end': r'End of Non-secure test suites', |
| 1476 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1477 | r"test_case_id>[^\n]+)' has(.*) " |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1478 | r"(?P<result>PASSED|FAILED)", |
| 1479 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Karl Zhang | 2b10b34 | 2020-11-09 14:50:11 +0800 | [diff] [blame] | 1480 | } |
| 1481 | ] # Monitors |
| 1482 | }, # RegressionProfileS |
| 1483 | |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1484 | 'RegressionIPC': { |
| 1485 | "binaries": { |
| 1486 | "firmware": "tfm_s.axf", |
| 1487 | "bootloader": "tfm_ns.bin" |
| 1488 | }, |
| 1489 | "monitors": [ |
| 1490 | { |
| 1491 | 'name': 'Secure_Test_Suites_Summary', |
| 1492 | 'start': 'Secure test suites summary', |
| 1493 | 'end': 'End of Secure test suites', |
| 1494 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1495 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1496 | r"(?P<result>PASSED|FAILED)", |
| 1497 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1498 | }, |
| 1499 | { |
| 1500 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1501 | 'start': 'Non-secure test suites summary', |
| 1502 | 'end': r'End of Non-secure test suites', |
| 1503 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1504 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1505 | r"(?P<result>PASSED|FAILED)", |
| 1506 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1507 | } |
| 1508 | ] # Monitors |
| 1509 | }, # RegressionIPC |
| 1510 | 'RegressionIPCTfmLevel2': { |
| 1511 | "binaries": { |
| 1512 | "firmware": "tfm_s.axf", |
| 1513 | "bootloader": "tfm_ns.bin" |
| 1514 | }, |
| 1515 | "monitors": [ |
| 1516 | { |
| 1517 | 'name': 'Secure_Test_Suites_Summary', |
| 1518 | 'start': 'Secure test suites summary', |
| 1519 | 'end': 'End of Secure test suites', |
| 1520 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1521 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1522 | r"(?P<result>PASSED|FAILED)", |
| 1523 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1524 | }, |
| 1525 | { |
| 1526 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1527 | 'start': 'Non-secure test suites summary', |
| 1528 | 'end': r'End of Non-secure test suites', |
| 1529 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1530 | r"test_case_id>[^\n]+)' has(.*) " |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1531 | r"(?P<result>PASSED|FAILED)", |
| 1532 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1533 | } |
| 1534 | ] # Monitors |
| 1535 | }, # RegressionIPCTfmLevel2 |
| 1536 | 'CoreIPC': { |
| 1537 | "binaries": { |
| 1538 | "firmware": "tfm_s.axf", |
| 1539 | "bootloader": "tfm_ns.bin" |
| 1540 | }, |
| 1541 | "monitors": [ |
| 1542 | { |
| 1543 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1544 | 'start': 'Non-Secure system', |
| 1545 | 'end': r'starting\\.{3}', |
| 1546 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1547 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1548 | } # Monitors |
| 1549 | ] |
| 1550 | }, # CoreIPC |
| 1551 | 'CoreIPCTfmLevel2': { |
| 1552 | "binaries": { |
| 1553 | "firmware": "tfm_s.axf", |
| 1554 | "bootloader": "tfm_ns.bin" |
| 1555 | }, |
| 1556 | "monitors": [ |
| 1557 | { |
| 1558 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1559 | 'start': 'Non-Secure system', |
| 1560 | 'end': r'starting\\.{3}', |
| 1561 | 'pattern': r'Non-Secure system starting\\.{3}', |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1562 | 'fixup': {"pass": "!", "fail": ""}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 1563 | } # Monitors |
| 1564 | ] |
| 1565 | }, # CoreIPCTfmLevel2 |
| 1566 | } # Tests |
| 1567 | } |
| 1568 | |
| 1569 | |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1570 | # MPS2 with BL2 bootloader |
| 1571 | # IMAGE0ADDRESS: 0x10000000 |
| 1572 | # IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader |
| 1573 | # IMAGE1ADDRESS: 0x10080000 |
| 1574 | # IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob |
| 1575 | qemu_mps2_bl2 = { |
| 1576 | "templ": "qemu_mps2_bl2.jinja2", |
| 1577 | "job_name": "qemu_mps2_bl2", |
| 1578 | "device_type": "qemu", |
| 1579 | "job_timeout": 300, |
| 1580 | "action_timeout": 300, |
| 1581 | "poweroff_timeout": 20, |
| 1582 | "platforms": {"AN521": ""}, |
| 1583 | "compilers": ["GNUARM", "ARMCLANG"], |
| 1584 | "build_types": ["Debug", "Release"], |
| 1585 | "boot_types": ["BL2"], |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1586 | "tests": { |
| 1587 | # 'Default': { |
| 1588 | # "binaries": { |
| 1589 | # "firmware": "tfm_s_ns_signed.bin", |
| 1590 | # "bootloader": "bl2.bin" |
| 1591 | # }, |
| 1592 | # "monitors": [ |
| 1593 | # { |
| 1594 | # 'name': 'Secure_Test_Suites_Summary', |
| 1595 | # 'start': r'[Sec Thread]', |
| 1596 | # 'end': r'system starting', |
| 1597 | # 'pattern': r'\x1b\\[1;34m\\[Sec Thread\\] ' |
| 1598 | # r'(?P<test_case_id>Secure image ' |
| 1599 | # r'initializing)(?P<result>!)', |
Xinyu Zhang | 04d7747 | 2022-03-21 14:37:37 +0800 | [diff] [blame^] | 1600 | # 'fixup': {"pass": "!", "fail": ""} |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1601 | # } # Monitors |
| 1602 | # ] |
| 1603 | # }, # Default |
| 1604 | # 'DefaultProfileS': { |
| 1605 | # "binaries": { |
| 1606 | # "firmware": "tfm_s_ns_signed.bin", |
| 1607 | # "bootloader": "bl2.bin" |
| 1608 | # }, |
| 1609 | # "monitors": [ |
| 1610 | # { |
| 1611 | # 'name': 'Secure_Test_Suites_Summary', |
| 1612 | # 'start': r'[Sec Thread]', |
| 1613 | # 'end': r'system starting', |
| 1614 | # 'pattern': r'\x1b\\[1;34m\\[Sec Thread\\] ' |
| 1615 | # r'(?P<test_case_id>Secure image ' |
| 1616 | # r'initializing)(?P<result>!)', |
Xinyu Zhang | 04d7747 | 2022-03-21 14:37:37 +0800 | [diff] [blame^] | 1617 | # 'fixup': {"pass": "!", "fail": ""} |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1618 | # } # Monitors |
| 1619 | # ] |
| 1620 | # }, # DefaultProfileS |
| 1621 | # 'DefaultProfileM': { |
| 1622 | # "binaries": { |
| 1623 | # "firmware": "tfm_s_ns_signed.bin", |
| 1624 | # "bootloader": "bl2.bin" |
| 1625 | # }, |
| 1626 | # "monitors": [ |
| 1627 | # { |
| 1628 | # 'name': 'Secure_Test_Suites_Summary', |
| 1629 | # 'start': r'[Sec Thread]', |
| 1630 | # 'end': r'system starting', |
| 1631 | # 'pattern': r'\x1b\\[1;34m\\[Sec Thread\\] ' |
| 1632 | # r'(?P<test_case_id>Secure image ' |
| 1633 | # r'initializing)(?P<result>!)', |
Xinyu Zhang | 04d7747 | 2022-03-21 14:37:37 +0800 | [diff] [blame^] | 1634 | # 'fixup': {"pass": "!", "fail": ""} |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1635 | # } # Monitors |
| 1636 | # ] |
| 1637 | # }, # DefaultProfileM |
| 1638 | 'Regression': { |
| 1639 | "binaries": { |
| 1640 | "firmware": "tfm_s_ns_signed.bin", |
| 1641 | "bootloader": "bl2.bin" |
| 1642 | }, |
| 1643 | "monitors": [ |
| 1644 | { |
| 1645 | 'name': 'Secure_Test_Suites_Summary', |
| 1646 | 'start': 'Secure test suites summary', |
| 1647 | 'end': 'End of Secure test suites', |
| 1648 | 'pattern': r"Test suite '(?P<" |
| 1649 | r"test_case_id>[^\n]+)' has (.*) " |
| 1650 | r"(?P<result>PASSED|FAILED)", |
| 1651 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1652 | }, |
| 1653 | { |
| 1654 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1655 | 'start': 'Non-secure test suites summary', |
| 1656 | 'end': r'End of Non-secure test suites', |
| 1657 | 'pattern': r"Test suite '(?P<" |
| 1658 | r"test_case_id>[^\n]+)' has (.*) " |
| 1659 | r"(?P<result>PASSED|FAILED)", |
| 1660 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1661 | } |
| 1662 | ] # Monitors |
| 1663 | }, # Regression |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1664 | 'RegressionProfileS': { |
| 1665 | "binaries": { |
| 1666 | "firmware": "tfm_s_ns_signed.bin", |
| 1667 | "bootloader": "bl2.bin" |
| 1668 | }, |
| 1669 | "monitors": [ |
| 1670 | { |
| 1671 | 'name': 'Secure_Test_Suites_Summary', |
| 1672 | 'start': 'Secure test suites summary', |
| 1673 | 'end': 'End of Secure test suites', |
| 1674 | 'pattern': r"Test suite '(?P<" |
| 1675 | r"test_case_id>[^\n]+)' has (.*) " |
| 1676 | r"(?P<result>PASSED|FAILED)", |
| 1677 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1678 | }, |
| 1679 | { |
| 1680 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1681 | 'start': 'Non-secure test suites summary', |
| 1682 | 'end': r'End of Non-secure test suites', |
| 1683 | 'pattern': r"Test suite '(?P<" |
| 1684 | r"test_case_id>[^\n]+)' has (.*) " |
| 1685 | r"(?P<result>PASSED|FAILED)", |
| 1686 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1687 | } |
| 1688 | ] # Monitors |
| 1689 | }, # RegressionProfileS |
| 1690 | 'RegressionIPC': { |
| 1691 | "binaries": { |
| 1692 | "firmware": "tfm_s_ns_signed.bin", |
| 1693 | "bootloader": "bl2.bin" |
| 1694 | }, |
| 1695 | "monitors": [ |
| 1696 | { |
| 1697 | 'name': 'Secure_Test_Suites_Summary', |
| 1698 | 'start': 'Secure test suites summary', |
| 1699 | 'end': 'End of Secure test suites', |
| 1700 | 'pattern': r"Test suite '(?P<" |
| 1701 | r"test_case_id>[^\n]+)' has (.*) " |
| 1702 | r"(?P<result>PASSED|FAILED)", |
| 1703 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1704 | }, |
| 1705 | { |
| 1706 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1707 | 'start': 'Non-secure test suites summary', |
| 1708 | 'end': r'End of Non-secure test suites', |
| 1709 | 'pattern': r"Test suite '(?P<" |
| 1710 | r"test_case_id>[^\n]+)' has (.*) " |
| 1711 | r"(?P<result>PASSED|FAILED)", |
| 1712 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1713 | } |
| 1714 | ] # Monitors |
| 1715 | }, # Regression |
| 1716 | 'RegressionIPCTfmLevel2': { |
| 1717 | "binaries": { |
| 1718 | "firmware": "tfm_s_ns_signed.bin", |
| 1719 | "bootloader": "bl2.bin" |
| 1720 | }, |
| 1721 | "monitors": [ |
| 1722 | { |
| 1723 | 'name': 'Secure_Test_Suites_Summary', |
| 1724 | 'start': 'Secure test suites summary', |
| 1725 | 'end': 'End of Secure test suites', |
| 1726 | 'pattern': r"Test suite '(?P<" |
| 1727 | r"test_case_id>[^\n]+)' has (.*) " |
| 1728 | r"(?P<result>PASSED|FAILED)", |
| 1729 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1730 | }, |
| 1731 | { |
| 1732 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1733 | 'start': 'Non-secure test suites summary', |
| 1734 | 'end': r'End of Non-secure test suites', |
| 1735 | 'pattern': r"Test suite '(?P<" |
| 1736 | r"test_case_id>[^\n]+)' has (.*) " |
| 1737 | r"(?P<result>PASSED|FAILED)", |
| 1738 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1739 | } |
| 1740 | ] # Monitors |
| 1741 | }, # Regression |
| 1742 | 'RegressionIPCTfmLevel3': { |
| 1743 | "binaries": { |
| 1744 | "firmware": "tfm_s_ns_signed.bin", |
| 1745 | "bootloader": "bl2.bin" |
| 1746 | }, |
| 1747 | "monitors": [ |
| 1748 | { |
| 1749 | 'name': 'Secure_Test_Suites_Summary', |
| 1750 | 'start': 'Secure test suites summary', |
| 1751 | 'end': 'End of Secure test suites', |
| 1752 | 'pattern': r"Test suite '(?P<" |
| 1753 | r"test_case_id>[^\n]+)' has (.*) " |
| 1754 | r"(?P<result>PASSED|FAILED)", |
| 1755 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1756 | }, |
| 1757 | { |
| 1758 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1759 | 'start': 'Non-secure test suites summary', |
| 1760 | 'end': r'End of Non-secure test suites', |
| 1761 | 'pattern': r"Test suite '(?P<" |
| 1762 | r"test_case_id>[^\n]+)' has (.*) " |
| 1763 | r"(?P<result>PASSED|FAILED)", |
| 1764 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1765 | } |
| 1766 | ] # Monitors |
| 1767 | }, # Regression |
| 1768 | # 'CoreIPC': { |
| 1769 | # "binaries": { |
| 1770 | # "firmware": "tfm_s_ns_signed.bin", |
| 1771 | # "bootloader": "bl2.bin" |
| 1772 | # }, |
| 1773 | # "monitors": [ |
| 1774 | # { |
| 1775 | # 'name': 'Secure_Test_Suites_Summary', |
| 1776 | # 'start': r'[Sec Thread]', |
| 1777 | # 'end': r'system starting', |
| 1778 | # 'pattern': r'\x1b\\[1;34m\\[Sec Thread\\] ' |
| 1779 | # r'(?P<test_case_id>Secure image ' |
| 1780 | # r'initializing)(?P<result>!)', |
Xinyu Zhang | 04d7747 | 2022-03-21 14:37:37 +0800 | [diff] [blame^] | 1781 | # 'fixup': {"pass": "!", "fail": ""} |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1782 | # } # Monitors |
| 1783 | # ] |
| 1784 | # }, # CoreIPC |
| 1785 | # 'CoreIPCTfmLevel2': { |
| 1786 | # "binaries": { |
| 1787 | # "firmware": "tfm_s_ns_signed.bin", |
| 1788 | # "bootloader": "bl2.bin" |
| 1789 | # }, |
| 1790 | # "monitors": [ |
| 1791 | # { |
| 1792 | # 'name': 'Secure_Test_Suites_Summary', |
| 1793 | # 'start': r'[Sec Thread]', |
| 1794 | # 'end': r'system starting', |
| 1795 | # 'pattern': r'\x1b\\[1;34m\\[Sec Thread\\] ' |
| 1796 | # r'(?P<test_case_id>Secure image ' |
| 1797 | # r'initializing)(?P<result>!)', |
Xinyu Zhang | 04d7747 | 2022-03-21 14:37:37 +0800 | [diff] [blame^] | 1798 | # 'fixup': {"pass": "!", "fail": ""} |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1799 | # } # Monitors |
| 1800 | # ] |
| 1801 | # }, # CoreIPCTfmLevel2 |
| 1802 | # 'CoreIPCTfmLevel3': { |
| 1803 | # "binaries": { |
| 1804 | # "firmware": "tfm_s_ns_signed.bin", |
| 1805 | # "bootloader": "bl2.bin" |
| 1806 | # }, |
| 1807 | # "monitors": [ |
| 1808 | # { |
| 1809 | # 'name': 'Secure_Test_Suites_Summary', |
| 1810 | # 'start': r'[Sec Thread]', |
| 1811 | # 'end': r'system starting', |
| 1812 | # 'pattern': r'\x1b\\[1;34m\\[Sec Thread\\] ' |
| 1813 | # r'(?P<test_case_id>Secure image ' |
| 1814 | # r'initializing)(?P<result>!)', |
Xinyu Zhang | 04d7747 | 2022-03-21 14:37:37 +0800 | [diff] [blame^] | 1815 | # 'fixup': {"pass": "!", "fail": ""} |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 1816 | # } # Monitors |
| 1817 | # ] |
| 1818 | # }, # CoreIPCTfmLevel3 |
| 1819 | } |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 1820 | } |
| 1821 | |
| 1822 | |
| 1823 | # Musca-B1 with BL2 bootloader |
| 1824 | # unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin |
| 1825 | # srec_cat bin/bl2.bin -Binary -offset 0xA000000 bin/tfm_s_ns_signed.bin -Binary -offset 0xA020000 -o tfm.hex -Intel |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1826 | musca_b1_bl2 = { |
| 1827 | "templ": "musca_b1.jinja2", |
| 1828 | "job_name": "musca_b1_bl2", |
| 1829 | "device_type": "musca-b", |
Xinyu Zhang | 630dfe6 | 2021-06-17 14:38:11 +0800 | [diff] [blame] | 1830 | "job_timeout": 40, |
| 1831 | "action_timeout": 20, |
| 1832 | "monitor_timeout": 30, |
Ryan Harkin | f698108 | 2020-12-18 14:54:33 +0000 | [diff] [blame] | 1833 | "poweroff_timeout": 40, |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1834 | "platforms": {"MUSCA_B1": ""}, |
| 1835 | "compilers": ["GNUARM", "ARMCLANG"], |
Xinyu Zhang | 43e5d67 | 2021-03-24 16:30:26 +0800 | [diff] [blame] | 1836 | "build_types": ["Debug", "Release", "Minsizerel"], |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1837 | "boot_types": ["BL2"], |
| 1838 | "tests": { |
| 1839 | "Default": { |
| 1840 | "binaries": { |
| 1841 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1842 | }, |
| 1843 | "monitors": [ |
| 1844 | { |
| 1845 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1846 | 'start': 'Non-Secure system', |
| 1847 | 'end': r'starting\\.{3}', |
| 1848 | 'pattern': r'Non-Secure system starting\\.{3}', |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1849 | 'fixup': {"pass": "!", "fail": ""}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1850 | } |
| 1851 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1852 | }, |
| 1853 | "CoreIPC": { |
| 1854 | "binaries": { |
| 1855 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1856 | }, |
| 1857 | "monitors": [ |
| 1858 | { |
| 1859 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1860 | 'start': 'Non-Secure system', |
| 1861 | 'end': r'starting\\.{3}', |
| 1862 | 'pattern': r'Non-Secure system starting\\.{3}', |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1863 | 'fixup': {"pass": "!", "fail": ""}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1864 | } |
| 1865 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1866 | }, |
| 1867 | "CoreIPCTfmLevel2": { |
| 1868 | "binaries": { |
| 1869 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1870 | }, |
| 1871 | "monitors": [ |
| 1872 | { |
| 1873 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1874 | 'start': 'Non-Secure system', |
| 1875 | 'end': r'starting\\.{3}', |
| 1876 | 'pattern': r'Non-Secure system starting\\.{3}', |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1877 | 'fixup': {"pass": "!", "fail": ""}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1878 | } |
| 1879 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1880 | }, |
| 1881 | "CoreIPCTfmLevel3": { |
| 1882 | "binaries": { |
| 1883 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1884 | }, |
| 1885 | "monitors": [ |
| 1886 | { |
| 1887 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1888 | 'start': 'Non-Secure system', |
| 1889 | 'end': r'starting\\.{3}', |
| 1890 | 'pattern': r'Non-Secure system starting\\.{3}', |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1891 | 'fixup': {"pass": "!", "fail": ""}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1892 | } |
| 1893 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1894 | }, |
| 1895 | "DefaultProfileM": { |
| 1896 | "binaries": { |
| 1897 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1898 | }, |
| 1899 | "monitors": [ |
| 1900 | { |
| 1901 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1902 | 'start': 'Non-Secure system', |
| 1903 | 'end': r'starting\\.{3}', |
| 1904 | 'pattern': r'Non-Secure system starting\\.{3}', |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1905 | 'fixup': {"pass": "!", "fail": ""}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1906 | } |
| 1907 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1908 | }, |
| 1909 | "DefaultProfileS": { |
| 1910 | "binaries": { |
| 1911 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1912 | }, |
| 1913 | "monitors": [ |
| 1914 | { |
| 1915 | 'name': 'Secure_Test_Suites_Summary', |
Xinyu Zhang | 0ef185d | 2021-01-27 15:15:59 +0800 | [diff] [blame] | 1916 | 'start': 'Non-Secure system', |
| 1917 | 'end': r'starting\\.{3}', |
| 1918 | 'pattern': r'Non-Secure system starting\\.{3}', |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1919 | 'fixup': {"pass": "!", "fail": ""}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1920 | } |
| 1921 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1922 | }, |
| 1923 | "Regression": { |
| 1924 | "binaries": { |
| 1925 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1926 | }, |
| 1927 | "monitors": [ |
| 1928 | { |
| 1929 | 'name': 'Secure_Test_Suites_Summary', |
| 1930 | 'start': 'Secure test suites summary', |
| 1931 | 'end': 'End of Secure test suites', |
| 1932 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1933 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1934 | r"(?P<result>PASSED|FAILED)", |
| 1935 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1936 | }, |
| 1937 | { |
| 1938 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1939 | 'start': 'Non-secure test suites summary', |
| 1940 | 'end': r'End of Non-secure test suites', |
| 1941 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1942 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1943 | r"(?P<result>PASSED|FAILED)", |
| 1944 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1945 | } |
| 1946 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1947 | }, |
| 1948 | "RegressionIPC": { |
| 1949 | "binaries": { |
| 1950 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1951 | }, |
| 1952 | "monitors": [ |
| 1953 | { |
| 1954 | 'name': 'Secure_Test_Suites_Summary', |
| 1955 | 'start': 'Secure test suites summary', |
| 1956 | 'end': 'End of Secure test suites', |
| 1957 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1958 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1959 | r"(?P<result>PASSED|FAILED)", |
| 1960 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1961 | }, |
| 1962 | { |
| 1963 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1964 | 'start': 'Non-secure test suites summary', |
| 1965 | 'end': r'End of Non-secure test suites', |
| 1966 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1967 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1968 | r"(?P<result>PASSED|FAILED)", |
| 1969 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1970 | } |
| 1971 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1972 | }, |
| 1973 | "RegressionIPCTfmLevel2": { |
| 1974 | "binaries": { |
| 1975 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1976 | }, |
| 1977 | "monitors": [ |
| 1978 | { |
| 1979 | 'name': 'Secure_Test_Suites_Summary', |
| 1980 | 'start': 'Secure test suites summary', |
| 1981 | 'end': 'End of Secure test suites', |
| 1982 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1983 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1984 | r"(?P<result>PASSED|FAILED)", |
| 1985 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1986 | }, |
| 1987 | { |
| 1988 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 1989 | 'start': 'Non-secure test suites summary', |
| 1990 | 'end': r'End of Non-secure test suites', |
| 1991 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 1992 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1993 | r"(?P<result>PASSED|FAILED)", |
| 1994 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 1995 | } |
| 1996 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 1997 | }, |
| 1998 | "RegressionIPCTfmLevel3": { |
| 1999 | "binaries": { |
| 2000 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2001 | }, |
| 2002 | "monitors": [ |
| 2003 | { |
| 2004 | 'name': 'Secure_Test_Suites_Summary', |
| 2005 | 'start': 'Secure test suites summary', |
| 2006 | 'end': 'End of Secure test suites', |
| 2007 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2008 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2009 | r"(?P<result>PASSED|FAILED)", |
| 2010 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2011 | }, |
| 2012 | { |
| 2013 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2014 | 'start': 'Non-secure test suites summary', |
| 2015 | 'end': r'End of Non-secure test suites', |
| 2016 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2017 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2018 | r"(?P<result>PASSED|FAILED)", |
| 2019 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2020 | } |
| 2021 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 2022 | }, |
| 2023 | "RegressionProfileM": { |
| 2024 | "binaries": { |
| 2025 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2026 | }, |
| 2027 | "monitors": [ |
| 2028 | { |
| 2029 | 'name': 'Secure_Test_Suites_Summary', |
| 2030 | 'start': 'Secure test suites summary', |
| 2031 | 'end': 'End of Secure test suites', |
| 2032 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2033 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2034 | r"(?P<result>PASSED|FAILED)", |
| 2035 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2036 | }, |
| 2037 | { |
| 2038 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2039 | 'start': 'Non-secure test suites summary', |
| 2040 | 'end': r'End of Non-secure test suites', |
| 2041 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2042 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2043 | r"(?P<result>PASSED|FAILED)", |
| 2044 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2045 | } |
| 2046 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 2047 | }, |
| 2048 | "RegressionProfileS": { |
| 2049 | "binaries": { |
| 2050 | "firmware": "tfm.hex", |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2051 | }, |
| 2052 | "monitors": [ |
| 2053 | { |
| 2054 | 'name': 'Secure_Test_Suites_Summary', |
| 2055 | 'start': 'Secure test suites summary', |
| 2056 | 'end': 'End of Secure test suites', |
| 2057 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2058 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2059 | r"(?P<result>PASSED|FAILED)", |
| 2060 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2061 | }, |
| 2062 | { |
| 2063 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2064 | 'start': 'Non-secure test suites summary', |
| 2065 | 'end': r'End of Non-secure test suites', |
| 2066 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2067 | r"test_case_id>[^\n]+)' has(.*) " |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2068 | r"(?P<result>PASSED|FAILED)", |
| 2069 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Milosz Wasilewski | 391f397 | 2020-12-17 18:33:23 +0000 | [diff] [blame] | 2070 | } |
| 2071 | ] # Monitors |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 2072 | }, |
| 2073 | }, |
| 2074 | } |
| 2075 | |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2076 | # Musca-B1 with BL2 bootloader and OTP enabled |
| 2077 | # unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin |
| 2078 | # srec_cat bin/bl2.bin -Binary -offset 0xA000000 bin/tfm_s_ns_signed.bin -Binary -offset 0xA020000 -o tfm.hex -Intel |
| 2079 | musca_b1_otp_bl2 = { |
| 2080 | "templ": "musca_b1_otp.jinja2", |
| 2081 | "job_name": "musca_b1_opt_bl2", |
| 2082 | "device_type": "musca-b", |
Xinyu Zhang | 630dfe6 | 2021-06-17 14:38:11 +0800 | [diff] [blame] | 2083 | "job_timeout": 40, |
| 2084 | "action_timeout": 20, |
| 2085 | "monitor_timeout": 30, |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2086 | "poweroff_timeout": 40, |
| 2087 | "platforms": {"MUSCA_B1_OTP": ""}, |
Xinyu Zhang | c4bb2e1 | 2021-07-21 22:40:35 +0800 | [diff] [blame] | 2088 | "compilers": ["GNUARM"], |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2089 | "build_types": ["Debug"], |
| 2090 | "boot_types": ["BL2"], |
| 2091 | "tests": { |
| 2092 | "RegressionIPCTfmLevel3": { |
| 2093 | "binaries": { |
| 2094 | "firmware": "tfm.hex", |
| 2095 | }, |
| 2096 | "monitors": [ |
| 2097 | { |
| 2098 | 'name': 'Secure_Test_Suites_Summary', |
| 2099 | 'start': 'Secure test suites summary', |
| 2100 | 'end': 'End of Secure test suites', |
| 2101 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2102 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2103 | r"(?P<result>PASSED|FAILED)", |
| 2104 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2105 | }, |
| 2106 | { |
| 2107 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2108 | 'start': 'Non-secure test suites summary', |
| 2109 | 'end': r'End of Non-secure test suites', |
| 2110 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2111 | r"test_case_id>[^\n]+)' has(.*) " |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2112 | r"(?P<result>PASSED|FAILED)", |
| 2113 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2114 | } |
| 2115 | ] # Monitors |
| 2116 | }, |
| 2117 | }, |
| 2118 | } |
| 2119 | |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2120 | # STM32L562E-DK |
| 2121 | stm32l562e_dk = { |
| 2122 | "templ": "stm32l562e_dk.jinja2", |
| 2123 | "job_name": "stm32l562e_dk", |
| 2124 | "device_type": "stm32l562e-dk", |
| 2125 | "job_timeout": 24, |
| 2126 | "action_timeout": 15, |
| 2127 | "monitor_timeout": 15, |
| 2128 | "poweroff_timeout": 5, |
| 2129 | "platforms": {"stm32l562e_dk": ""}, |
| 2130 | "compilers": ["GNUARM", "ARMCLANG"], |
| 2131 | "build_types": ["Release", "Minsizerel"], |
| 2132 | "boot_types": ["BL2"], |
| 2133 | "tests": { |
| 2134 | "Regression": { |
| 2135 | "binaries": { |
| 2136 | "tarball": "stm32l562e-dk-tfm.tar.bz2", |
| 2137 | }, |
| 2138 | "monitors": [ |
| 2139 | { |
| 2140 | 'name': 'Secure_Test_Suites_Summary', |
| 2141 | 'start': 'Secure test suites summary', |
| 2142 | 'end': 'End of Secure test suites', |
| 2143 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2144 | r"test_case_id>[^\n]+)' has(.*) " |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2145 | r"(?P<result>PASSED|FAILED)", |
| 2146 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2147 | }, |
| 2148 | { |
| 2149 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2150 | 'start': 'Non-secure test suites summary', |
| 2151 | 'end': 'End of Non-secure test suites', |
| 2152 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2153 | r"test_case_id>[^\n]+)' has(.*) " |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2154 | r"(?P<result>PASSED|FAILED)", |
| 2155 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2156 | } |
| 2157 | ] # Monitors |
| 2158 | }, |
| 2159 | "RegressionIPC": { |
| 2160 | "binaries": { |
| 2161 | "tarball": "stm32l562e-dk-tfm.tar.bz2", |
| 2162 | }, |
| 2163 | "monitors": [ |
| 2164 | { |
| 2165 | 'name': 'Secure_Test_Suites_Summary', |
| 2166 | 'start': 'Secure test suites summary', |
| 2167 | 'end': 'End of Secure test suites', |
| 2168 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2169 | r"test_case_id>[^\n]+)' has(.*) " |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2170 | r"(?P<result>PASSED|FAILED)", |
| 2171 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2172 | }, |
| 2173 | { |
| 2174 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2175 | 'start': 'Non-secure test suites summary', |
| 2176 | 'end': 'End of Non-secure test suites', |
| 2177 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2178 | r"test_case_id>[^\n]+)' has(.*) " |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2179 | r"(?P<result>PASSED|FAILED)", |
| 2180 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2181 | } |
| 2182 | ] # Monitors |
| 2183 | }, |
| 2184 | "RegressionIPCTfmLevel2": { |
| 2185 | "binaries": { |
| 2186 | "tarball": "stm32l562e-dk-tfm.tar.bz2", |
| 2187 | }, |
| 2188 | "monitors": [ |
| 2189 | { |
| 2190 | 'name': 'Secure_Test_Suites_Summary', |
| 2191 | 'start': 'Secure test suites summary', |
| 2192 | 'end': 'End of Secure test suites', |
| 2193 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2194 | r"test_case_id>[^\n]+)' has(.*) " |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2195 | r"(?P<result>PASSED|FAILED)", |
| 2196 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2197 | }, |
| 2198 | { |
| 2199 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2200 | 'start': 'Non-secure test suites summary', |
| 2201 | 'end': 'End of Non-secure test suites', |
| 2202 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2203 | r"test_case_id>[^\n]+)' has(.*) " |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2204 | r"(?P<result>PASSED|FAILED)", |
| 2205 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2206 | } |
| 2207 | ] # Monitors |
| 2208 | }, |
| 2209 | "RegressionIPCTfmLevel3": { |
| 2210 | "binaries": { |
| 2211 | "tarball": "stm32l562e-dk-tfm.tar.bz2", |
| 2212 | }, |
| 2213 | "monitors": [ |
| 2214 | { |
| 2215 | 'name': 'Secure_Test_Suites_Summary', |
| 2216 | 'start': 'Secure test suites summary', |
| 2217 | 'end': 'End of Secure test suites', |
| 2218 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2219 | r"test_case_id>[^\n]+)' has(.*) " |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2220 | r"(?P<result>PASSED|FAILED)", |
| 2221 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2222 | }, |
| 2223 | { |
| 2224 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2225 | 'start': 'Non-secure test suites summary', |
| 2226 | 'end': 'End of Non-secure test suites', |
| 2227 | 'pattern': r"Test suite '(?P<" |
Arthur She | 60bf900 | 2021-09-01 08:34:35 -0700 | [diff] [blame] | 2228 | r"test_case_id>[^\n]+)' has(.*) " |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2229 | r"(?P<result>PASSED|FAILED)", |
| 2230 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2231 | } |
| 2232 | ] # Monitors |
| 2233 | }, |
| 2234 | }, |
| 2235 | } |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2236 | |
Arthur She | 3c0dadd | 2021-11-18 21:17:48 -0800 | [diff] [blame] | 2237 | # LPCxpresso55S69 |
| 2238 | lpcxpresso55s69 = { |
| 2239 | "templ": "lpcxpresso55s69.jinja2", |
| 2240 | "job_name": "lpcxpresso55s69", |
| 2241 | "device_type": "lpcxpresso55s69", |
| 2242 | "job_timeout": 24, |
| 2243 | "action_timeout": 15, |
| 2244 | "monitor_timeout": 15, |
| 2245 | "poweroff_timeout": 5, |
| 2246 | "platforms": {"lpcxpresso55s69": ""}, |
| 2247 | "compilers": ["GNUARM"], |
| 2248 | "build_types": ["Relwithdebinfo"], |
| 2249 | "boot_types": ["NOBL2"], |
| 2250 | "tests": { |
| 2251 | "DefaultProfileM": { |
| 2252 | "binaries": { |
| 2253 | "tarball": "lpcxpresso55s69-tfm.tar.bz2", |
| 2254 | }, |
| 2255 | "monitors": [ |
| 2256 | { |
| 2257 | 'name': 'Secure_Test_Suites_Summary', |
| 2258 | 'start': 'Non-Secure system', |
| 2259 | 'end': r'starting\\.{3}', |
| 2260 | 'pattern': r'Non-Secure system starting\\.{3}', |
| 2261 | 'fixup': {"pass": "!", "fail": ""}, |
| 2262 | } |
| 2263 | ] # Monitors |
| 2264 | }, |
| 2265 | "RegressionProfileM": { |
| 2266 | "binaries": { |
| 2267 | "tarball": "lpcxpresso55s69-tfm.tar.bz2", |
| 2268 | }, |
| 2269 | "monitors": [ |
| 2270 | { |
| 2271 | 'name': 'Secure_Test_Suites_Summary', |
| 2272 | 'start': 'Secure test suites summary', |
| 2273 | 'end': 'End of Secure test suites', |
| 2274 | 'pattern': r"Test suite '(?P<" |
| 2275 | r"test_case_id>[^\n]+)' has(.*) " |
| 2276 | r"(?P<result>PASSED|FAILED)", |
| 2277 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 3c0dadd | 2021-11-18 21:17:48 -0800 | [diff] [blame] | 2278 | }, |
| 2279 | { |
| 2280 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2281 | 'start': 'Non-secure test suites summary', |
| 2282 | 'end': 'End of Non-secure test suites', |
| 2283 | 'pattern': r"Test suite '(?P<" |
| 2284 | r"test_case_id>[^\n]+)' has(.*) " |
| 2285 | r"(?P<result>PASSED|FAILED)", |
| 2286 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 3c0dadd | 2021-11-18 21:17:48 -0800 | [diff] [blame] | 2287 | } |
| 2288 | ] # Monitors |
| 2289 | }, |
| 2290 | } |
| 2291 | } |
| 2292 | |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2293 | # Cypress PSoC64 |
| 2294 | psoc64 = { |
| 2295 | "templ": "psoc64.jinja2", |
| 2296 | "job_name": "psoc64", |
| 2297 | "device_type": "cy8ckit-064s0s2-4343w", |
| 2298 | "job_timeout": 120, |
| 2299 | "action_timeout": 120, |
| 2300 | "monitor_timeout": 120, |
| 2301 | "poweroff_timeout": 5, |
| 2302 | "platforms": {"psoc64": ""}, |
| 2303 | "compilers": ["GNUARM", "ARMCLANG"], |
| 2304 | "build_types": ["Release", "Minsizerel"], |
| 2305 | "boot_types": ["NOBL2"], |
| 2306 | "tests": { |
| 2307 | "Regression": { |
| 2308 | "binaries": { |
| 2309 | "spe_image": "tfm_s_signed.hex", |
| 2310 | "nspe_image": "tfm_ns_signed.hex", |
| 2311 | }, |
| 2312 | "monitors": [ |
| 2313 | { |
| 2314 | 'name': 'Secure_Test_Suites_Summary', |
| 2315 | 'start': 'Secure test suites summary', |
| 2316 | 'end': 'End of Secure test suites', |
| 2317 | 'pattern': r"Test suite '(?P<" |
| 2318 | r"test_case_id>[^\n]+)' has(.*) " |
| 2319 | r"(?P<result>PASSED|FAILED)", |
| 2320 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2321 | }, |
| 2322 | { |
| 2323 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2324 | 'start': 'Non-secure test suites summary', |
| 2325 | 'end': 'End of Non-secure test suites', |
| 2326 | 'pattern': r"Test suite '(?P<" |
| 2327 | r"test_case_id>[^\n]+)' has(.*) " |
| 2328 | r"(?P<result>PASSED|FAILED)", |
| 2329 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2330 | } |
| 2331 | ] # Monitors |
| 2332 | }, |
| 2333 | "RegressionIPC": { |
| 2334 | "binaries": { |
| 2335 | "spe_image": "tfm_s_signed.hex", |
| 2336 | "nspe_image": "tfm_ns_signed.hex", |
| 2337 | }, |
| 2338 | "monitors": [ |
| 2339 | { |
| 2340 | 'name': 'Secure_Test_Suites_Summary', |
| 2341 | 'start': 'Secure test suites summary', |
| 2342 | 'end': 'End of Secure test suites', |
| 2343 | 'pattern': r"Test suite '(?P<" |
| 2344 | r"test_case_id>[^\n]+)' has(.*) " |
| 2345 | r"(?P<result>PASSED|FAILED)", |
| 2346 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2347 | }, |
| 2348 | { |
| 2349 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2350 | 'start': 'Non-secure test suites summary', |
| 2351 | 'end': 'End of Non-secure test suites', |
| 2352 | 'pattern': r"Test suite '(?P<" |
| 2353 | r"test_case_id>[^\n]+)' has(.*) " |
| 2354 | r"(?P<result>PASSED|FAILED)", |
| 2355 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2356 | } |
| 2357 | ] # Monitors |
| 2358 | }, |
| 2359 | "RegressionIPCTfmLevel2": { |
| 2360 | "binaries": { |
| 2361 | "spe_image": "tfm_s_signed.hex", |
| 2362 | "nspe_image": "tfm_ns_signed.hex", |
| 2363 | }, |
| 2364 | "monitors": [ |
| 2365 | { |
| 2366 | 'name': 'Secure_Test_Suites_Summary', |
| 2367 | 'start': 'Secure test suites summary', |
| 2368 | 'end': 'End of Secure test suites', |
| 2369 | 'pattern': r"Test suite '(?P<" |
| 2370 | r"test_case_id>[^\n]+)' has(.*) " |
| 2371 | r"(?P<result>PASSED|FAILED)", |
| 2372 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2373 | }, |
| 2374 | { |
| 2375 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2376 | 'start': 'Non-secure test suites summary', |
| 2377 | 'end': 'End of Non-secure test suites', |
| 2378 | 'pattern': r"Test suite '(?P<" |
| 2379 | r"test_case_id>[^\n]+)' has(.*) " |
| 2380 | r"(?P<result>PASSED|FAILED)", |
| 2381 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2382 | } |
| 2383 | ] # Monitors |
| 2384 | }, |
| 2385 | "RegressionIPCTfmLevel3": { |
| 2386 | "binaries": { |
| 2387 | "spe_image": "tfm_s_signed.hex", |
| 2388 | "nspe_image": "tfm_ns_signed.hex", |
| 2389 | }, |
| 2390 | "monitors": [ |
| 2391 | { |
| 2392 | 'name': 'Secure_Test_Suites_Summary', |
| 2393 | 'start': 'Secure test suites summary', |
| 2394 | 'end': 'End of Secure test suites', |
| 2395 | 'pattern': r"Test suite '(?P<" |
| 2396 | r"test_case_id>[^\n]+)' has(.*) " |
| 2397 | r"(?P<result>PASSED|FAILED)", |
| 2398 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2399 | }, |
| 2400 | { |
| 2401 | 'name': 'Non_Secure_Test_Suites_Summary', |
| 2402 | 'start': 'Non-secure test suites summary', |
| 2403 | 'end': 'End of Non-secure test suites', |
| 2404 | 'pattern': r"Test suite '(?P<" |
| 2405 | r"test_case_id>[^\n]+)' has(.*) " |
| 2406 | r"(?P<result>PASSED|FAILED)", |
| 2407 | 'fixup': {"pass": "PASSED", "fail": "FAILED"}, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2408 | } |
| 2409 | ] # Monitors |
| 2410 | }, |
| 2411 | }, |
| 2412 | } |
| 2413 | |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 2414 | # All configurations should be mapped here |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 2415 | lava_gen_config_map = { |
| 2416 | "mps2_an521_bl2": tfm_mps2_sse_200, |
| 2417 | "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2, |
| 2418 | "fvp_mps2_an521_nobl2": fvp_mps2_an521_nobl2, |
| 2419 | "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2, |
| 2420 | "fvp_mps2_an519_nobl2": fvp_mps2_an519_nobl2, |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 2421 | "qemu_mps2_bl2": qemu_mps2_bl2, |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 2422 | "musca_b1": musca_b1_bl2, |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 2423 | "musca_b1_otp": musca_b1_otp_bl2, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 2424 | "stm32l562e_dk": stm32l562e_dk, |
Arthur She | 3c0dadd | 2021-11-18 21:17:48 -0800 | [diff] [blame] | 2425 | "lpcxpresso55s69": lpcxpresso55s69, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 2426 | "psoc64": psoc64, |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 2427 | } |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 2428 | |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 2429 | lavagen_config_sort_order = [ |
| 2430 | "templ", |
| 2431 | "job_name", |
| 2432 | "device_type", |
| 2433 | "job_timeout", |
| 2434 | "action_timeout", |
| 2435 | "monitor_timeout", |
| 2436 | "recovery_store_url", |
| 2437 | "artifact_store_url", |
| 2438 | "platforms", |
| 2439 | "compilers", |
| 2440 | "build_types", |
| 2441 | "boot_types", |
| 2442 | "tests" |
| 2443 | ] |
| 2444 | |
| 2445 | lava_gen_monitor_sort_order = [ |
| 2446 | 'name', |
| 2447 | 'start', |
| 2448 | 'end', |
| 2449 | 'pattern', |
| 2450 | 'fixup', |
| 2451 | ] |
| 2452 | |
| 2453 | if __name__ == "__main__": |
| 2454 | import os |
| 2455 | import sys |
| 2456 | from lava_helper import sort_lavagen_config |
| 2457 | try: |
| 2458 | from tfm_ci_pylib.utils import export_config_map |
| 2459 | except ImportError: |
| 2460 | dir_path = os.path.dirname(os.path.realpath(__file__)) |
| 2461 | sys.path.append(os.path.join(dir_path, "../")) |
| 2462 | from tfm_ci_pylib.utils import export_config_map |
| 2463 | |
| 2464 | if len(sys.argv) == 2: |
| 2465 | if sys.argv[1] == "--export": |
| 2466 | export_config_map(lava_gen_config_map) |
| 2467 | if len(sys.argv) == 3: |
| 2468 | if sys.argv[1] == "--export": |
| 2469 | export_config_map(sort_lavagen_config(lava_gen_config_map), |
| 2470 | sys.argv[2]) |