Home
last modified time | relevance | path

Searched refs:dut (Results 1 – 25 of 200) sorted by relevance

12345678

/Zephyr-latest/tests/boot/with_mcumgr/pytest/
Dtest_upgrade.py35 def clear_buffer(dut: DeviceAdapter) -> None:
37 if not dut.is_device_connected():
38 dut.connect()
40 dut.clear_buffer()
42 dut.disconnect()
45 def test_upgrade_with_confirm(dut: DeviceAdapter, shell: Shell, mcumgr: MCUmgr):
59 image_to_test = create_signed_image(dut.device_config.build_dir,
60 dut.device_config.app_build_dir, new_version)
63 dut.disconnect()
69 clear_buffer(dut)
[all …]
Dtest_downgrade_prevention.py17 def test_downgrade_prevention(dut: DeviceAdapter, shell: Shell, mcumgr: MCUmgr):
31 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')
42 dut.disconnect()
50 dut.connect()
51 output = dut.readlines_until('Launching primary slot application')
56 dut.disconnect()
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/
Dtest_bootstrap.py34 def verify_LightweightM2M_1_1_int_0(dut: DeviceAdapter, endpoint_bootstrap: Endpoint):
36 dut.readlines_until(regex='.*Bootstrap transfer complete', timeout=5.0)
39 def test_LightweightM2M_1_1_int_1(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint_bootst…
41 verify_LightweightM2M_1_1_int_0(dut, endpoint_bootstrap)
42 verify_LightweightM2M_1_1_int_101(shell, dut, leshan, endpoint_bootstrap)
45 def test_LightweightM2M_1_1_int_4(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: Endpo…
52 dut.readlines_until(regex='.*Registration Done', timeout=5.0)
58 def test_LightweightM2M_1_1_int_5(dut: DeviceAdapter, leshan: Leshan, endpoint: Endpoint):
61 dut.readlines_until(regex='.*Server Initiated Bootstrap', timeout=1)
62 dut.readlines_until(regex='.*Bootstrap transfer complete', timeout=5.0)
[all …]
Dtest_nosec.py26 def test_LightweightM2M_1_1_int_101(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint_nose…
33 def test_LightweightM2M_1_1_int_105(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint_nose…
49 dut.readlines_until(regex=r'.*Failed with code 4\.4', timeout=5.0)
50 dut.readlines_until(regex='.*Registration Done', timeout=10.0)
Dtest_blockwise.py25 def test_blockwise_1(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
37 lines = dut.readlines_until(regex='app_fw_update: UPDATE', timeout=5.0)
46 def test_blockwise_2(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
67 lines = dut.readlines_until(regex='app_fw_update: UPDATE', timeout=5.0)
77 def test_blockwise_3(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
82 dut.readlines_until(regex='.*net_lwm2m_rd_client: Update Done', timeout=5.0)
109 def test_blockwise_4(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
114 dut.readlines_until(regex='.*net_lwm2m_rd_client: Update Done', timeout=5.0)
128 dut.readlines_until(regex=r'.*SEND status: 0', timeout=5.0)
Dtest_lwm2m.py33 def test_LightweightM2M_1_1_int_102(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str…
40 dut.readlines_until(regex='.*net_lwm2m_rd_client: Update Done', timeout=5.0)
47 def test_LightweightM2M_1_1_int_103(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str…
50 dut.readlines_until(regex='LwM2M server disabled', timeout=5.0)
51 dut.readlines_until(regex='Deregistration success', timeout=5.0)
56 dut.readlines_until(regex='.*Registration Done', timeout=5.0)
58 def test_LightweightM2M_1_1_int_104(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str…
61 dut.readlines_until(regex='.*net_lwm2m_rd_client: Update Done', timeout=5.0)
63 dut.readlines_until(regex='.*net_lwm2m_rd_client: Update Done', timeout=5.0)
66 def test_LightweightM2M_1_1_int_107(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str…
[all …]
Dconftest.py97 def endpoint_nosec(request, shell: Shell, dut: DeviceAdapter, leshan: Leshan) -> str:
119 dut.readlines_until(regex='.*Registration Done', timeout=5.0)
124 dut.readlines_until(regex=r'.*Deregistration success', timeout=10.0)
127 def endpoint_bootstrap(request, shell: Shell, dut: DeviceAdapter, leshan: Leshan, leshan_bootstrap:…
163 dut.readlines_until(regex=r'.*Deregistration success', timeout=10.0)
172 def endpoint_registered(endpoint_bootstrap, dut: DeviceAdapter) -> str:
175 dut.readlines_until(regex='.*Registration Done', timeout=5.0)
/Zephyr-latest/samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/pytest/
Dtest_magic_addr.py12 def test_magic_addr(dut: DeviceAdapter):
16 dut.readlines_until(regex='Cast some characters:', print_output=True)
17 dut.write(str.encode('A'))
18 lines = dut.readlines_until(regex='Magic DTCM address accessed', print_output=True)
20 dut.write(str.encode('B'))
21 lines = dut.readlines_until(regex='Magic DTCM address accessed', print_output=True)
/Zephyr-latest/tests/lib/devicetree/memory_region_flags/pytest/
Dtest_memory_region_flags.py63 def test_region_r(dut: DeviceAdapter):
64 verify_memory_region_flags(dut.device_config.build_dir, "test_region_r", r"\(\s*r\s*\)")
66 def test_region_nrwxail(dut: DeviceAdapter):
67 …verify_memory_region_flags(dut.device_config.build_dir, "test_region_nrwxail", r"\(\s*!rwxail\s*\)…
69 def test_region_no_flags(dut: DeviceAdapter):
70 verify_memory_region_flags(dut.device_config.build_dir, "test_region_no_flags", r"\(\s*rw\s*\)")
72 def test_region_none(dut: DeviceAdapter):
73 verify_memory_region_flags(dut.device_config.build_dir, "test_region_none", r"")
/Zephyr-latest/samples/boards/nordic/coresight_stm/pytest/
Dtest_stm.py108 dut: DeviceAdapter,
112 UART_PATH = dut.device_config.serial
113 UART_BAUDRATE = dut.device_config.baud
114 dut.close()
122 BUILD_DIR = str(dut.device_config.build_dir)
152 def test_STM_decoded(dut: DeviceAdapter):
160 BUILD_DIR = str(dut.device_config.build_dir)
168 output = "\n".join(dut.readlines())
200 def test_STM_dictionary_mode(dut: DeviceAdapter):
209 BUILD_DIR = str(dut.device_config.build_dir)
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/
Dfixtures.py58 def dut(request: pytest.FixtureRequest, device_object: DeviceAdapter) -> Generator[DeviceAdapter, N… function
69 def shell(dut: DeviceAdapter) -> Shell:
71 shell = Shell(dut, timeout=20.0)
72 if prompt := find_in_config(Path(dut.device_config.app_build_dir) / 'zephyr' / '.config',
78 if dut.device_config.type == 'hardware':
82 dut.clear_buffer()
93 def mcumgr(is_mcumgr_available: None, dut: DeviceAdapter) -> Generator[MCUmgr, None, None]:
94 yield MCUmgr.create_for_serial(dut.device_config.serial)
/Zephyr-latest/tests/boards/nrf/coresight_stm/pytest/
Dtest_stm.py130 dut: DeviceAdapter,
134 UART_PATH = dut.device_config.serial
135 UART_BAUDRATE = dut.device_config.baud
136 dut.close()
144 BUILD_DIR = str(dut.device_config.build_dir)
174 def test_STM_decoded(dut: DeviceAdapter):
182 BUILD_DIR = str(dut.device_config.build_dir)
234 output = "\n".join(dut.readlines())
254 def test_STM_dictionary_mode(dut: DeviceAdapter):
263 BUILD_DIR = str(dut.device_config.build_dir)
[all …]
/Zephyr-latest/tests/drivers/can/host/pytest/
Dconftest.py25 def fixture_context(request, dut: DeviceAdapter) -> str:
30 for fixture in dut.device_config.fixtures:
55 def can_dut(dut: DeviceAdapter, shell: Shell, chosen: str) -> BusABC:
57 bus = CanShellBus(dut, shell, chosen)
60 dut.clear_buffer()
/Zephyr-latest/tests/drivers/uart/uart_async_api/src/
Dtest_uart.h22 #if DT_NODE_EXISTS(DT_NODELABEL(dut))
23 #define UART_NODE DT_NODELABEL(dut)
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dhardwaremap.py267 for dut in duts:
268 pre_script = dut.get('pre_script')
269 script_param = dut.get('script_param')
270 post_script = dut.get('post_script')
271 post_flash_script = dut.get('post_flash_script')
272 flash_timeout = dut.get('flash_timeout') or self.options.device_flash_timeout
273 flash_with_test = dut.get('flash_with_test')
276 serial_pty = dut.get('serial_pty')
277 flash_before = dut.get('flash_before')
280 platform = dut.get('platform')
[all …]
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dtest_timer.py87 def wait_sync_point(dut: DeviceAdapter, point):
88 dut.readlines_until(regex=f"===== {point} =====")
91 def test_flash(dut: DeviceAdapter, tool, tool_options, config,
101 wait_sync_point(dut, test)
107 dut.readlines()
/Zephyr-latest/tests/subsys/logging/dictionary/pytest/
Dtest_logging_dictionary.py23 def process_logs(dut: DeviceAdapter, build_dir):
44 handler_output = dut.readlines_until(regex = '.*##ZLOGV1##[0-9]+', timeout = 600.0)
153 def test_logging_dictionary(dut: DeviceAdapter, is_fpu_build):
157 build_dir = dut.device_config.app_build_dir
161 decoded_logs = process_logs(dut, build_dir)
/Zephyr-latest/tests/drivers/uart/uart_basic_api/src/
Dtest_uart_config_wide.c29 .baudrate = DT_PROP_OR(DT_NODELABEL(dut), current_speed, 115200),
38 const struct device *const uart_dev = DEVICE_DT_GET(DT_NODELABEL(dut)); in test_configure_wide()
61 const struct device *const uart_dev = DEVICE_DT_GET(DT_NODELABEL(dut)); in test_config_get_wide()
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/test_scripts/
Drun_test_tolerate_pipeline_variant_rx_tx_prio_invert.sh51 -v=${verbosity_level} -s="${simulation_id}" -d=1 -testid=dut -RealEncryption=1 -rs=2000
54 -v=${verbosity_level} -s="${simulation_id}" -d=0 -testid=dut -RealEncryption=1
Drun.sh35 -v=${verbosity_level} -s="${simulation_id}" -d=1 -testid=dut -RealEncryption=1 -rs=2000
38 -v=${verbosity_level} -s="${simulation_id}" -d=0 -testid=dut -RealEncryption=1
/Zephyr-latest/tests/net/socket/tls_configurations/pytest/
Dtest_app_vs_openssl.py72 def test_app_vs_openssl(dut: DeviceAdapter, server_type, port):
76 dut.launch()
77 dut.readlines_until("Test PASSED", timeout=3.0)
/Zephyr-latest/tests/subsys/debug/gdbstub/pytest/
Dtest_gdbstub.py21 def gdb_process(dut: DeviceAdapter, gdb_script, gdb_timeout, gdb_target_remote) -> subprocess.Compl…
22 build_dir = dut.device_config.build_dir
79 def test_gdbstub(dut: DeviceAdapter, gdb_process, expected_app, expected_gdb, expected_gdb_detach, …
90 app_output = '\n'.join(dut.readlines(print_output = False))
/Zephyr-latest/samples/subsys/profiling/perf/pytest/
Dtest_perf.py15 def test_shell_perf(dut: DeviceAdapter, shell: Shell):
22 lines = dut.readlines_until(regex='.*Perf done!', print_output=True)
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/multilink_peripheral/src/
Dcentral.c109 bt_addr_le_t dut; in entrypoint_central() local
134 err = bt_testlib_scan_find_name(&dut, DUT_NAME); in entrypoint_central()
145 err = bt_testlib_connect(&dut, &conn); in entrypoint_central()
/Zephyr-latest/tests/boards/nrf/dmm/boards/
Dnrf5340dk_nrf5340_cpuapp.overlay3 dut-cache = &spi1;
4 dut-nocache= &spi3;

12345678