Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 89) sorted by relevance

1234

/scripts/pylib/pytest-twister-harness/tests/
A Dconftest.py8 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 Dplugin_test.py7 from pathlib import Path
31 tmp_path: Path, argument
/scripts/west_commands/runners/
A Dtrace32.py10 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 Dstlink_gdbserver.py14 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 Dstm32cubeprogrammer.py15 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 Dtwister_harness_config.py9 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 Dhardware_adapter_test.py7 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 Dpatch.py14 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 Dsdk.py20 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 Dbuild_helpers.py15 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 Dzephyr_ext_common.py13 from pathlib import Path
19 THIS_ZEPHYR = Path(__file__).parent.parent.parent
20 ZEPHYR_BASE = Path(os.environ.get('ZEPHYR_BASE', THIS_ZEPHYR))
A Dflash.py9 from pathlib import Path
31 domains_file = Path(build_dir) / 'domains.yaml'
A Dshields.py11 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__.py8 from pathlib import Path
32 fetchers_dir = Path(__file__).parent.resolve()
34 file = fetchers_dir / Path(f)
A Dcore.py6 from pathlib import Path
22 def fetch(self, url: str, path: Path): argument
/scripts/tests/twister/
A Dtest_twister.py15 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 Dtest_errors.py12 from pathlib import Path
19 cfile = Path('some') / 'path'
/scripts/utils/
A Dmigrate_bindings_style.py13 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 Dmigrate_includes.py21 from pathlib import Path
23 ZEPHYR_BASE = Path(__file__).parents[2]
79 "-p", "--project", type=Path, required=True, help="Zephyr-based project path"
A Dmigrate_mcumgr_kconfigs.py17 from pathlib import Path
22 ZEPHYR_BASE = Path(__file__).parents[2]
156 "-r", "--root", type=Path, required=True, help="Zephyr-based project path"
A Dmigrate_posix_kconfigs.py23 from pathlib import Path
25 ZEPHYR_BASE = Path(__file__).parents[2]
139 type=Path,
/scripts/ci/
A Derrno.py16 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 Dsnippets.py19 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 Ddomains_helper.py10 from pathlib import Path
21 def get_default_domain_name(domains_file: Path | str) -> int:
/scripts/west_commands/tests/
A Dtest_nxp_s32dbg.py6 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')

Completed in 29 milliseconds

1234