/Zephyr-latest/samples/sensor/sensor_shell/pytest/ |
D | test_sensor_shell.py | 14 lines = shell.exec_command('sensor info') 15 assert any(['device name: sensor@0' in line for line in lines]), 'expected response not found' 16 assert any(['device name: sensor@1' in line for line in lines]), 'expected response not found' 28 lines = shell.exec_command(f'sensor get sensor@0 {channel}') 29 … assert any([f'channel type={channel}' in line for line in lines]), 'expected response not found' 37 lines = shell.exec_command('sensor attr_get sensor@0 co2 sampling_frequency') 38 …assert any(['sensor@0(channel=co2, attr=sampling_frequency)' in line for line in lines]), 'expecte… 40 lines = shell.exec_command('sensor attr_get sensor@1 54 3') 41 …assert any(['sensor@1(channel=gauge_state_of_health, attr=slope_th)' in line for line in lines]), … 49 lines = shell.exec_command('sensor attr_set sensor@0 co2 sampling_frequency 1') [all …]
|
/Zephyr-latest/tests/ztest/ztest_param/pytest/ |
D | test_parameters.py | 8 lines = shell.exec_command('ztest shuffle -c 1 -s 1') 10 output = '\n'.join(lines) 16 lines = shell.exec_command('ztest run-testcase ztest_params::test_dummy') 18 output = '\n'.join(lines) 22 lines = shell.exec_command('ztest run-testcase ztest_params::test_dummy -r 2') 24 output = '\n'.join(lines) 29 lines = shell.exec_command('ztest run-testsuite ztest_params -r 2') 31 output = '\n'.join(lines) 36 lines = shell.exec_command('ztest run-testsuite ztest_params') 38 output = '\n'.join(lines) [all …]
|
/Zephyr-latest/samples/subsys/profiling/perf/pytest/ |
D | test_perf.py | 20 lines = shell.exec_command('perf record 200 99') 21 assert 'Enabled perf' in lines, 'expected response not found' 22 lines = dut.readlines_until(regex='.*Perf done!', print_output=True) 26 lines = shell.exec_command('perf printbuf') 27 lines = lines[1:-1] 28 match = re.match(r"Perf buf length (\d+)", lines[0]) 31 lines = lines[1:] 33 assert length == len(lines), 'length dose not match with count of lines' 37 i += int(lines[i], 16) + 1
|
/Zephyr-latest/samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/pytest/ |
D | test_magic_addr.py | 18 lines = dut.readlines_until(regex='Magic DTCM address accessed', print_output=True) 19 logger.info(lines) 21 lines = dut.readlines_until(regex='Magic DTCM address accessed', print_output=True) 22 logger.info(lines) 23 ret = any('Magic DTCM address accessed' in line for line in lines)
|
/Zephyr-latest/scripts/build/ |
D | gen_device_deps.py | 79 lines = [ 84 lines.append(' * Direct Dependencies:') 86 lines.append(' * - {:s}'.format(dev_path_str(dep))) 88 lines.append(' * Injected Dependencies:') 90 lines.append(' * - {:s}'.format(dev_path_str(dep))) 92 lines.append(' * Supported:') 94 lines.append(' * - {:s}'.format(dev_path_str(sup))) 95 lines.append(' */') 96 return lines 160 lines = c_handle_comment(dev, sorted_handles) [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/test_data/samples/pytest/shell/pytest/ |
D | test_shell.py | 14 lines = shell.exec_command('help') 15 assert 'Available commands:' in lines, 'expected response not found' 21 lines = shell.exec_command('kernel version') 22 assert any(['Zephyr version' in line for line in lines]), 'expected response not found'
|
/Zephyr-latest/samples/subsys/testsuite/pytest/shell/pytest/ |
D | test_shell.py | 14 lines = shell.exec_command('help') 15 assert 'Available commands:' in lines, 'expected response not found' 21 lines = shell.exec_command('kernel version') 22 assert any(['Zephyr version' in line for line in lines]), 'expected response not found'
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/ |
D | test_bootstrap.py | 70 lines = dut.readlines_until(regex='.*Registration Done', timeout=5.0) 71 assert not any("Bootstrap" in line for line in lines) 77 lines = dut.readlines_until(regex='.*Registration Done', timeout=5.0) 78 assert any("Bootstrap" in line for line in lines) 87 lines = dut.readlines_until(regex='.*Registration Done', timeout=600.0) 88 assert any("Bootstrap" in line for line in lines) 98 lines = shell.get_filtered_output(shell.exec_command('lwm2m read 0/0/0 -s')) 99 host = lines[0] 101 lines = shell.get_filtered_output(shell.exec_command('lwm2m read 0/0/2 -u8')) 102 mode = int(lines[0])
|
D | test_blockwise.py | 37 lines = dut.readlines_until(regex='app_fw_update: UPDATE', timeout=5.0) 38 assert len(lines) > 0 39 line = lines[-1] 67 lines = dut.readlines_until(regex='app_fw_update: UPDATE', timeout=5.0) 68 assert len(lines) > 0 69 line = lines[-1] 94 lines = shell.get_filtered_output(shell.exec_command('lwm2m read /19/0/0/0 -crc32')) 95 crc = int(lines[0])
|
/Zephyr-latest/tests/bluetooth/classic/sdp_c/pytest/ |
D | conftest.py | 33 lines = shell.exec_command("bt init") 34 lines = dut.readlines_until("Bluetooth initialized") 37 for line in lines: 47 lines = shell.exec_command("br pscan on") 48 lines = shell.exec_command("br iscan on")
|
D | test_sdp.py | 324 lines = [] 333 lines = lines + read_lines 338 return found, lines 370 found, lines = await wait_for_shell_response(dut, "No SDP Record") 403 found, lines = await wait_for_shell_response(dut, "SDP Discovery Done") 407 for line in lines: 418 for line in lines: 460 found, lines = await wait_for_shell_response(dut, "SDP Discovery Done") 464 for line in lines: 473 for line in lines: [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | data_prepare_test.py | 42 lines = csv.reader(f) 43 for idx, line in enumerate(lines): # pylint: disable=unused-variable 67 lines = f.readlines() 68 self.assertEqual(len(lines), len(self.data)) 69 self.assertEqual(json.loads(lines[0]), self.data[0]) 70 self.assertEqual(json.loads(lines[-1]), self.data[-1])
|
D | data_split_test.py | 35 lines = f.readlines() 36 self.num = len(lines) 47 lines = f.readlines() 48 for idx, line in enumerate(lines): # pylint: disable=unused-variable
|
/Zephyr-latest/scripts/profiling/ |
D | stackcollapse.py | 62 lines = inp.splitlines() variable 63 assert int(re.match(r"Perf buf length (\d+)", lines[0]).group(1)) == len(lines) - 1 64 buf = binascii.unhexlify("".join(lines[1:]))
|
/Zephyr-latest/soc/microchip/mec/common/ |
D | soc_i2c.c | 64 int soc_i2c_port_lines_get(uint8_t port, uint32_t *lines) in soc_i2c_port_lines_get() argument 71 if (!(BIT(port) & MEC_I2C_PORT_MASK) || !lines) { in soc_i2c_port_lines_get() 89 *lines = pinval; in soc_i2c_port_lines_get()
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/helpers/ |
D | shell_test.py | 13 lines = shell.exec_command('zen') 14 assert 'The Zen of Python, by Tim Peters' in lines
|
/Zephyr-latest/tests/misc/llext-edk/pytest/ |
D | test_edk.py | 112 lines = unlaunched_dut.readlines_until("Done") 114 assert "Calling extension from kernel" in lines 115 assert "Calling extension from user" in lines 116 assert "foo(42) is 1764" in lines 117 assert "foo(43) is 1849" in lines
|
/Zephyr-latest/tests/subsys/shell/shell_flash/src/ |
D | shell_flash_test.c | 32 char *const lines[] = { in ZTEST() local 61 for (i = 0; i < ARRAY_SIZE(lines); i++) { in ZTEST() 67 zassert_true(strstr(buf, lines[i]), "Line: %d not found", i); in ZTEST()
|
/Zephyr-latest/tests/drivers/can/host/pytest/ |
D | can_shell.py | 55 lines = self._shell.get_filtered_output(self._shell.exec_command(cmd)) 57 for line in lines: 96 lines = self._shell.exec_command(cmd) 99 for line in lines: 123 lines = self._shell.exec_command(cmd) 125 for line in lines: 171 lines = self._dut.readlines_until(regex=frame_regex, timeout=timeout) 175 for line in lines:
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | uf2.py | 59 lines = UF2BinaryRunner.get_uf2_info_path(part).read_text().splitlines() 61 lines = lines[1:] # Skip the first summary line 67 return {k: v for k, v in (split_uf2_info(line) for line in lines) if k and v}
|
/Zephyr-latest/scripts/west_commands/zspdx/ |
D | cmakecache.py | 16 lines = f.readlines() 19 for line in lines:
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | qemu_adapter_test.py | 40 lines = device.readlines_until(regex='Namespaces are one honking great idea') 42 assert 'Readability counts.' in lines 46 assert file_lines[-2:] == lines[-2:]
|
/Zephyr-latest/scripts/utils/ |
D | migrate_sys_init.py | 28 lines = f.readlines() 31 for line in lines: 49 for line in lines:
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/ |
D | device_adapter.py | 176 lines: list[str] = [] 184 lines.append(line) 187 if num_of_lines and len(lines) == num_of_lines: 194 lines = self.readlines(print_output) 195 return lines 201 lines: list[str] = [] 204 lines.append(line) 205 return lines
|
/Zephyr-latest/scripts/pylib/shell-twister-harness/ |
D | test_shell.py | 31 lines = shell.exec_command(command) 36 for line in lines:
|