Home
last modified time | relevance | path

Searched full:dut (Results 1 – 25 of 252) sorted by relevance

1234567891011

/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_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_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)
/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/bsim/bluetooth/mesh/tests_scripts/op_agg/
Dmodel_coex.sh8 # In this test scenario, the DUT has a sequence in progress on the Opcode
11 # sequence on the DUT completes successfully.
14 # 1. Both Tester and DUT device initialize both Opcode aggregator server and client.
17 # 3. The DUT device waits, and verifies that the sequence is correctly received.
20 # own aggregated sequence from the DUT device, then it verifies that the
21 # aggregated sequence from the DUT device is correctly received.
22 # 5. Finally, the DUT device waits and confirms that it received all status messages
/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/scripts/pylib/pytest-twister-harness/src/twister_harness/
Dfixtures.py43 if dut_scope := config.getoption("--dut-scope", None):
58 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/bsim/bluetooth/mesh/tests_scripts/suspend/
Dgatt_suspend_resume.sh11 # 0. DUT (Device 0) initializes the Mesh stack, and starts provisioning procedure using
15 # 2. DUT is provisioned, and Tester observes GATT proxy advs.
16 # 3. DUT notifies the Tester that it will be suspended, and Tester observes for advs after a
17 # brief delay. Receiving an adv while DUT is suspended will cause the test to fail.
18 # 4. After a delay, the DUT resumes and notifies the Tester, which checks that the
Dgatt_suspend_disable_resume.sh11 # 0. DUT (Device 0) initializes the Mesh stack, and starts provisioning procedure using
15 # 2. DUT is provisioned, and Tester observes GATT proxy advs.
16 # 3. DUT notifies the Tester that it will be suspended, and Tester observes for advs after a
17 # brief delay. Receiving an adv while DUT is suspended will cause the test to fail.
18 # 4. After a delay, the DUT resumes and notifies the Tester, which checks that the
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/test_scripts/
Drun_test_tolerate_pipeline_variant_rx_tx_prio_invert.sh7 # Check that DUT GATT server gracefully handles a pipelining
10 # The DUT GATT server must remain available to a well-behaved
25 # - Either: The DUT may disconnect the bad peer ACL after
28 # - Or: The DUT may process and respond to the pipelined
51 -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
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/src/
Ddut.c24 LOG_MODULE_REGISTER(dut, LOG_LEVEL_DBG);
48 /* This is the entrypoint for the DUT.
55 * In our case, the `testid` is set to "dut" and `entrypoint_dut()` is mapped to
56 * the "dut" ID in `entrypoints[]`.
77 * - `dut`: tries to send the notification in entrypoint_dut()
81 * - [dut] establish connection to `peer` in entrypoint_dut()
83 * - [dut] send notification #1 in entrypoint_dut()
86 * - [dut] send notification #2 in entrypoint_dut()
87 * - [peer] and [dut] pass test in entrypoint_dut()
99 TEST_START("dut"); in entrypoint_dut()
[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:
56 """Return DUT CAN bus."""
57 bus = CanShellBus(dut, shell, chosen)
60 dut.clear_buffer()
Dtest_can.py55 Class for testing CAN RX/TX between Zephyr DUT and host.
73 """Skip test if message format is not supported by both DUT and host."""
76 pytest.skip('CAN FD not supported by DUT')
81 """Test DUT to host communication."""
89 """Test host to DUT communication."""
/Zephyr-latest/tests/bsim/bluetooth/host/scan/start_stop/src/
Dmain.c75 * - `dut`: tries to establish the sync in run_dut()
79 * - [dut] start establishing a sync (no peer) in run_dut()
81 * - [dut] starts explicit scanning in run_dut()
82 * - [dut] wait for the peer to be found in run_dut()
83 * - [dut] stops explicit scanning in run_dut()
84 * - [dut] stop the periodic sync in run_dut()
85 * - [dut] start establishing a sync to the peer in run_dut()
86 * - [dut] start and stop explicit scanning in run_dut()
88 * - [dut] wait until a sync is established in run_dut()
91 * - dut is able to sync to the peer. in run_dut()
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dhardwaremap.py36 class DUT: class
219 # the fixtures given by twister command explicitly should be assigned to each DUT
248 device = DUT(
267 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')
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/dut/src/
Ddut.c25 LOG_MODULE_REGISTER(dut, LOG_LEVEL_DBG);
115 * - `dut`: receives long notifications from `peer` in entrypoint_dut()
126 * - [dut] establish connection to `peer` in entrypoint_dut()
128 * - [dut] wait until notification #1 received in entrypoint_dut()
132 * - [dut] wait for disconnection in entrypoint_dut()
135 * - dut receives notification #1 for all iterations in entrypoint_dut()
141 TEST_START("dut"); in entrypoint_dut()
144 bt_testlib_log_level_set("dut", runtime_log_level); in entrypoint_dut()
161 TEST_PASS("dut"); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/scan/slow/src/
Ddut.c16 LOG_MODULE_REGISTER(dut, LOG_LEVEL_DBG);
57 * - `dut`: active-scans with privacy ON in entrypoint_dut()
61 * - dut is able to run for a long enough time without triggering asserts in entrypoint_dut()
65 TEST_START("DUT"); in entrypoint_dut()
68 bt_testlib_log_level_set("dut", runtime_log_level); in entrypoint_dut()
82 TEST_PASS_AND_EXIT("DUT passed"); in entrypoint_dut()
/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/tests/bsim/bluetooth/host/l2cap/ecred/dut/src/
Ddut.c19 LOG_MODULE_REGISTER(dut, CONFIG_APP_LOG_LEVEL);
62 * - `dut`: tries to establish 4 ecred chans in entrypoint_dut()
69 * - [dut] request to establish 4 ecred channels in entrypoint_dut()
71 * - [dut] get `disconnected` called on all 4 channels in entrypoint_dut()
80 TEST_START("dut"); in entrypoint_dut()
116 TEST_PASS_AND_EXIT("dut"); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/id/settings/src/
Ddut.c23 LOG_DBG("Starting DUT 1"); in run_dut1()
51 PASS("Test passed (DUT 1)\n"); in run_dut1()
60 LOG_DBG("Starting DUT 2"); in run_dut2()
81 PASS("Test passed (DUT 2)\n"); in run_dut2()
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/dut/src/
Dmain.c23 LOG_MODULE_REGISTER(dut, LOG_LEVEL_INF);
272 * To do this, the application on the DUT will purposefully stall the in test_procedure_0()
281 * - dut: subscribe to INDICATE and NOTIFY on tester CHRC in test_procedure_0()
282 * - dut: send a handle the tester can write to in test_procedure_0()
290 * - dut: handle the REQuest, build & put the RSP PDU on the HCI TX queue in test_procedure_0()
291 * - dut: suspend the HCI TX thread in test_procedure_0()
292 * - dut: handle the INDication in test_procedure_0()
293 * - dut: handle the notifications in test_procedure_0()
294 * - dut: handle the (write) commands in test_procedure_0()
295 * - dut: resume the TX thread after a short while in test_procedure_0()
[all …]
/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/bsim/bluetooth/host/misc/disconnect/dut/src/
Dmain.c24 LOG_MODULE_REGISTER(dut, LOG_LEVEL_INF);
238 * - connect ACL, DUT is central and GATT client in test_procedure_0()
240 * - dut: subscribe to NOTIFY on tester CHRC in test_procedure_0()
244 * - dut: wait 10x 100ms in notification RX callback in test_procedure_0()
245 * - tester: disconnect (not gracefully) while DUT is waiting in test_procedure_0()
247 * - dut: exit notification callback in test_procedure_0()
248 * - dut: wait for `disconnected` conn callback in test_procedure_0()
251 * - The DUT gets the `disconnected` callback, no hanging or timeouts. in test_procedure_0()
264 PASS("DUT exit\n"); in test_procedure_0()
284 .test_id = "dut",

1234567891011