Home
last modified time | relevance | path

Searched refs:device_config (Results 1 – 21 of 21) sorted by relevance

/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/
Dhardware_adapter_test.py21 device_config = DeviceConfig(
29 return HardwareAdapter(device_config)
40 device.device_config.build_dir = Path('build')
48 device.device_config.build_dir = Path('build')
49 device.device_config.runner = 'pyocd'
59 device.device_config.build_dir = Path('build')
60 device.device_config.runner = 'nrfjprog'
70 device.device_config.build_dir = Path('build')
71 device.device_config.runner = 'openocd'
72 device.device_config.product = 'STM32 STLink'
[all …]
Dqemu_adapter_test.py30 device.device_config.app_build_dir = Path('build_dir')
36 fifo_file_path = str(device.device_config.build_dir / 'qemu-fifo')
Dbinary_adapter_test.py201 assert device.command == [str(device.device_config.build_dir / 'zephyr' / 'zephyr.exe')]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/
Dhardware_adapter.py31 def __init__(self, device_config: DeviceConfig) -> None:
32 super().__init__(device_config)
33 self._flashing_timeout: float = device_config.flash_timeout
38 self.device_log_path: Path = device_config.build_dir / 'device.log'
47 '--build-dir', str(self.device_config.build_dir),
51 if self.device_config.west_flash_extra_args:
52 command_extra_args.extend(self.device_config.west_flash_extra_args)
54 if self.device_config.runner:
67 runner = self.device_config.runner
69 if self.device_config.runner_params:
[all …]
Dbinary_adapter.py20 def __init__(self, device_config: DeviceConfig) -> None:
24 super().__init__(device_config)
31 'cwd': device_config.app_build_dir,
122 self.command = [str(self.device_config.app_build_dir / 'zephyr' / 'zephyr.exe')]
130 self.command = [str(self.device_config.app_build_dir / 'testbinary')]
136 … self.command = [self.west, 'build', '-d', str(self.device_config.app_build_dir), '-t', 'run']
Dqemu_adapter.py19 def __init__(self, device_config: DeviceConfig) -> None:
20 super().__init__(device_config)
21 qemu_fifo_file_path = self.device_config.build_dir / 'qemu-fifo'
26 … self.command = [self.west, 'build', '-d', str(self.device_config.app_build_dir), '-t', 'run']
Ddevice_adapter.py35 def __init__(self, device_config: DeviceConfig) -> None:
39 self.device_config: DeviceConfig = device_config
40 self.base_timeout: float = device_config.base_timeout
48 self.handler_log_path: Path = device_config.build_dir / 'handler.log'
70 if self.device_config.extra_test_args:
71 self.command.extend(self.device_config.extra_test_args.split())
73 if self.device_config.type != 'hardware':
83 if self.device_config.flash_before:
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/
Dfixtures.py32 device_config: DeviceConfig = twister_harness_config.devices[0]
33 device_type = device_config.type
35 device_object = device_class(device_config)
72 if prompt := find_in_config(Path(dut.device_config.app_build_dir) / 'zephyr' / '.config',
78 if dut.device_config.type == 'hardware':
94 yield MCUmgr.create_for_serial(dut.device_config.serial)
/Zephyr-latest/tests/boot/with_mcumgr/pytest/
Dtest_upgrade.py59 image_to_test = create_signed_image(dut.device_config.build_dir,
60 dut.device_config.app_build_dir, new_version)
109 Path(dut.device_config.app_build_dir) / 'zephyr' / '.config',
114 image_to_test = create_signed_image(dut.device_config.build_dir,
115 dut.device_config.app_build_dir, new_version)
171 Path(dut.device_config.build_dir) / 'mcuboot' / 'zephyr' / '.config',
177 image_to_test = Path(dut.device_config.build_dir) / 'test_invalid_key.bin'
180 image_to_test = Path(dut.device_config.build_dir) / 'test_no_key.bin'
184 build_dir=Path(dut.device_config.app_build_dir),
Dtest_downgrade_prevention.py31 Path(dut.device_config.app_build_dir) / 'zephyr' / '.config',
38 image_to_test = create_signed_image(dut.device_config.build_dir,
39 dut.device_config.app_build_dir, '0.0.0+0')
/Zephyr-latest/tests/misc/llext-edk/pytest/
Dtest_edk.py29 unlaunched_dut.device_config.platform,
33 unlaunched_dut.device_config.build_dir,
42 edk_path = Path(unlaunched_dut.device_config.build_dir) / "zephyr/llext-edk.tar.xz"
91 unlaunched_dut.device_config.platform,
93 unlaunched_dut.device_config.build_dir,
/Zephyr-latest/tests/lib/devicetree/memory_region_flags/pytest/
Dtest_memory_region_flags.py64 verify_memory_region_flags(dut.device_config.build_dir, "test_region_r", r"\(\s*r\s*\)")
67 …verify_memory_region_flags(dut.device_config.build_dir, "test_region_nrwxail", r"\(\s*!rwxail\s*\)…
70 verify_memory_region_flags(dut.device_config.build_dir, "test_region_no_flags", r"\(\s*rw\s*\)")
73 verify_memory_region_flags(dut.device_config.build_dir, "test_region_none", r"")
/Zephyr-latest/drivers/memc/
Dmemc_mcux_flexspi.h50 flexspi_device_config_t *device_config,
65 const flexspi_device_config_t *device_config,
Dmemc_mcux_flexspi.c89 flexspi_device_config_t *device_config, in memc_flexspi_update_clock() argument
120 device_config->flexspiRootClk = freq_hz; in memc_flexspi_update_clock()
121 FLEXSPI_UpdateDllValue(data->base, device_config, port); in memc_flexspi_update_clock()
132 device_config->flexspiRootClk = rate; in memc_flexspi_update_clock()
133 FLEXSPI_UpdateDllValue(data->base, device_config, port); in memc_flexspi_update_clock()
143 const flexspi_device_config_t *device_config, in memc_flexspi_set_device_config() argument
173 data->size[port] = device_config->flashSize * KB(1); in memc_flexspi_set_device_config()
184 memcpy(&tmp_config, device_config, sizeof(tmp_config)); in memc_flexspi_set_device_config()
/Zephyr-latest/samples/boards/nordic/coresight_stm/pytest/
Dtest_stm.py112 UART_PATH = dut.device_config.serial
113 UART_BAUDRATE = dut.device_config.baud
122 BUILD_DIR = str(dut.device_config.build_dir)
160 BUILD_DIR = str(dut.device_config.build_dir)
209 BUILD_DIR = str(dut.device_config.build_dir)
/Zephyr-latest/tests/boards/nrf/coresight_stm/pytest/
Dtest_stm.py134 UART_PATH = dut.device_config.serial
135 UART_BAUDRATE = dut.device_config.baud
144 BUILD_DIR = str(dut.device_config.build_dir)
182 BUILD_DIR = str(dut.device_config.build_dir)
263 BUILD_DIR = str(dut.device_config.build_dir)
/Zephyr-latest/tests/drivers/can/host/pytest/
Dconftest.py30 for fixture in dut.device_config.fixtures:
/Zephyr-latest/tests/subsys/debug/gdbstub/pytest/
Dtest_gdbstub.py22 build_dir = dut.device_config.build_dir
/Zephyr-latest/tests/subsys/logging/dictionary/pytest/
Dtest_logging_dictionary.py157 build_dir = dut.device_config.app_build_dir
/Zephyr-latest/tests/subsys/usb/device/src/
Dmain.c81 USBD_DEFINE_CFG_DATA(device_config) = {
/Zephyr-latest/doc/develop/test/
Dpytest.rst290 device_type: str = dut.device_config.type