tests/acceptance: rename tests acceptance to tests avocado
Subsystems (2)
v2 cover tests/acceptance: rename tests acceptance to tests avocado
In the discussion about renaming the tests/acceptance [1], the conclusion was that the folders inside tests are related to the framework running the tests and not directly related to the type of the tests.
This changes the folder to tests/avocado and adjusts the MAKEFILE, the CI related files and the documentation.
[1] https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg06553.html
GitLab pipeline with new naming: https://gitlab.com/willianrampazzo/qemu/-/pipelines/403056475
Changes from v1:
- Split changes on Makefile leaving check-acceptance available and adding a deprecate warning message when it is used. (Suggested-by: Philippe Mathieu-Daudé)
- Remove unrelated changes.
Willian Rampazzo (2):
tests/acceptance: introduce new check-avocado tartget tests/acceptance: rename tests acceptance to tests avocado
.gitlab-ci.d/buildtest-template.yml | 2 +-
.gitlab-ci.d/buildtest.yml | 56 +++++++++----------
MAINTAINERS | 52 ++++++++---------
configure | 2 +-
docs/about/deprecated.rst | 13 +++++
docs/devel/build-system.rst | 2 +-
docs/devel/ci-definitions.rst.inc | 2 +-
docs/devel/testing.rst | 49 ++++++++--------
docs/system/arm/orangepi.rst | 8 +--
python/qemu/machine/README.rst | 2 +-
python/qemu/qmp/README.rst | 2 +-
python/qemu/utils/README.rst | 2 +-
tests/Makefile.include | 21 ++++---
tests/acceptance/README.rst | 10 ----
tests/avocado/README.rst | 10 ++++
.../avocado_qemu/__init__.py | 2 +-
tests/{acceptance => avocado}/boot_linux.py | 0
.../boot_linux_console.py | 0
tests/{acceptance => avocado}/boot_xen.py | 0
tests/{acceptance => avocado}/cpu_queries.py | 0
.../empty_cpu_model.py | 0
tests/{acceptance => avocado}/hotplug_cpu.py | 0
tests/{acceptance => avocado}/info_usernet.py | 0
tests/{acceptance => avocado}/intel_iommu.py | 0
tests/{acceptance => avocado}/linux_initrd.py | 2 +-
.../linux_ssh_mips_malta.py | 0
.../machine_arm_canona1100.py | 0
.../machine_arm_integratorcp.py | 0
.../machine_arm_n8x0.py | 0
tests/{acceptance => avocado}/machine_avr6.py | 2 +-
.../machine_m68k_nextcube.py | 0
.../machine_microblaze.py | 0
.../machine_mips_fuloong2e.py | 0
.../machine_mips_loongson3v.py | 0
.../machine_mips_malta.py | 0
.../machine_rx_gdbsim.py | 0
.../machine_s390_ccw_virtio.py | 0
.../machine_sparc64_sun4u.py | 0
.../machine_sparc_leon3.py | 0
tests/{acceptance => avocado}/migration.py | 0
tests/{acceptance => avocado}/multiprocess.py | 0
.../pc_cpu_hotplug_props.py | 0
tests/{acceptance => avocado}/ppc_405.py | 0
tests/{acceptance => avocado}/ppc_bamboo.py | 0
.../{acceptance => avocado}/ppc_mpc8544ds.py | 0
tests/{acceptance => avocado}/ppc_prep_40p.py | 0
tests/{acceptance => avocado}/ppc_pseries.py | 0
.../ppc_virtex_ml507.py | 0
.../{acceptance => avocado}/replay_kernel.py | 0
tests/{acceptance => avocado}/replay_linux.py | 0
.../reverse_debugging.py | 0
tests/{acceptance => avocado}/smmu.py | 0
tests/{acceptance => avocado}/tcg_plugins.py | 0
.../tesseract_utils.py | 0
tests/{acceptance => avocado}/version.py | 0
tests/{acceptance => avocado}/virtio-gpu.py | 0
.../virtio_check_params.py | 0
.../{acceptance => avocado}/virtio_version.py | 0
.../virtiofs_submounts.py | 0
.../virtiofs_submounts.py.data/cleanup.sh | 0
.../guest-cleanup.sh | 0
.../virtiofs_submounts.py.data/guest.sh | 0
.../virtiofs_submounts.py.data/host.sh | 0
tests/{acceptance => avocado}/vnc.py | 0
.../x86_cpu_model_versions.py | 0
65 files changed, 129 insertions(+), 110 deletions(-)
delete mode 100644 tests/acceptance/README.rst
create mode 100644 tests/avocado/README.rst
rename tests/{acceptance => avocado}/avocado_qemu/__init__.py (99%)
rename tests/{acceptance => avocado}/boot_linux.py (100%)
rename tests/{acceptance => avocado}/boot_linux_console.py (100%)
rename tests/{acceptance => avocado}/boot_xen.py (100%)
rename tests/{acceptance => avocado}/cpu_queries.py (100%)
rename tests/{acceptance => avocado}/empty_cpu_model.py (100%)
rename tests/{acceptance => avocado}/hotplug_cpu.py (100%)
rename tests/{acceptance => avocado}/info_usernet.py (100%)
rename tests/{acceptance => avocado}/intel_iommu.py (100%)
rename tests/{acceptance => avocado}/linux_initrd.py (99%)
rename tests/{acceptance => avocado}/linux_ssh_mips_malta.py (100%)
rename tests/{acceptance => avocado}/machine_arm_canona1100.py (100%)
rename tests/{acceptance => avocado}/machine_arm_integratorcp.py (100%)
rename tests/{acceptance => avocado}/machine_arm_n8x0.py (100%)
rename tests/{acceptance => avocado}/machine_avr6.py (98%)
rename tests/{acceptance => avocado}/machine_m68k_nextcube.py (100%)
rename tests/{acceptance => avocado}/machine_microblaze.py (100%)
rename tests/{acceptance => avocado}/machine_mips_fuloong2e.py (100%)
rename tests/{acceptance => avocado}/machine_mips_loongson3v.py (100%)
rename tests/{acceptance => avocado}/machine_mips_malta.py (100%)
rename tests/{acceptance => avocado}/machine_rx_gdbsim.py (100%)
rename tests/{acceptance => avocado}/machine_s390_ccw_virtio.py (100%)
rename tests/{acceptance => avocado}/machine_sparc64_sun4u.py (100%)
rename tests/{acceptance => avocado}/machine_sparc_leon3.py (100%)
rename tests/{acceptance => avocado}/migration.py (100%)
rename tests/{acceptance => avocado}/multiprocess.py (100%)
rename tests/{acceptance => avocado}/pc_cpu_hotplug_props.py (100%)
rename tests/{acceptance => avocado}/ppc_405.py (100%)
rename tests/{acceptance => avocado}/ppc_bamboo.py (100%)
rename tests/{acceptance => avocado}/ppc_mpc8544ds.py (100%)
rename tests/{acceptance => avocado}/ppc_prep_40p.py (100%)
rename tests/{acceptance => avocado}/ppc_pseries.py (100%)
rename tests/{acceptance => avocado}/ppc_virtex_ml507.py (100%)
rename tests/{acceptance => avocado}/replay_kernel.py (100%)
rename tests/{acceptance => avocado}/replay_linux.py (100%)
rename tests/{acceptance => avocado}/reverse_debugging.py (100%)
rename tests/{acceptance => avocado}/smmu.py (100%)
rename tests/{acceptance => avocado}/tcg_plugins.py (100%)
rename tests/{acceptance => avocado}/tesseract_utils.py (100%)
rename tests/{acceptance => avocado}/version.py (100%)
rename tests/{acceptance => avocado}/virtio-gpu.py (100%)
rename tests/{acceptance => avocado}/virtio_check_params.py (100%)
rename tests/{acceptance => avocado}/virtio_version.py (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py.data/cleanup.sh (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py.data/guest-cleanup.sh (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py.data/guest.sh (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py.data/host.sh (100%)
rename tests/{acceptance => avocado}/vnc.py (100%)
rename tests/{acceptance => avocado}/x86_cpu_model_versions.py (100%)Signature · 1 line
2.33.1
PATCH v2 1/2 tests/acceptance: introduce new check-avocado tartget
This introduces a new make target, check-avocado, and adds a deprecation message about the check-acceptance target. This is a preparation for renaming the tests/acceptance folder to
tests/avocado.
The plan is to remove the call to the check-avocado target one or two months after the release and leave the warning to force people to move to the new check-avocado target.
Later, the check-acceptance target can be removed. The intent is to avoid a direct impact during the current soft freeze.
--- docs/about/deprecated.rst | 13 +++++++++++++ tests/Makefile.include | 17 ++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-)
docs/about/deprecated.rst +13 -0
@@ -410,3 +410,16 @@ nanoMIPS ISA The ``nanoMIPS`` ISA has never been upstreamed to any compiler toolchain. As it is hard to generate binaries for it, declare it deprecated. + +Testing +------- + +Renaming of the acceptance folder to avocado +'''''''''''''''''''''''''''''''''''''''''''' + +The ``tests/acceptance`` folder was never used to store acceptance tests +in terms of software engineering. This naming can confuse developers +adding tests using the Avocado Framework to this folder. The folder +name change to ``tests/avocado`` also changed the ``make`` target from +``check-acceptance`` to ``check-avocado``. In this case, the use of the +``check-acceptance`` target is deprecated.
tests/Makefile.include +12 -5
@@ -16,7 +16,7 @@ ifneq ($(filter $(all-check-targets), check-softfloat),) @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-softfloat Run FPU emulation tests" endif - @echo " $(MAKE) check-acceptance Run acceptance (functional) tests for currently configured targets" + @echo " $(MAKE) check-avocado Run avocado (integration) tests for currently configured targets" @echo @echo " $(MAKE) check-report.tap Generates an aggregated TAP test report" @echo " $(MAKE) check-venv Creates a Python venv for tests"
@@ -24,7 +24,7 @@ endif @echo @echo "The following are useful for CI builds" @echo " $(MAKE) check-build Build most test binaris" - @echo " $(MAKE) get-vm-images Downloads all images used by acceptance tests, according to configured targets (~350 MB each, 1.5 GB max)" + @echo " $(MAKE) get-vm-images Downloads all images used by avocado tests, according to configured targets (~350 MB each, 1.5 GB max)" @echo @echo @echo "The variable SPEED can be set to control the gtester speed setting."
@@ -83,7 +83,7 @@ clean-tcg: $(CLEAN_TCG_TARGET_RULES) # Python venv for running tests -.PHONY: check-venv check-acceptance +.PHONY: check-venv check-avocado check-acceptance check-acceptance-deprecated-warning TESTS_VENV_DIR=$(BUILD_DIR)/tests/venv TESTS_VENV_REQ=$(SRC_PATH)/tests/requirements.txt
@@ -127,12 +127,12 @@ get-vm-image-fedora-31-%: check-venv $(call quiet-command, \ $(TESTS_VENV_DIR)/bin/python -m avocado vmimage get \ --distro=fedora --distro-version=31 --arch=$*, \ - "AVOCADO", "Downloading acceptance tests VM image for $*") + "AVOCADO", "Downloading avocado tests VM image for $*") # download all vm images, according to defined targets get-vm-images: check-venv $(patsubst %,get-vm-image-fedora-31-%, $(FEDORA_31_DOWNLOAD)) -check-acceptance: check-venv $(TESTS_RESULTS_DIR) get-vm-images +check-avocado: check-venv $(TESTS_RESULTS_DIR) get-vm-images $(call quiet-command, \ $(TESTS_VENV_DIR)/bin/python -m avocado \ --show=$(AVOCADO_SHOW) run --job-results-dir=$(TESTS_RESULTS_DIR) \
@@ -142,6 +142,13 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR) get-vm-images $(if $(GITLAB_CI),,--failfast) $(AVOCADO_TESTS), \ "AVOCADO", "tests/acceptance") +check-acceptance-deprecated-warning: + @echo + @echo "Note '$(MAKE) check-acceptance' is deprecated, use '$(MAKE) check-avocado' instead." + @echo + +check-acceptance: check-acceptance-deprecated-warning | check-avocado + # Consolidated targets .PHONY: check-block check check-clean get-vm-images
Signature · 1 line
2.33.1
Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget
Quoted 12 lines · Willian Rampazzo
This introduces a new
maketarget,check-avocado, and adds a deprecation message about thecheck-acceptancetarget. This is a preparation for renaming thetests/acceptancefolder to
tests/avocado.The plan is to remove the call to the
check-avocadotarget one or two months after the release and leave the warning to force people to move to the newcheck-avocadotarget.Later, the
check-acceptancetarget can be removed. The intent is to avoid a direct impact during the current soft freeze.
Quoted 6 lines
Suggested-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Willian Rampazzo <[email protected]>--- docs/about/deprecated.rst | 13 +++++++++++++ tests/Makefile.include | 17 ++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-)
Typo "target" in subject (no need to respin).
Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget
In reply to Willian RampazzoQuoted 30 lines · Willian Rampazzo
This introduces a new
maketarget,check-avocado, and adds a deprecation message about thecheck-acceptancetarget. This is a preparation for renaming thetests/acceptancefolder to
tests/avocado.The plan is to remove the call to the
check-avocadotarget one or two months after the release and leave the warning to force people to move to the newcheck-avocadotarget.Later, the
check-acceptancetarget can be removed. The intent is to avoid a direct impact during the current soft freeze.Suggested-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Willian Rampazzo <[email protected]>--- docs/about/deprecated.rst | 13 +++++++++++++ tests/Makefile.include | 17 ++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-)docs/about/deprecated.rst +3
-0@@ -410,3 +410,16 @@ nanoMIPS ISA The ``nanoMIPS`` ISA has never been upstreamed to any compiler toolchain. As it is hard to generate binaries for it, declare it deprecated. + +Testing +-------
docs/about/deprecated.rst nanoMIPS ISA · line 425
Quoted 10 lines
docs/about/deprecated.rst +10
-0+ +Renaming of the acceptance folder to avocado +'''''''''''''''''''''''''''''''''''''''''''' + +The ``tests/acceptance`` folder was never used to store acceptance tests +in terms of software engineering. This naming can confuse developers +adding tests using the Avocado Framework to this folder. The folder +name change to ``tests/avocado`` also changed the ``make`` target from +``check-acceptance`` to ``check-avocado``. In this case, the use of the +``check-acceptance`` target is deprecated.
Not sure whether we need to document this in deprecated.rst, too, since we're normally only listing the things here that affect the users of the qemu binaries, not the people who want to recompile and run the tests... OTOH, I don't mind too much either if we list it here... Anybody else got an opinion on this?
Quoted 51 lines
tests/Makefile.include +5
-5@@ -16,7 +16,7 @@ ifneq ($(filter $(all-check-targets), check-softfloat),) @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-softfloat Run FPU emulation tests" endif - @echo " $(MAKE) check-acceptance Run acceptance (functional) tests for currently configured targets" + @echo " $(MAKE) check-avocado Run avocado (integration) tests for currently configured targets" @echo @echo " $(MAKE) check-report.tap Generates an aggregated TAP test report" @echo " $(MAKE) check-venv Creates a Python venv for tests"@@ -24,7 +24,7 @@ endif @echo @echo "The following are useful for CI builds" @echo " $(MAKE) check-build Build most test binaris" - @echo " $(MAKE) get-vm-images Downloads all images used by acceptance tests, according to configured targets (~350 MB each, 1.5 GB max)" + @echo " $(MAKE) get-vm-images Downloads all images used by avocado tests, according to configured targets (~350 MB each, 1.5 GB max)" @echo @echo @echo "The variable SPEED can be set to control the gtester speed setting."@@ -83,7 +83,7 @@ clean-tcg: $(CLEAN_TCG_TARGET_RULES) # Python venv for running tests -.PHONY: check-venv check-acceptance +.PHONY: check-venv check-avocado check-acceptance check-acceptance-deprecated-warning TESTS_VENV_DIR=$(BUILD_DIR)/tests/venv TESTS_VENV_REQ=$(SRC_PATH)/tests/requirements.txt@@ -127,12 +127,12 @@ get-vm-image-fedora-31-%: check-venv $(call quiet-command, \ $(TESTS_VENV_DIR)/bin/python -m avocado vmimage get \ --distro=fedora --distro-version=31 --arch=$*, \ - "AVOCADO", "Downloading acceptance tests VM image for $*") + "AVOCADO", "Downloading avocado tests VM image for $*") # download all vm images, according to defined targets get-vm-images: check-venv $(patsubst %,get-vm-image-fedora-31-%, $(FEDORA_31_DOWNLOAD)) -check-acceptance: check-venv $(TESTS_RESULTS_DIR) get-vm-images +check-avocado: check-venv $(TESTS_RESULTS_DIR) get-vm-images $(call quiet-command, \ $(TESTS_VENV_DIR)/bin/python -m avocado \ --show=$(AVOCADO_SHOW) run --job-results-dir=$(TESTS_RESULTS_DIR) \@@ -142,6 +142,13 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR) get-vm-images $(if $(GITLAB_CI),,--failfast) $(AVOCADO_TESTS), \ "AVOCADO", "tests/acceptance")
tests/Makefile.include check-acceptance: check-venv $(TESTS_RESULTS_DIR) get-vm-images · line 154
Quoted 10 lines
tests/Makefile.include +7
-0+check-acceptance-deprecated-warning: + @echo + @echo "Note '$(MAKE) check-acceptance' is deprecated, use '$(MAKE) check-avocado' instead." + @echo + +check-acceptance: check-acceptance-deprecated-warning | check-avocado + # Consolidated targets .PHONY: check-block check check-clean get-vm-images
Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget
Quoted 39 lines · Thomas Huth
Quoted 38 lines · Willian Rampazzo
This introduces a new
maketarget,check-avocado, and adds a deprecation message about thecheck-acceptancetarget. This is a preparation for renaming thetests/acceptancefolder totests/avocado.The plan is to remove the call to the
check-avocadotarget one or two months after the release and leave the warning to force people to move to the newcheck-avocadotarget.Later, the
check-acceptancetarget can be removed. The intent is to avoid a direct impact during the current soft freeze.Suggested-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Willian Rampazzo <[email protected]>---
docs/about/deprecated.rst| 13 +++++++++++++ tests/Makefile.include | 17 ++++++++++++-----2 files changed, 25 insertions(+), 5 deletions(-)docs/about/deprecated.rst +0
-0@@ -410,3 +410,16 @@ nanoMIPS ISAThe ``nanoMIPS`` ISA has never been upstreamed to any compiler toolchain.
As it is hard to generate binaries for it, declare it deprecated.docs/about/deprecated.rst +11
-0+ +Testing +------- + +Renaming of the acceptance folder to avocado +'''''''''''''''''''''''''''''''''''''''''''' + +The ``tests/acceptance`` folder was never used to store acceptance tests +in terms of software engineering. This naming can confuse developers +adding tests using the Avocado Framework to this folder. The folder +name change to ``tests/avocado`` also changed the ``make`` target from
Quoted 8 lines
Quoted 2 lines
+``check-acceptance`` to ``check-avocado``. In this case, the use of the +``check-acceptance`` target is deprecated.
Not sure whether we need to document this in
deprecated.rst, too, since we're normally only listing the things here that affect the users of the qemu binaries, not the people who want to recompile and run the tests... OTOH, I don't mind too much either if we list it here... Anybody else got an opinion on this?
Hmm OK my bad, I asked Willian to add that without noticing this file is for "only things that affect the users".
Willian, if you agree with Thomas, I can remove this change from your patch.
Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget
In reply to Thomas HuthQuoted 38 lines · Thomas Huth
Quoted 37 lines · Willian Rampazzo
This introduces a new
maketarget,check-avocado, and adds a deprecation message about thecheck-acceptancetarget. This is a preparation for renaming thetests/acceptancefolder to
tests/avocado.The plan is to remove the call to the
check-avocadotarget one or two months after the release and leave the warning to force people to move to the newcheck-avocadotarget.Later, the
check-acceptancetarget can be removed. The intent is to avoid a direct impact during the current soft freeze.Suggested-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Willian Rampazzo <[email protected]>--- docs/about/deprecated.rst | 13 +++++++++++++ tests/Makefile.include | 17 ++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-)docs/about/deprecated.rst +11
-0@@ -410,3 +410,16 @@ nanoMIPS ISA The ``nanoMIPS`` ISA has never been upstreamed to any compiler toolchain. As it is hard to generate binaries for it, declare it deprecated. + +Testing +------- + +Renaming of the acceptance folder to avocado +'''''''''''''''''''''''''''''''''''''''''''' + +The ``tests/acceptance`` folder was never used to store acceptance tests +in terms of software engineering. This naming can confuse developers +adding tests using the Avocado Framework to this folder. The folder +name change to ``tests/avocado`` also changed the ``make`` target from
Quoted 8 lines
docs/about/deprecated.rst nanoMIPS ISA · line 425
Quoted 2 lines
docs/about/deprecated.rst +2
-0+``check-acceptance`` to ``check-avocado``. In this case, the use of the +``check-acceptance`` target is deprecated.Not sure whether we need to document this in
deprecated.rst, too, since we're normally only listing the things here that affect the users of the qemu binaries, not the people who want to recompile and run the tests... OTOH, I don't mind too much either if we list it here... Anybody else got an opinion on this?
Deprecations are only things for user facing changes in the apps.
For build system changes we don't bother with any deprecation cycle. Just make the change immediately and document it in the release notes.
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget
Quoted 48 lines · Daniel P. Berrangé
Quoted 38 lines · Thomas Huth
Quoted 37 lines · Willian Rampazzo
This introduces a new
maketarget,check-avocado, and adds a deprecation message about thecheck-acceptancetarget. This is a preparation for renaming thetests/acceptancefolder to
tests/avocado.The plan is to remove the call to the
check-avocadotarget one or two months after the release and leave the warning to force people to move to the newcheck-avocadotarget.Later, the
check-acceptancetarget can be removed. The intent is to avoid a direct impact during the current soft freeze.Suggested-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Willian Rampazzo <[email protected]>--- docs/about/deprecated.rst | 13 +++++++++++++ tests/Makefile.include | 17 ++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-)docs/about/deprecated.rst +11
-0@@ -410,3 +410,16 @@ nanoMIPS ISA The ``nanoMIPS`` ISA has never been upstreamed to any compiler toolchain. As it is hard to generate binaries for it, declare it deprecated. + +Testing +------- + +Renaming of the acceptance folder to avocado +'''''''''''''''''''''''''''''''''''''''''''' + +The ``tests/acceptance`` folder was never used to store acceptance tests +in terms of software engineering. This naming can confuse developers +adding tests using the Avocado Framework to this folder. The folder +name change to ``tests/avocado`` also changed the ``make`` target fromQuoted 8 lines
docs/about/deprecated.rst nanoMIPS ISA · line 425
Quoted 2 lines
docs/about/deprecated.rst +2
-0+``check-acceptance`` to ``check-avocado``. In this case, the use of the +``check-acceptance`` target is deprecated.Not sure whether we need to document this in
deprecated.rst, too, since we're normally only listing the things here that affect the users of the qemu binaries, not the people who want to recompile and run the tests... OTOH, I don't mind too much either if we list it here... Anybody else got an opinion on this?
Quoted 1 line
Deprecations are only things for user facing changes in the apps.
OK.
Quoted 2 lines
For build system changes we don't bother with any deprecation cycle. Just make the change immediately and document it in the release notes.
Understood.
Willian, do you mind updating the release notes?
https://wiki.qemu.org/ChangeLog/6.2#Testing_and_CI
Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget
Quoted 54 lines · Philippe Mathieu-Daudé
Quoted 48 lines · Daniel P. Berrangé
Quoted 38 lines · Thomas Huth
Quoted 37 lines · Willian Rampazzo
This introduces a new
maketarget,check-avocado, and adds a deprecation message about thecheck-acceptancetarget. This is a preparation for renaming thetests/acceptancefolder to
tests/avocado.The plan is to remove the call to the
check-avocadotarget one or two months after the release and leave the warning to force people to move to the newcheck-avocadotarget.Later, the
check-acceptancetarget can be removed. The intent is to avoid a direct impact during the current soft freeze.Suggested-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Willian Rampazzo <[email protected]>--- docs/about/deprecated.rst | 13 +++++++++++++ tests/Makefile.include | 17 ++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-)docs/about/deprecated.rst +11
-0@@ -410,3 +410,16 @@ nanoMIPS ISA The ``nanoMIPS`` ISA has never been upstreamed to any compiler toolchain. As it is hard to generate binaries for it, declare it deprecated. + +Testing +------- + +Renaming of the acceptance folder to avocado +'''''''''''''''''''''''''''''''''''''''''''' + +The ``tests/acceptance`` folder was never used to store acceptance tests +in terms of software engineering. This naming can confuse developers +adding tests using the Avocado Framework to this folder. The folder +name change to ``tests/avocado`` also changed the ``make`` target fromQuoted 8 lines
docs/about/deprecated.rst nanoMIPS ISA · line 425
Quoted 2 lines
docs/about/deprecated.rst +2
-0+``check-acceptance`` to ``check-avocado``. In this case, the use of the +``check-acceptance`` target is deprecated.Not sure whether we need to document this in
deprecated.rst, too, since we're normally only listing the things here that affect the users of the qemu binaries, not the people who want to recompile and run the tests... OTOH, I don't mind too much either if we list it here... Anybody else got an opinion on this?Quoted 1 line
Deprecations are only things for user facing changes in the apps.
OK.
Quoted 8 lines
Quoted 2 lines
For build system changes we don't bother with any deprecation cycle. Just make the change immediately and document it in the release notes.
Understood.
Willian, do you mind updating the release notes?
https://wiki.qemu.org/ChangeLog/6.2#Testing_and_CI
Sure, I can do that, but I think I need to wait for the patch to be merged, right?
PATCH v2 2/2 tests/acceptance: rename tests acceptance to tests avocado
In reply to Willian RampazzoIn the discussion about renaming the tests/acceptance [1], the conclusion was that the folders inside tests are related to the framework running the tests and not directly related to the type of the tests.
This changes the folder to tests/avocado and adjusts the MAKEFILE, the CI related files and the documentation.
[1] https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg06553.html
For the Orange Pi PC documentation:
---
.gitlab-ci.d/buildtest-template.yml | 2 +-
.gitlab-ci.d/buildtest.yml | 56 +++++++++----------
MAINTAINERS | 52 ++++++++---------
configure | 2 +-
docs/devel/build-system.rst | 2 +-
docs/devel/ci-definitions.rst.inc | 2 +-
docs/devel/testing.rst | 49 ++++++++--------
docs/system/arm/orangepi.rst | 8 +--
python/qemu/machine/README.rst | 2 +-
python/qemu/qmp/README.rst | 2 +-
python/qemu/utils/README.rst | 2 +-
tests/Makefile.include | 4 +-
tests/acceptance/README.rst | 10 ----
tests/avocado/README.rst | 10 ++++
.../avocado_qemu/__init__.py | 2 +-
tests/{acceptance => avocado}/boot_linux.py | 0
.../boot_linux_console.py | 0
tests/{acceptance => avocado}/boot_xen.py | 0
tests/{acceptance => avocado}/cpu_queries.py | 0
.../empty_cpu_model.py | 0
tests/{acceptance => avocado}/hotplug_cpu.py | 0
tests/{acceptance => avocado}/info_usernet.py | 0
tests/{acceptance => avocado}/intel_iommu.py | 0
tests/{acceptance => avocado}/linux_initrd.py | 2 +-
.../linux_ssh_mips_malta.py | 0
.../machine_arm_canona1100.py | 0
.../machine_arm_integratorcp.py | 0
.../machine_arm_n8x0.py | 0
tests/{acceptance => avocado}/machine_avr6.py | 2 +-
.../machine_m68k_nextcube.py | 0
.../machine_microblaze.py | 0
.../machine_mips_fuloong2e.py | 0
.../machine_mips_loongson3v.py | 0
.../machine_mips_malta.py | 0
.../machine_rx_gdbsim.py | 0
.../machine_s390_ccw_virtio.py | 0
.../machine_sparc64_sun4u.py | 0
.../machine_sparc_leon3.py | 0
tests/{acceptance => avocado}/migration.py | 0
tests/{acceptance => avocado}/multiprocess.py | 0
.../pc_cpu_hotplug_props.py | 0
tests/{acceptance => avocado}/ppc_405.py | 0
tests/{acceptance => avocado}/ppc_bamboo.py | 0
.../{acceptance => avocado}/ppc_mpc8544ds.py | 0
tests/{acceptance => avocado}/ppc_prep_40p.py | 0
tests/{acceptance => avocado}/ppc_pseries.py | 0
.../ppc_virtex_ml507.py | 0
.../{acceptance => avocado}/replay_kernel.py | 0
tests/{acceptance => avocado}/replay_linux.py | 0
.../reverse_debugging.py | 0
tests/{acceptance => avocado}/smmu.py | 0
tests/{acceptance => avocado}/tcg_plugins.py | 0
.../tesseract_utils.py | 0
tests/{acceptance => avocado}/version.py | 0
tests/{acceptance => avocado}/virtio-gpu.py | 0
.../virtio_check_params.py | 0
.../{acceptance => avocado}/virtio_version.py | 0
.../virtiofs_submounts.py | 0
.../virtiofs_submounts.py.data/cleanup.sh | 0
.../guest-cleanup.sh | 0
.../virtiofs_submounts.py.data/guest.sh | 0
.../virtiofs_submounts.py.data/host.sh | 0
tests/{acceptance => avocado}/vnc.py | 0
.../x86_cpu_model_versions.py | 0
64 files changed, 104 insertions(+), 105 deletions(-)
delete mode 100644 tests/acceptance/README.rst
create mode 100644 tests/avocado/README.rst
rename tests/{acceptance => avocado}/avocado_qemu/__init__.py (99%)
rename tests/{acceptance => avocado}/boot_linux.py (100%)
rename tests/{acceptance => avocado}/boot_linux_console.py (100%)
rename tests/{acceptance => avocado}/boot_xen.py (100%)
rename tests/{acceptance => avocado}/cpu_queries.py (100%)
rename tests/{acceptance => avocado}/empty_cpu_model.py (100%)
rename tests/{acceptance => avocado}/hotplug_cpu.py (100%)
rename tests/{acceptance => avocado}/info_usernet.py (100%)
rename tests/{acceptance => avocado}/intel_iommu.py (100%)
rename tests/{acceptance => avocado}/linux_initrd.py (99%)
rename tests/{acceptance => avocado}/linux_ssh_mips_malta.py (100%)
rename tests/{acceptance => avocado}/machine_arm_canona1100.py (100%)
rename tests/{acceptance => avocado}/machine_arm_integratorcp.py (100%)
rename tests/{acceptance => avocado}/machine_arm_n8x0.py (100%)
rename tests/{acceptance => avocado}/machine_avr6.py (98%)
rename tests/{acceptance => avocado}/machine_m68k_nextcube.py (100%)
rename tests/{acceptance => avocado}/machine_microblaze.py (100%)
rename tests/{acceptance => avocado}/machine_mips_fuloong2e.py (100%)
rename tests/{acceptance => avocado}/machine_mips_loongson3v.py (100%)
rename tests/{acceptance => avocado}/machine_mips_malta.py (100%)
rename tests/{acceptance => avocado}/machine_rx_gdbsim.py (100%)
rename tests/{acceptance => avocado}/machine_s390_ccw_virtio.py (100%)
rename tests/{acceptance => avocado}/machine_sparc64_sun4u.py (100%)
rename tests/{acceptance => avocado}/machine_sparc_leon3.py (100%)
rename tests/{acceptance => avocado}/migration.py (100%)
rename tests/{acceptance => avocado}/multiprocess.py (100%)
rename tests/{acceptance => avocado}/pc_cpu_hotplug_props.py (100%)
rename tests/{acceptance => avocado}/ppc_405.py (100%)
rename tests/{acceptance => avocado}/ppc_bamboo.py (100%)
rename tests/{acceptance => avocado}/ppc_mpc8544ds.py (100%)
rename tests/{acceptance => avocado}/ppc_prep_40p.py (100%)
rename tests/{acceptance => avocado}/ppc_pseries.py (100%)
rename tests/{acceptance => avocado}/ppc_virtex_ml507.py (100%)
rename tests/{acceptance => avocado}/replay_kernel.py (100%)
rename tests/{acceptance => avocado}/replay_linux.py (100%)
rename tests/{acceptance => avocado}/reverse_debugging.py (100%)
rename tests/{acceptance => avocado}/smmu.py (100%)
rename tests/{acceptance => avocado}/tcg_plugins.py (100%)
rename tests/{acceptance => avocado}/tesseract_utils.py (100%)
rename tests/{acceptance => avocado}/version.py (100%)
rename tests/{acceptance => avocado}/virtio-gpu.py (100%)
rename tests/{acceptance => avocado}/virtio_check_params.py (100%)
rename tests/{acceptance => avocado}/virtio_version.py (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py.data/cleanup.sh (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py.data/guest-cleanup.sh (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py.data/guest.sh (100%)
rename tests/{acceptance => avocado}/virtiofs_submounts.py.data/host.sh (100%)
rename tests/{acceptance => avocado}/vnc.py (100%)
rename tests/{acceptance => avocado}/x86_cpu_model_versions.py (100%).gitlab-ci.d/buildtest-template.yml +1 -1
@@ -37,7 +37,7 @@ # Avoid recompiling by hiding ninja with NINJA=":" - make NINJA=":" $MAKE_CHECK_ARGS -.acceptance_test_job_template: +.avocado_test_job_template: extends: .native_test_job_template cache: key: "${CI_JOB_NAME}-cache"
.gitlab-ci.d/buildtest.yml +28 -28
161 lines not on this page · raw message
MAINTAINERS +26 -26
190 lines not on this page · raw message
configure +1 -1
@@ -3832,7 +3832,7 @@ LINKS="$LINKS pc-bios/s390-ccw/Makefile" LINKS="$LINKS roms/seabios/Makefile" LINKS="$LINKS pc-bios/qemu-icon.bmp" LINKS="$LINKS .gdbinit scripts" # scripts needed by relative path in .gdbinit -LINKS="$LINKS tests/acceptance tests/data" +LINKS="$LINKS tests/avocado tests/data" LINKS="$LINKS tests/qemu-iotests/check" LINKS="$LINKS python" LINKS="$LINKS contrib/plugins/Makefile "
docs/devel/build-system.rst +1 -1
@@ -416,7 +416,7 @@ number of dynamically created files listed later. ``tests/Makefile.include`` Rules for external test harnesses. These include the TCG tests, - ``qemu-iotests`` and the Avocado-based acceptance tests. + ``qemu-iotests`` and the Avocado-based integration tests. ``tests/docker/Makefile.include`` Rules for Docker tests. Like tests/Makefile, this file is included
docs/devel/ci-definitions.rst.inc +1 -1
@@ -59,7 +59,7 @@ to system testing [5]_. Note that, in some cases, system testing may require interaction with third-party software, like operating system images, databases, networks, and so on. -On QEMU, system testing is represented by the 'check-acceptance' target from +On QEMU, system testing is represented by the 'check-avocado' target from 'make'. Flaky tests
docs/devel/testing.rst +24 -25
145 lines not on this page · raw message
docs/system/arm/orangepi.rst +4 -4
@@ -250,14 +250,14 @@ and set the following environment variables before booting: Optionally you may save the environment variables to SD card with 'saveenv'. To continue booting simply give the 'boot' command and NetBSD boots. -Orange Pi PC acceptance tests -""""""""""""""""""""""""""""" +Orange Pi PC integration tests +"""""""""""""""""""""""""""""" -The Orange Pi PC machine has several acceptance tests included. +The Orange Pi PC machine has several integration tests included. To run the whole set of tests, build QEMU from source and simply provide the following command: .. code-block:: bash $ AVOCADO_ALLOW_LARGE_STORAGE=yes avocado --show=app,console run \ - -t machine:orangepi-pc tests/acceptance/boot_linux_console.py + -t machine:orangepi-pc tests/avocado/boot_linux_console.py
python/qemu/machine/README.rst +1 -1
@@ -2,7 +2,7 @@ qemu.machine package ==================== This package provides core utilities used for testing and debugging -QEMU. It is used by the iotests, vm tests, acceptance tests, and several +QEMU. It is used by the iotests, vm tests, avocado tests, and several other utilities in the ./scripts directory. It is not a fully-fledged SDK and it is subject to change at any time.
python/qemu/qmp/README.rst +1 -1
@@ -3,7 +3,7 @@ qemu.qmp package This package provides a library used for connecting to and communicating with QMP servers. It is used extensively by iotests, vm tests, -acceptance tests, and other utilities in the ./scripts directory. It is +avocado tests, and other utilities in the ./scripts directory. It is not a fully-fledged SDK and is subject to change at any time. See the documentation in ``__init__.py`` for more information.
python/qemu/utils/README.rst +1 -1
@@ -2,6 +2,6 @@ qemu.utils package ================== This package provides miscellaneous utilities used for testing and -debugging QEMU. It is used primarily by the vm and acceptance tests. +debugging QEMU. It is used primarily by the vm and avocado tests. See the documentation in ``__init__.py`` for more information.
tests/Makefile.include +2 -2
@@ -89,7 +89,7 @@ TESTS_VENV_DIR=$(BUILD_DIR)/tests/venv TESTS_VENV_REQ=$(SRC_PATH)/tests/requirements.txt TESTS_RESULTS_DIR=$(BUILD_DIR)/tests/results ifndef AVOCADO_TESTS - AVOCADO_TESTS=tests/acceptance + AVOCADO_TESTS=tests/avocado endif # Controls the output generated by Avocado when running tests. # Any number of command separated loggers are accepted. For more
@@ -140,7 +140,7 @@ check-avocado: check-venv $(TESTS_RESULTS_DIR) get-vm-images --filter-by-tags-include-empty-key) \ $(AVOCADO_CMDLINE_TAGS) \ $(if $(GITLAB_CI),,--failfast) $(AVOCADO_TESTS), \ - "AVOCADO", "tests/acceptance") + "AVOCADO", "tests/avocado") check-acceptance-deprecated-warning: @echo
tests/acceptance/README.rst deleted +0 -10
@@ -1,10 +0,0 @@ -============================================ -Acceptance tests using the Avocado Framework -============================================ - -This directory contains functional tests, also known as acceptance -level tests. They're usually higher level, and may interact with -external resources and with various guest operating systems. - -For more information, please refer to ``docs/devel/testing.rst``, -section "Acceptance tests using the Avocado Framework".
tests/avocado/README.rst new file +10 -0
@@ -0,0 +1,10 @@ +============================================= +Integration tests using the Avocado Framework +============================================= + +This directory contains integration tests. They're usually higher +level, and may interact with external resources and with various +guest operating systems. + +For more information, please refer to ``docs/devel/testing.rst``, +section "Integration tests using the Avocado Framework".
tests/avocado/avocado_qemu/__init__.py renamed from tests/acceptance/avocado_qemu/__init__.py +1 -1
@@ -27,7 +27,7 @@ BUILD_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) if os.path.islink(os.path.dirname(os.path.dirname(__file__))): - # The link to the acceptance tests dir in the source code directory + # The link to the avocado tests dir in the source code directory lnk = os.path.dirname(os.path.dirname(__file__)) #: The QEMU root source directory SOURCE_DIR = os.path.dirname(os.path.dirname(os.readlink(lnk)))
tests/avocado/boot_linux.py renamed from tests/acceptance/boot_linux.py +0 -0
tests/avocado/boot_linux_console.py renamed from tests/acceptance/boot_linux_console.py +0 -0
tests/avocado/boot_xen.py renamed from tests/acceptance/boot_xen.py +0 -0
tests/avocado/cpu_queries.py renamed from tests/acceptance/cpu_queries.py +0 -0
tests/avocado/empty_cpu_model.py renamed from tests/acceptance/empty_cpu_model.py +0 -0
tests/avocado/hotplug_cpu.py renamed from tests/acceptance/hotplug_cpu.py +0 -0
tests/avocado/info_usernet.py renamed from tests/acceptance/info_usernet.py +0 -0
tests/avocado/intel_iommu.py renamed from tests/acceptance/intel_iommu.py +0 -0
tests/avocado/linux_initrd.py renamed from tests/acceptance/linux_initrd.py +1 -1
@@ -1,4 +1,4 @@ -# Linux initrd acceptance test. +# Linux initrd integration test. # # Copyright (c) 2018 Red Hat, Inc. #
tests/avocado/linux_ssh_mips_malta.py renamed from tests/acceptance/linux_ssh_mips_malta.py +0 -0
tests/avocado/machine_arm_canona1100.py renamed from tests/acceptance/machine_arm_canona1100.py +0 -0
tests/avocado/machine_arm_integratorcp.py renamed from tests/acceptance/machine_arm_integratorcp.py +0 -0
tests/avocado/machine_arm_n8x0.py renamed from tests/acceptance/machine_arm_n8x0.py +0 -0
tests/avocado/machine_avr6.py renamed from tests/acceptance/machine_avr6.py +1 -1
@@ -1,5 +1,5 @@ # -# QEMU AVR acceptance tests +# QEMU AVR integration tests # # Copyright (c) 2019-2020 Michael Rolnik <[email protected]> #
tests/avocado/machine_m68k_nextcube.py renamed from tests/acceptance/machine_m68k_nextcube.py +0 -0
tests/avocado/machine_microblaze.py renamed from tests/acceptance/machine_microblaze.py +0 -0
tests/avocado/machine_mips_fuloong2e.py renamed from tests/acceptance/machine_mips_fuloong2e.py +0 -0
tests/avocado/machine_mips_loongson3v.py renamed from tests/acceptance/machine_mips_loongson3v.py +0 -0
tests/avocado/machine_mips_malta.py renamed from tests/acceptance/machine_mips_malta.py +0 -0
tests/avocado/machine_rx_gdbsim.py renamed from tests/acceptance/machine_rx_gdbsim.py +0 -0
tests/avocado/machine_s390_ccw_virtio.py renamed from tests/acceptance/machine_s390_ccw_virtio.py +0 -0
tests/avocado/machine_sparc64_sun4u.py renamed from tests/acceptance/machine_sparc64_sun4u.py +0 -0
tests/avocado/machine_sparc_leon3.py renamed from tests/acceptance/machine_sparc_leon3.py +0 -0
tests/avocado/migration.py renamed from tests/acceptance/migration.py +0 -0
tests/avocado/multiprocess.py renamed from tests/acceptance/multiprocess.py +0 -0
tests/avocado/pc_cpu_hotplug_props.py renamed from tests/acceptance/pc_cpu_hotplug_props.py +0 -0
tests/avocado/ppc_405.py renamed from tests/acceptance/ppc_405.py +0 -0
tests/avocado/ppc_bamboo.py renamed from tests/acceptance/ppc_bamboo.py +0 -0
tests/avocado/ppc_mpc8544ds.py renamed from tests/acceptance/ppc_mpc8544ds.py +0 -0
tests/avocado/ppc_prep_40p.py renamed from tests/acceptance/ppc_prep_40p.py +0 -0
tests/avocado/ppc_pseries.py renamed from tests/acceptance/ppc_pseries.py +0 -0
tests/avocado/ppc_virtex_ml507.py renamed from tests/acceptance/ppc_virtex_ml507.py +0 -0
tests/avocado/replay_kernel.py renamed from tests/acceptance/replay_kernel.py +0 -0
tests/avocado/replay_linux.py renamed from tests/acceptance/replay_linux.py +0 -0
tests/avocado/reverse_debugging.py renamed from tests/acceptance/reverse_debugging.py +0 -0
tests/avocado/smmu.py renamed from tests/acceptance/smmu.py +0 -0
tests/avocado/tcg_plugins.py renamed from tests/acceptance/tcg_plugins.py +0 -0
tests/avocado/tesseract_utils.py renamed from tests/acceptance/tesseract_utils.py +0 -0
tests/avocado/version.py renamed from tests/acceptance/version.py +0 -0
tests/avocado/virtio-gpu.py renamed from tests/acceptance/virtio-gpu.py +0 -0
tests/avocado/virtio_check_params.py renamed from tests/acceptance/virtio_check_params.py +0 -0
tests/avocado/virtio_version.py renamed from tests/acceptance/virtio_version.py +0 -0
tests/avocado/virtiofs_submounts.py renamed from tests/acceptance/virtiofs_submounts.py +0 -0
tests/avocado/virtiofs_submounts.py.data/cleanup.sh renamed from tests/acceptance/virtiofs_submounts.py.data/cleanup.sh +0 -0
tests/avocado/virtiofs_submounts.py.data/guest-cleanup.sh renamed from tests/acceptance/virtiofs_submounts.py.data/guest-cleanup.sh +0 -0
tests/avocado/virtiofs_submounts.py.data/guest.sh renamed from tests/acceptance/virtiofs_submounts.py.data/guest.sh +0 -0
tests/avocado/virtiofs_submounts.py.data/host.sh renamed from tests/acceptance/virtiofs_submounts.py.data/host.sh +0 -0
tests/avocado/vnc.py renamed from tests/acceptance/vnc.py +0 -0
tests/avocado/x86_cpu_model_versions.py renamed from tests/acceptance/x86_cpu_model_versions.py +0 -0
Signature · 1 line
2.33.1
Quoted 18 lines · Willian Rampazzo
In the discussion about renaming the
tests/acceptance[1], the conclusion was that the folders insidetestsare related to the framework running the tests and not directly related to the type of the tests.This changes the folder to
tests/avocadoand adjusts the MAKEFILE, the CI related files and the documentation.[1] https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg06553.html
GitLab pipeline with new naming: https://gitlab.com/willianrampazzo/qemu/-/pipelines/403056475
Changes from v1:
- Split changes onMakefileleavingcheck-acceptanceavailable and adding a deprecate warning message when it is used. (Suggested-by: Philippe Mathieu-Daudé)
- Remove unrelated changes.
Quoted 5 lines
Signed-off-by Willian Rampazzo <[email protected]>Willian Rampazzo (2):
tests/acceptance: introduce new check-avocado tartget tests/acceptance: rename tests acceptance to tests avocado
Thanks, series queued.