zephyr/samples
Piotr Golyzniak f22c2d6388 scripts: pytest: align adapters API
Select and place common code of three adapters (HardwareAdapter,
BinaryAdapterBase and QemuAdapter) into basic DeviceAdapter class.

Introduce new way of reading device output by run separate thread which
try to read device output and place it into internal python queue.
Thanks to this, now it is possible to create readline method for all
adapters, which can be unblock when timeout occur.

Collect all common steps which have to be done before setup device in
launch method. The same was done for teardown operations which were
placed into close method.

Additionally some protection mechanisms were introduced to prevent for
undesirable side-effects when user could try to launch to already
launched device or try to send some data to disconnected device.

iter_stdout method was replaced by two new methods: readline and
readlines. To make it possible to remove all read output from internal
buffer (queue), clear_buffer method was introduced.

Also unit tests were rewritten to work properly with current version
of adapters.

Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
2023-08-30 06:39:55 -04:00
..
application_development modules: cmsis: move glue code to modules/cmsis 2023-08-24 13:20:21 +02:00
arch samples: arch: rename shadow variables 2023-08-22 11:39:58 +02:00
basic drivers: pwm: use pwm_is_ready_dt helper function 2023-08-30 10:19:47 +02:00
bluetooth Bluetooth: CAP: Remove qos from start_stream_param 2023-08-29 10:22:43 +02:00
boards drivers: pwm: use pwm_is_ready_dt helper function 2023-08-30 10:19:47 +02:00
compression tests/samples: use integration_platforms more where it makes sense 2023-05-26 17:52:02 -04:00
cpp doc: fix :zephyr-app: paths 2023-07-17 16:51:16 -04:00
drivers drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
fuel_gauge drivers: fuel_gauge: Add support for RSOC and ASOC 2023-05-19 13:40:19 -04:00
hello_world samples: hello_world: use printf 2023-08-17 10:38:26 +02:00
kernel tests: add kernel tag to all benchmarks and samples 2023-06-02 04:47:06 -04:00
modules drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
net net: conn_mgr: Rename connectivity monitor 2023-08-29 16:13:37 +02:00
philosophers samples: philosophers: rename shadow variables 2023-08-22 11:39:58 +02:00
posix samples: posix: uname: Set to 1cpu as shell_thread is not SMP-safe 2023-08-21 13:27:07 +02:00
sensor drivers: sensor: add NXP TEMPMON driver 2023-08-30 10:18:27 +02:00
shields drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
subsys scripts: pytest: align adapters API 2023-08-30 06:39:55 -04:00
synchronization tests: synchronization: do not build on all 2023-06-13 09:38:27 -04:00
tfm_integration samples/tfm_integration: Remove 'noreturn' attribute from main 2023-06-17 07:28:42 -04:00
userspace samples: Fixed typos 2023-08-24 15:44:33 +02:00
classic.rst
index.rst
sample_definition_and_criteria.rst doc: use a linked reference rather than a GitHub reference. 2023-08-16 14:58:20 +02:00