Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 232) sorted by relevance

12345678910

/Zephyr-latest/samples/sensor/sensor_shell/pytest/
Dtest_sensor_shell.py14 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'
24 lines = shell.exec_command('sensor get sensor@0 voltage')
25 … assert any(['channel type=31(voltage)' in line for line in lines]), 'expected response not found'
27 lines = shell.exec_command('sensor get sensor@1 53')
28 …assert any(['channel type=53(gauge_state_of_health)' in line for line in lines]), 'expected respon…
32 lines = shell.exec_command('sensor get sensor@0 gauge_desired_charging_current')
33 …assert any(['channel type=59(gauge_desired_charging_current)' in line for line in lines]), 'expect…
41 lines = shell.exec_command('sensor attr_get sensor@0 co2 sampling_frequency')
[all …]
/Zephyr-latest/tests/ztest/ztest_param/pytest/
Dtest_parameters.py8 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/
Dtest_perf.py20 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/
Dtest_magic_addr.py18 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/
Dgen_device_deps.py79 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/
Dtest_shell.py14 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/
Dtest_shell.py14 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/
Dtest_bootstrap.py70 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])
Dtest_blockwise.py37 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/samples/modules/tflite-micro/magic_wand/train/
Ddata_prepare_test.py42 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])
Ddata_split_test.py35 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/
Dstackcollapse.py62 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/tests/misc/llext-edk/pytest/
Dtest_edk.py105 lines = unlaunched_dut.readlines_until("Done")
107 assert "Calling extension from kernel" in lines
108 assert "Calling extension from user" in lines
109 assert "foo(42) is 1764" in lines
110 assert "foo(43) is 1849" in lines
/Zephyr-latest/soc/microchip/mec/common/
Dsoc_i2c.c64 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/
Dshell_test.py13 lines = shell.exec_command('zen')
14 assert 'The Zen of Python, by Tim Peters' in lines
/Zephyr-latest/tests/subsys/shell/shell_flash/src/
Dshell_flash_test.c32 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/
Dcan_shell.py55 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/
Duf2.py59 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}
Djlink.py339 lines = [
346 lines.append('erase') # Erase all flash sectors
391 lines.append(flash_cmd)
394 lines.append('r') # Reset and halt the target
396 lines.append('g') # Start the CPU
404 lines.append('writeDP 1 0')
405 lines.append('readDP 1')
407 lines.append('q') # Close the connection and quit
410 '\n'.join(lines))
411 return flash_file, lines
[all …]
/Zephyr-latest/scripts/west_commands/zspdx/
Dcmakecache.py16 lines = f.readlines()
19 for line in lines:
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/
Dqemu_adapter_test.py40 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/
Dmigrate_sys_init.py28 lines = f.readlines()
31 for line in lines:
49 for line in lines:
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/
Ddevice_adapter.py176 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/pytest-twister-harness/src/twister_harness/helpers/
Dutils.py19 lines = f.readlines()
20 for line in lines:
/Zephyr-latest/scripts/west_commands/
Dexport.py55 lines = run_cmake(['-P', str(path / 'zephyr_export.cmake')],
57 msg = [line for line in lines if not line.startswith('-- ')]

12345678910