Skip to content

Acceptance Tests: use Avocado 91.0 features and other improvements

Cleber Rosa qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16Acceptance Tests: bump Avocado requirement to 91.0docs/devel/testing.rst tests/Makefile.include tests/requirements.txt+15 -11 reply
2/16Acceptance Tests: improve check-acceptance descriptiontests/Makefile.include+1 -11 reply
3/16Acceptance Tests: add mechanism for listing teststests/Makefile.include+8 -01 reply
4/16Acceptance Tests: keep track and disable tests with known issuesdocs/devel/testing.rst tests/Makefile.include tests/acceptance/boot_linux_console.py +1 more+36 -10 replies
5/16Acceptance Tests: add standard clean up at test tearDown()tests/acceptance/avocado_qemu/__init__.py+1 -01 reply
6/16Acceptance Tests: use extract from package from avocado.utilstests/acceptance/boot_linux_console.py tests/acceptance/boot_xen.py tests/acceptance/replay_kernel.py +1 more+41 -630 replies
7/16Acceptance Tests: workaround expired mipsdistros.mips.com HTTPS certtests/acceptance/boot_linux_console.py tests/acceptance/replay_kernel.py+6 -60 replies
8/16acceptance/tests/vnc.py: use explicit syntax for enabling passwordstests/acceptance/vnc.py+1 -11 reply
9/16tests/acceptance/boot_xen.py: merge base classestests/acceptance/boot_xen.py+1 -41 reply
10/16tests/acceptance/boot_xen.py: unify tagstests/acceptance/boot_xen.py+5 -211 reply
11/16tests/acceptance/boot_xen.py: fetch kernel during test setUp()tests/acceptance/boot_xen.py+6 -71 reply
12/16tests/acceptance/boot_xen.py: removed unused importtests/acceptance/boot_xen.py+0 -11 reply
13/16tests/acceptance/boot_xen.py: use class attributetests/acceptance/boot_xen.py+1 -21 reply
14/16tests/acceptance/ppc_prep_40p.py: NetBSD 7.1.2 location updatetests/acceptance/ppc_prep_40p.py+2 -23 replies
15/16tests/acceptance/ppc_prep_40p.py: clean up unused importtests/acceptance/ppc_prep_40p.py+0 -11 reply
16/16tests/acceptance/ppc_prep_40p.py: unify tagstests/acceptance/ppc_prep_40p.py+4 -83 replies

Reviews trailers per patch

11 of 16 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéWillian Rampazzo
1/16R-b
2/16R-b
3/16
4/16
5/16
6/16
7/16
8/16R-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b
13/16R-b
14/16R-b T-b
15/16R-b
16/16R-b T-b

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

Read the v1 thread

Cover letter [PATCH 00/16] Acceptance Tests: use Avocado 91.0 features and other improvements

This is a collection of patches for the Acceptance Tests to leverage some of the features of Avocado 91.0. With the Avocado version bump by itself, there would be a change in the default "test runner" implementation that Avocado uses, from the one simply known as "runner" to the new one called "nrunner".

Among the changes from one implementation to the other, is the fact that "nrunner" will run tests in parallel by default. This is *not yet* enabled by default on "make check-acceptance", but users can choose to use simply by setting the "AVOCADO_RUNNER" variable, that is:

make AVOCADO_RUNNER=nrunner check-acceptance

If you are curious about the architectural differences of the nrunner, please refer to:

https://avocado-framework.readthedocs.io/en/91.0/guides/contributor/chapters/runners.html

One other noteworthy proposal is a convention to tag tests that either have known issues, or that touch on QEMU features that have known issues. By tagging those tests accordingly, they will be automatically excluded from the regular execution with "make check-acceptance".

Finally, some updates to assets locations and some tests refactors and cleanups.

Cleber Rosa (16):
Acceptance Tests: bump Avocado requirement to 91.0 Acceptance Tests: improve check-acceptance description Acceptance Tests: add mechanism for listing tests Acceptance Tests: keep track and disable tests with known issues Acceptance Tests: add standard clean up at test tearDown() Acceptance Tests: use extract from package from avocado.utils Acceptance Tests: workaround expired mipsdistros.mips.com HTTPS cert acceptance/tests/vnc.py: use explicit syntax for enabling passwords tests/acceptance/boot_xen.py: merge base classes tests/acceptance/boot_xen.py: unify tags tests/acceptance/boot_xen.py: fetch kernel during test setUp() tests/acceptance/boot_xen.py: removed unused import tests/acceptance/boot_xen.py: use class attribute tests/acceptance/ppc_prep_40p.py: NetBSD 7.1.2 location update tests/acceptance/ppc_prep_40p.py: clean up unused import tests/acceptance/ppc_prep_40p.py: unify tags

 docs/devel/testing.rst                    | 40 ++++++++++
 tests/Makefile.include                    | 15 +++-
 tests/acceptance/avocado_qemu/__init__.py |  1 +
 tests/acceptance/boot_linux_console.py    | 93 +++++++++--------------
 tests/acceptance/boot_xen.py              | 54 ++++---------
 tests/acceptance/machine_rx_gdbsim.py     |  3 +
 tests/acceptance/ppc_prep_40p.py          | 17 ++---
 tests/acceptance/replay_kernel.py         | 18 ++---
 tests/acceptance/tcg_plugins.py           |  2 +-
 tests/acceptance/vnc.py                   |  2 +-
 tests/requirements.txt                    |  2 +-
 11 files changed, 128 insertions(+), 119 deletions(-)
Signature · 1 line
2.31.1