Skip to content

Acceptance Tests: basic architecture support

Cleber Rosa qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 32 repliesIn review
  2. v17 patches 14 repliesSuperseded

Changes in v2 from the cover letter

================

* Fixed typo in docstring (s/param/type) (Murilo)

* Pretty print the "arch.json" variants file, in order to make editing easier and avoid hitting email line length limits (Eric, Philippe)

* Distinguish between host and target arch when canceling tests (Philippe)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Acceptance Tests: improve docstring on pick_default_qemu_bin()tests/acceptance/avocado_qemu/__init__.py+4 -00 replies
2/7Acceptance Tests: introduce arch parameter and attributedocs/devel/testing.rst tests/acceptance/avocado_qemu/__init__.py+28 -31 reply
3/7scripts/qemu.py: add method and private attribute for archscripts/qemu.py+7 -01 reply
4/7scripts/qemu.py: set predefined machine type based on archscripts/qemu.py+21 -122 replies
5/7Acceptance Tests: set machine typetests/acceptance/boot_linux_console.py tests/acceptance/version.py tests/acceptance/vnc.py+9 -10 replies
6/7Acceptance Tests: add variants definition for architecturestests/acceptance/variants/arch.json+92 -04 replies
7/7Acceptance Tests: change the handling of tests for specific archstests/acceptance/boot_linux_console.py+2 -14 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/7R-b
2/7R-b T-b
3/7R-b T-b
4/7
5/7R-b T-b
6/7
7/7R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/7] Acceptance Tests: basic architecture support

The current version of the Acceptance Tests have been basically tested on x86_64. Most of them should be valid tests on many different architectures.

This introduces another standard test parameter, 'arch', and a public test attribute with the same name. Then, because of the different behavior in different QEMU targets, it adds a more explicit configuration of the QEMUMachine machine type used on the tests (the self.vm attribute).

Finally, for tests that are known to be architecture specific, it changes the approach, from using tags to canceling the test. The difference is that this reuses the same 'arch' parameter (so no need to pass tags for the same reason), and instead of completely excluding the test from the job, it just won't be executed on architectures that are not supported. More details about this on the last commit.

Changes from v1:
================

* Fixed typo in docstring (s/param/type) (Murilo)

* Pretty print the "arch.json" variants file, in order to make editing easier and avoid hitting email line length limits (Eric, Philippe)

* Distinguish between host and target arch when canceling tests (Philippe)

Cleber Rosa (7):
Acceptance Tests: improve docstring on pick_default_qemu_bin() Acceptance Tests: introduce arch parameter and attribute scripts/qemu.py: add method and private attribute for arch scripts/qemu.py: set predefined machine type based on arch Acceptance Tests: set machine type
Acceptance Tests: add variants definition for architectures Acceptance Tests: change the handling of tests for specific archs

 docs/devel/testing.rst                    | 18 +++++
 scripts/qemu.py                           | 29 ++++++-
 tests/acceptance/avocado_qemu/__init__.py | 17 ++++-
 tests/acceptance/boot_linux_console.py    |  6 +-
 tests/acceptance/variants/arch.json       | 92 +++++++++++++++++++++++
 tests/acceptance/version.py               |  2 +
 tests/acceptance/vnc.py                   |  5 ++
 7 files changed, 163 insertions(+), 6 deletions(-)
 create mode 100644 tests/acceptance/variants/arch.json
Signature · 1 line
2.17.1