Skip to content

tests/microbit-test: Add UART device test

Julia Suvorova qemu-devel 2 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 7 repliesApplied
  2. v43 patches 7 repliesSuperseded

Changes in v5 from the cover letter

* Replace g_assert with g_assert_* [Thomas, Alex]
* Increase the waiting time for an event [Thomas]
* Remove 'nowait' [Thomas]
* Rewrite uart_wait_for_event to use time difference instead of loop

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3tests/libqtest: Introduce qtest_init_with_serial()tests/libqtest.c tests/libqtest.h+36 -04 replies
2/3tests/microbit-test: Make test independent of global_qtesttests/microbit-test.c+129 -1180 replies
3/3tests/microbit-test: Check nRF51 UART functionalitytests/microbit-test.c+89 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchStefan HajnocziPhilippe Mathieu-DaudéThomas HuthAlex Bennée
1/3R-b R-b R-b
2/3R-b R-b A-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/3] tests/microbit-test: Add UART device test

v5:
* Replace g_assert with g_assert_* [Thomas, Alex]
* Increase the waiting time for an event [Thomas]
* Remove 'nowait' [Thomas]
* Rewrite uart_wait_for_event to use time difference instead of loop
v4:
* Replace sprintf with g_strdup_printf [Peter]
* Move socket connection to qtest library [Peter]
* Use memcmp instead of strcmp [Stefan]
* Remove using global_qtest [Thomas]
v3:
* Fix directory leak [Stefan]

Based-on: <[email protected]>

Julia Suvorova (3):
tests/libqtest: Introduce qtest_init_with_serial() tests/microbit-test: Make test independent of global_qtest tests/microbit-test: Check nRF51 UART functionality

 tests/libqtest.c      |  25 ++++
 tests/libqtest.h      |  11 ++
 tests/microbit-test.c | 336 +++++++++++++++++++++++++++---------------
 3 files changed, 254 insertions(+), 118 deletions(-)
Signature · 1 line
2.17.1