/Zephyr-latest/scripts/west_commands/tests/ |
D | test_nxp_s32dbg.py | 120 def s32dbg(runner_config, tmp_path): argument 124 (tmp_path / RC_KERNEL_ELF).touch() 125 os.chdir(tmp_path) 127 runner_config_patched = fix_up_runner_config(runner_config, tmp_path) 141 def fix_up_runner_config(runner_config, tmp_path): argument 144 zephyr = tmp_path / 'zephyr' 148 to_replace['build_dir'] = tmp_path 196 s32dbg_args, expected, osname, s32dbg, tmp_path): argument 199 temporary_dir.return_value.__enter__.return_value = tmp_path 200 gdb_script = tmp_path / 'runner.nxp_s32dbg' [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | binary_adapter_test.py | 30 def fixture_device_adapter(tmp_path: Path) -> Generator[NativeSimulatorAdapter, None, None]: 31 build_dir = tmp_path / 'build_dir' 205 def test_if_custom_binary_adapter_get_command_returns_proper_string(patched_which, tmp_path: Path) … 206 device = CustomSimulatorAdapter(DeviceConfig(build_dir=tmp_path, type='custom')) 209 assert device.command == ['west', 'build', '-d', str(tmp_path), '-t', 'run'] 213 def test_if_custom_binary_adapter_raise_exception_when_west_not_found(patched_which, tmp_path: Path… 214 device = CustomSimulatorAdapter(DeviceConfig(build_dir=tmp_path, type='custom')) 219 def test_if_unit_binary_adapter_get_command_returns_proper_string(tmp_path: Path) -> None: 220 device = UnitSimulatorAdapter(DeviceConfig(build_dir=tmp_path, type='unit')) 223 assert device.command == [str(tmp_path / 'testbinary')]
|
D | qemu_adapter_test.py | 18 def fixture_device_adapter(tmp_path) -> Generator[QemuAdapter, None, None]: argument 19 build_dir = tmp_path / 'build_dir'
|
D | hardware_adapter_test.py | 18 def fixture_adapter(tmp_path) -> HardwareAdapter: argument 19 build_dir = tmp_path / 'build_dir' 192 def test_device_log_correct_error_handle(patched_popen, device: HardwareAdapter, tmp_path: Path) ->… 196 device.device_config.build_dir = tmp_path 198 'west', 'flash', '--skip-rebuild', '--build-dir', str(tmp_path),
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/ |
D | plugin_test.py | 31 tmp_path: Path, 48 build_dir = tmp_path / 'build_dir'
|
D | conftest.py | 46 tmp_path: Path, shell_simulator_path: str 48 build_dir = tmp_path / 'build_dir'
|
/Zephyr-latest/scripts/tests/twister/ |
D | test_harness.py | 196 def test_robot_configure(tmp_path): argument 206 outdir = tmp_path / "gtest_out" 227 def test_robot_handle(tmp_path): argument 237 outdir = tmp_path / "gtest_out" 268 def test_robot_run_robot_test(tmp_path, caplog, exp_out, returncode, expected_status): argument 287 outdir = tmp_path / "gtest_out" 331 def test_console_configure(tmp_path, type, num_patterns): argument 341 outdir = tmp_path / "gtest_out" 392 tmp_path, line_type, ordered_val, exp_state, line, exp_fault, exp_capture argument 402 outdir = tmp_path / "gtest_out" [all …]
|
D | test_testplan.py | 254 def test_add_instances_short(tmp_path, class_env, all_testsuites_dict, platforms_list): argument 261 class_env.outdir = tmp_path 465 def test_testplan_parse_configuration(tmp_path, config_yaml, expected_scenarios): argument 469 tmp_config_file = tmp_path / 'config_file.yaml' 551 tmp_path, argument 562 tmp_qf = tmp_path / qf 568 quarantine_list=[tmp_path / qf for qf in ql], 608 tmp_path, argument 644 twister_file = tmp_path / 'twister.json' 673 twister_suffix_file = tmp_path / 'twister_suffix.json' [all …]
|
D | test_scl.py | 252 def test_yaml_load_empty_file(tmp_path): argument 253 quarantine_file = tmp_path / 'empty_quarantine.yml'
|
D | test_testinstance.py | 608 def test_testinstance_get_elf_file(caplog, tmp_path, testinstance, sysbuild, expected_error): argument 609 sysbuild_dir = tmp_path / 'sysbuild' 641 def test_testinstance_get_buildlog_file(tmp_path, testinstance, create_build_log, expected_error): argument 643 build_dir = tmp_path / 'build'
|
D | test_handlers.py | 42 def mocked_instance(tmp_path): argument 49 build_dir = tmp_path / 'build_dir' 1978 tmp_path, argument
|
D | test_runner.py | 40 def mocked_instance(tmp_path): argument 49 build_dir = tmp_path / 'build_dir'
|
/Zephyr-latest/scripts/dts/python-devicetree/tests/ |
D | test_dtlib.py | 311 def test_incbin(tmp_path): argument 317 open(tmp_path / "tmp_bin", "wb").write(b"\00\01\02\03") 352 include_path=(tmp_path,)) 994 def test_include_curdir(tmp_path): argument 998 with temporary_chdir(tmp_path): 1032 def test_include_is_lexical(tmp_path): argument 1037 with open(tmp_path / "tmp2.dts", "w") as f: 1042 with open(tmp_path / "tmp3.dts", "w") as f: 1047 subdir_1 = tmp_path / "subdir-1" 1054 subdir_2 = tmp_path / "subdir-2" [all …]
|
D | test_edtlib.py | 769 def test_slice_errs(tmp_path): argument 772 dts_file = tmp_path / "error.dts" 826 def test_bad_compatible(tmp_path): argument 830 dts_file = tmp_path / "error.dts"
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | conftest.py | 68 def provide_out(tmp_path, request): argument 77 out_container_path = tmp_path / 'blackbox-out-container'
|
/Zephyr-latest/scripts/west_commands/completion/ |
D | west-completion.fish | 211 set -l tmp_path (path normalize /(string join "/" $cwd_split)) 213 if test -d $tmp_path/.west 214 echo "$tmp_path" 218 if test -z "$tmp_path" -o $tmp_path = "/" 223 set tmp_path (string join "/" $cwd_split)
|