diff options
author | Willian Rampazzo <willianr@redhat.com> | 2021-09-23 13:11:39 -0300 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-09-27 19:06:47 +0200 |
commit | 23022794dee93f7bc3213e42cb613c4fc78b90ec (patch) | |
tree | b6980e714fb1deb5ed1523ad9d1852bcc8a6227a /docs/devel/testing.rst | |
parent | e519df437a1f46491f687c001fe2eab24bafe18e (diff) | |
download | qemu-23022794dee93f7bc3213e42cb613c4fc78b90ec.zip qemu-23022794dee93f7bc3213e42cb613c4fc78b90ec.tar.gz qemu-23022794dee93f7bc3213e42cb613c4fc78b90ec.tar.bz2 |
tests/Makefile: allow control over tags during check-acceptance
Although it is possible to run a specific test using the avocado
command-line, a user may want to use a specific tag while running the
``make check-acceptance`` during the development or debugging.
This allows using the AVOCADO_TAGS environment variable where the user
takes total control of which tests should run based on the tags defined.
This also makes the check-acceptance command flexible to restrict tests
based on tags while running on CI.
e.g.:
AVOCADO_TAGS="foo bar baz" make check-acceptance
Signed-off-by: Willian Rampazzo <willianr@redhat.com>
Tested-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210923161141.232208-2-willianr@redhat.com>
Diffstat (limited to 'docs/devel/testing.rst')
-rw-r--r-- | docs/devel/testing.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 4a0abbf..d1841e3 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -732,6 +732,20 @@ available. On Debian and Ubuntu based systems, depending on the specific version, they may be on packages named ``python3-venv`` and ``python3-pip``. +It is also possible to run tests based on tags using the +``make check-acceptance`` command and the ``AVOCADO_TAGS`` environment +variable: + +.. code:: + + make check-acceptance AVOCADO_TAGS=quick + +Note that tags separated with commas have an AND behavior, while tags +separated by spaces have an OR behavior. For more information on Avocado +tags, see: + + https://avocado-framework.readthedocs.io/en/latest/guides/user/chapters/tags.html + The scripts installed inside the virtual environment may be used without an "activation". For instance, the Avocado test runner may be invoked by running: |