/scripts/pylib/pytest-twister-harness/tests/ |
A D | conftest.py | 8 from pathlib import Path 18 def resources() -> Path: 20 return Path(__file__).parent.joinpath('resources') 35 …pytest_twister_harness_path = str(Path(zephyr_base) / 'scripts' / 'pylib' / 'pytest-twister-harnes… 40 def shell_simulator_path(resources: Path) -> str: argument 46 tmp_path: Path, shell_simulator_path: str argument
|
A D | plugin_test.py | 7 from pathlib import Path 31 tmp_path: Path, argument
|
/scripts/west_commands/runners/ |
A D | trace32.py | 10 from pathlib import Path 15 DEFAULT_T32_CONFIG = Path('config.t32') 31 t32_cfg: Path, argument 38 self.t32_exec: Path | None = None 39 self.startup_dir = Path(cfg.board_dir) / 'support' 60 type=Path, 97 self.t32_exec = Path(t32_dir) / 'bin' / os_name / f't32m{self.arch}{suffix}' 102 self.t32_cfg = Path(t32_dir) / self.t32_cfg 120 tmp_cfg = Path(tmp_dir) / DEFAULT_T32_CONFIG.name 137 cfg: Path | None = None) -> list[str]:
|
A D | stlink_gdbserver.py | 14 from pathlib import Path 23 def _get_stm32cubeclt_paths(cls) -> tuple[Path, Path]: 30 def find_highest_clt_version(tools_folder: Path) -> Path | None: argument 36 installations: list[tuple[int, Path]] = [] 63 return (Path(gdbserv), Path(cubeprg).parent) 78 clt = find_highest_clt_version(Path(search_path)) 150 elf_path = Path(self.cfg.elf_file).as_posix()
|
A D | stm32cubeprogrammer.py | 15 from pathlib import Path 42 cli: Path | None, 89 def _get_stm32cubeprogrammer_path() -> Path: 95 return Path(cmd) 98 Path.home() 109 return Path(cmd) 112 Path("STMicroelectronics") 118 x86_path = Path(os.environ["PROGRAMFILES(X86)"]) / cli 122 return Path(os.environ["PROGRAMW6432"]) / cli 126 Path("/Applications") [all …]
|
/scripts/pylib/pytest-twister-harness/src/twister_harness/ |
A D | twister_harness_config.py | 9 from pathlib import Path 20 build_dir: Path 34 pre_script: Path | None = None 35 post_script: Path | None = None 36 post_flash_script: Path | None = None 38 app_build_dir: Path | None = None 95 def _cast_to_path(path: str | None) -> Path | None: 98 return Path(path)
|
/scripts/pylib/pytest-twister-harness/tests/device/ |
A D | hardware_adapter_test.py | 7 from pathlib import Path 40 device.device_config.build_dir = Path('build') 48 device.device_config.build_dir = Path('build') 59 device.device_config.build_dir = Path('build') 70 device.device_config.build_dir = Path('build') 83 device.device_config.build_dir = Path('build') 96 device.device_config.build_dir = Path('build') 108 device.device_config.build_dir = Path('build') 120 device.device_config.build_dir = Path('build') 133 device.device_config.build_dir = Path('build') [all …]
|
/scripts/west_commands/ |
A D | patch.py | 14 from pathlib import Path 20 sys.path.append(os.fspath(Path(__file__).parent.parent)) 34 WEST_PATCH_BASE = Path("zephyr") / "patches" 35 WEST_PATCH_YAML = Path("zephyr") / "patches.yml" 110 type=Path, 119 type=Path, 126 type=Path, 235 type=Path, 273 topdir = Path(self.topdir) 545 topdir = Path(self.topdir) [all …]
|
A D | sdk.py | 20 from pathlib import Path 216 zephyr_base = Path(__file__).parents[2] 343 desc=Path(file.name).name, 378 dest_dir = Path(base_dir / dir_name) 393 setup = Path(sdk_dir) / "setup.cmd" 396 setup = Path(sdk_dir) / "setup.sh" 486 dir_name = Path(args.install_dir).name 488 base_dir = Path(args.install_base) 491 base_dir = Path("~").expanduser() 498 sdk_dir = Path(installed_info[0]["path"]) [all …]
|
A D | build_helpers.py | 15 from pathlib import Path 62 parts = Path(fmt).parts 63 b = Path('.') 71 b = Path(str(b).format(**kwargs)) 152 domains_file = Path(path) / 'domains.yaml'
|
A D | zephyr_ext_common.py | 13 from pathlib import Path 19 THIS_ZEPHYR = Path(__file__).parent.parent.parent 20 ZEPHYR_BASE = Path(os.environ.get('ZEPHYR_BASE', THIS_ZEPHYR))
|
A D | flash.py | 9 from pathlib import Path 31 domains_file = Path(build_dir) / 'domains.yaml'
|
A D | shields.py | 11 from pathlib import Path 16 sys.path.append(os.fspath(Path(__file__).parent.parent)) 80 modules_board_roots.append(Path(module.project) / board_root)
|
/scripts/west_commands/fetchers/ |
A D | __init__.py | 8 from pathlib import Path 32 fetchers_dir = Path(__file__).parent.resolve() 34 file = fetchers_dir / Path(f)
|
A D | core.py | 6 from pathlib import Path 22 def fetch(self, url: str, path: Path): argument
|
/scripts/tests/twister/ |
A D | test_twister.py | 15 from pathlib import Path 56 …filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_data/test_data_with_deprecation_warning… 57 schema = scl.yaml_load(Path(ZEPHYR_BASE) / "scripts/schemas/twister/testsuite-schema.yaml") 99 filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_twister.py"
|
A D | test_errors.py | 12 from pathlib import Path 19 cfile = Path('some') / 'path'
|
/scripts/utils/ |
A D | migrate_bindings_style.py | 13 from pathlib import Path 18 BINDINGS_PATH = [Path("dts/bindings/")] 20 with open(Path(__file__).parents[1] / 'bindings_properties_allowlist.yaml') as f: 30 parse.add_argument("--path", nargs="+", help="User binding path directory", type=Path)
|
A D | migrate_includes.py | 21 from pathlib import Path 23 ZEPHYR_BASE = Path(__file__).parents[2] 79 "-p", "--project", type=Path, required=True, help="Zephyr-based project path"
|
A D | migrate_mcumgr_kconfigs.py | 17 from pathlib import Path 22 ZEPHYR_BASE = Path(__file__).parents[2] 156 "-r", "--root", type=Path, required=True, help="Zephyr-based project path"
|
A D | migrate_posix_kconfigs.py | 23 from pathlib import Path 25 ZEPHYR_BASE = Path(__file__).parents[2] 139 type=Path,
|
/scripts/ci/ |
A D | errno.py | 16 from pathlib import Path 33 minimal = Path("lib/libc/minimal/include/errno.h") 34 newlib = Path("arm-zephyr-eabi/arm-zephyr-eabi/include/sys/errno.h")
|
/scripts/ |
A D | snippets.py | 19 from pathlib import Path, PurePosixPath 51 def process_data(self, pathobj: Path, snippet_data: dict, sysbuild: bool): argument 86 self.paths: Set[Path] = set() 186 SCHEMA_PATH = str(Path(__file__).parent / 'schemas' / 'snippet-schema.yml') 210 parser.add_argument('--snippet-root', default=[], action='append', type=Path, 216 parser.add_argument('--cmake-out', type=Path, 263 def process_snippets_in(root_dir: Path, snippets: Snippets, sysbuild: bool) -> None: argument 280 snippet_yml = Path(dirpath) / SNIPPET_YML 288 def load_snippet_yml(snippet_yml: Path) -> dict: argument 330 def write_cmake_out(snippets: Snippets, cmake_out: Path) -> None: argument
|
/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/ |
A D | domains_helper.py | 10 from pathlib import Path 21 def get_default_domain_name(domains_file: Path | str) -> int:
|
/scripts/west_commands/tests/ |
A D | test_nxp_s32dbg.py | 6 from pathlib import Path 27 TEST_SERVER_CMD = Path('S32DS') / 'tools' / 'S32Debugger' / 'Debugger' / 'Server' / 'gta' / 'gta' 28 TEST_ARM_GDB_CMD = Path('S32DS') / 'tools' / 'gdb-arm' / 'arm32-eabi' / 'bin' / 'arm-none-eabi-gdb-… 30 TEST_S32DS_PYTHON_LIB = Path('S32DS') / 'build_tools' / 'msys32' / 'mingw64' / 'lib' / 'python3.10' 155 assert Path(program).stem == TEST_S32DS_CMD 160 return Path(f'{name}.py')
|