Lines Matching +full:board +full:- +full:schema

4 # Copyright (c) 2018-2024 Intel Corporation
7 # SPDX-License-Identifier: Apache-2.0
28 print("Install the anytree module to use the --test-tree option")
50 "python-devicetree", "src"))
51 from devicetree import edtlib # pylint: disable=unused-import
86 config_re = re.compile('(CONFIG_[A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
87 dt_re = re.compile('([A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
91 "scripts", "schemas", "twister", "testsuite-schema.yaml"))
94 "scripts", "schemas", "twister", "quarantine-schema.yaml"))
101 "test-config-schema.yaml"
186 print(f" - {test}")
221 # validate quarantine yaml file against the provided schema
245 # If the platform does not exist in the hardware map or was not specified by --platform,
288 # the execution order is: "plat1-testA, plat1-testB, ...,
289 # plat1-testZ, plat2-testA, ...". For hardware tests
292 # "plat1-testA, plat2-testA, ..., plat1-testB, plat2-testB, ..."
317 num_extra_sets = total - (per_set * sets)
323 start = (subset - 1) * (per_set + 1)
327 start = ((subset - num_extra_sets - 1) * per_set) + base
335 # add all pre-filtered tests that are skipped or got error status
350 logger.info("Test tree is always shown with detailed test-id.")
355 logger.info("Test list is always shown with detailed test-id.")
369 msg += (f"- {dupe} found in:\n")
371 msg += (f" - {dc.yamlfile}\n")
382 print(f"- {t}")
429 print(f" - {test}")
440 """Find the twister data for a board in the list of board data based on the aliases"""
446 # Create a list of board roots as defined by the build system in general
447 # Note, internally in twister a board root includes the `boards` folder
448 # but in Zephyr build system, the board root is without the `boards` in folder path.
451 board_roots=board_roots, board=None, board_dir=None)
458 def init_and_add_platforms(data, board, target, qualifier, aliases): argument
461 data = self.find_twister_data(bdirs[board.dir], aliases)
464 platform.load(board, target, aliases, data)
467 logger.error(f"Duplicate platform {platform.name} in {board.dir}")
473 for board in known_boards.values():
475 # don't load the same board data twice
476 if not bdirs.get(board.dir):
478 for file in glob.glob(os.path.join(board.dir, "*.yaml")):
489 bdirs[board.dir] = datas
491 if os.path.exists(board.dir / 'twister.yaml'):
493 scp = TwisterConfigParser(board.dir / 'twister.yaml', Platform.platform_schema)
496 logger.error(f"Error loading {board.dir / 'twister.yaml'}: {e!r}")
503 for qual in list_boards.board_v2_qualifiers(board):
505 if board.revisions:
506 for rev in board.revisions:
508 target = f"{board.name}@{rev.name}/{qual}"
510 if rev.name == board.revision_default:
511 aliases.append(f"{board.name}/{qual}")
512 if '/' not in qual and len(board.socs) == 1:
513 if rev.name == board.revision_default:
514 aliases.append(f"{board.name}")
515 aliases.append(f"{board.name}@{rev.name}")
517 target = f"{board.name}/{qual}"
519 if '/' not in qual and len(board.socs) == 1 \
520 and rev.name == board.revision_default:
521 aliases.append(f"{board.name}")
523 init_and_add_platforms(data, board, target, qual, aliases)
525 target = f"{board.name}/{qual}"
527 if '/' not in qual and len(board.socs) == 1:
528 aliases.append(board.name)
529 init_and_add_platforms(data, board, target, qual, aliases)
651 logger.debug(f"Skip - {msg}")
734 # test marked as built only can run when --test-only is used.
808 # When --all used, any --platform arguments ignored
1064 # snippet applies to all boards and further platform-specific checks
1071 match = re.search(this_board[1:-1], plat.name)
1239 Verify if platform name (passed by --platform option, or in yaml file
1240 as platform_allow or integration_platforms options) is correct. If not -
1250 logger.error(f"{log_info} - unrecognized platform - {platform}")
1256 Iterate through all no-skipped instances in suite and create links
1273 path and link them with original path - create link. At the end