Skip to content

tests: Add functional test for out-of-process device emulation

Willian Rampazzo qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Add command type to the exec_command docstring

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2avocado_qemu: add exec_command functiontests/acceptance/avocado_qemu/__init__.py+13 -11 reply
2/2tests: Add functional test for out-of-process device emulationtests/acceptance/multiprocess.py+95 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-DaudéWainer dos Santos MoschettaMarc-André LureauCleber RosaStefan Hajnoczi
SeriesR-b
1/2R-b R-b R-b
2/2R-b T-b R-b R-b T-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 5 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] tests: Add functional test for out-of-process device emulation

This series is a respin to the "multi-process: Acceptance test for multiprocess QEMU" patch sent in December which, runs an Avocado functional test to check if a remote lsi53c895a device gets identified by the guest:
https://www.mail-archive.com/[email protected]/msg769188.html

First, we introduce the exec_command to the avocado_qemu package, which sends a command to a console without the need to wait for a pattern as a result. This is useful when a test needs to execute a command that does not produce an output, like, for example, a mount command.

Then, the original test is refactored to simplify the code using the new exec_command function, remove the unnecessary change to the wait_for_console_pattern method and normalize the use of single quotes.

CI Pipeline: https://gitlab.com/willianrampazzo/qemu/-/pipelines/261946622

Supersedes: <785772783205140e219b8bfe7f793305ee768f03.1608705805.git.elena.ufimtseva@oracle.com>

Change from v2:
- Add command type to the exec_command docstring

Jagannathan Raman (1):
tests: Add functional test for out-of-process device emulation

Willian Rampazzo (1):
avocado_qemu: add exec_command function

 tests/acceptance/avocado_qemu/__init__.py | 14 +++-
 tests/acceptance/multiprocess.py          | 95 +++++++++++++++++++++++
 2 files changed, 108 insertions(+), 1 deletion(-)
 create mode 100644 tests/acceptance/multiprocess.py
Signature · 1 line
2.29.2