Skip to contentSkip to conversation

tests/acceptance: rename tests acceptance to tests avocado

PATCH In review Willian Rampazzo 5 participants 10 messages Nov 5, 2021 – Nov 8, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 56f9ad15ab..7bf8da8325 100644
@@ -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
index 8434a33fe6..8e8ee58493 100644
@@ -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
Reviewed-by Tested-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget

Quoted 12 lines · Willian Rampazzo

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.

Quoted 6 lines
---
 docs/about/deprecated.rst | 13 +++++++++++++
 tests/Makefile.include    | 17 ++++++++++++-----
 2 files changed, 25 insertions(+), 5 deletions(-)

Typo "target" in subject (no need to respin).

Acked-by on v2 1/2
#3 lore raw

Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget

In reply to Willian Rampazzo
Quoted 30 lines · Willian Rampazzo

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 +3 -0
index 56f9ad15ab..7bf8da8325 100644
@@ -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
index 8434a33fe6..8e8ee58493 100644
@@ -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
#4 lore raw

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 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 +0 -0
index 56f9ad15ab..7bf8da8325 100644
@@ -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.

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.

#5 lore raw

Re: [PATCH v2 1/2] tests/acceptance: introduce new check-avocado tartget

In reply to Thomas Huth
Quoted 38 lines · Thomas Huth
Quoted 37 lines · Willian Rampazzo

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 +11 -0
index 56f9ad15ab..7bf8da8325 100644
@@ -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 :|
#6 lore raw

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 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 +11 -0
index 56f9ad15ab..7bf8da8325 100644
@@ -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?

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

#7 lore raw

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 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 +11 -0
index 56f9ad15ab..7bf8da8325 100644
@@ -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?

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?

#8 lore raw

PATCH v2 2/2 tests/acceptance: rename tests acceptance to tests avocado

In reply to Willian Rampazzo

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

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
index fcbcc4e627..2c7980a4f6 100644
@@ -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
index 33682cb971..19d5e97b27 100755
@@ -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
index 7f106d2f1c..911ee5a8df 100644
@@ -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
index 32e22ff468..6d5c6fd9f2 100644
@@ -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
index 6f23907fb6..c55694dd91 100644
@@ -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
index ac2b4fffb4..8de2c3d772 100644
@@ -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
index c21951491c..5bfb82535f 100644
@@ -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
index 975fbf4d7d..d5f2da1454 100644
@@ -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
index 8e8ee58493..4c564cf789 100644
@@ -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
deleted file mode 100644
index 89260faed6..0000000000
@@ -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
new file mode 100644
index 0000000000..94488371bb
@@ -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
similarity index 99%
rename from tests/acceptance/avocado_qemu/__init__.py
rename to tests/avocado/avocado_qemu/__init__.py
index 1841053e2c..cd21b59e04 100644
@@ -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
similarity index 100%
rename from tests/acceptance/boot_linux.py
rename to tests/avocado/boot_linux.py
tests/avocado/boot_linux_console.py renamed from tests/acceptance/boot_linux_console.py +0 -0
similarity index 100%
rename from tests/acceptance/boot_linux_console.py
rename to tests/avocado/boot_linux_console.py
tests/avocado/boot_xen.py renamed from tests/acceptance/boot_xen.py +0 -0
similarity index 100%
rename from tests/acceptance/boot_xen.py
rename to tests/avocado/boot_xen.py
tests/avocado/cpu_queries.py renamed from tests/acceptance/cpu_queries.py +0 -0
similarity index 100%
rename from tests/acceptance/cpu_queries.py
rename to tests/avocado/cpu_queries.py
tests/avocado/empty_cpu_model.py renamed from tests/acceptance/empty_cpu_model.py +0 -0
similarity index 100%
rename from tests/acceptance/empty_cpu_model.py
rename to tests/avocado/empty_cpu_model.py
tests/avocado/hotplug_cpu.py renamed from tests/acceptance/hotplug_cpu.py +0 -0
similarity index 100%
rename from tests/acceptance/hotplug_cpu.py
rename to tests/avocado/hotplug_cpu.py
tests/avocado/info_usernet.py renamed from tests/acceptance/info_usernet.py +0 -0
similarity index 100%
rename from tests/acceptance/info_usernet.py
rename to tests/avocado/info_usernet.py
tests/avocado/intel_iommu.py renamed from tests/acceptance/intel_iommu.py +0 -0
similarity index 100%
rename from tests/acceptance/intel_iommu.py
rename to tests/avocado/intel_iommu.py
tests/avocado/linux_initrd.py renamed from tests/acceptance/linux_initrd.py +1 -1
similarity index 99%
rename from tests/acceptance/linux_initrd.py
rename to tests/avocado/linux_initrd.py
index a249e2f14a..9b4880cd8c 100644
@@ -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
similarity index 100%
rename from tests/acceptance/linux_ssh_mips_malta.py
rename to tests/avocado/linux_ssh_mips_malta.py
tests/avocado/machine_arm_canona1100.py renamed from tests/acceptance/machine_arm_canona1100.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_arm_canona1100.py
rename to tests/avocado/machine_arm_canona1100.py
tests/avocado/machine_arm_integratorcp.py renamed from tests/acceptance/machine_arm_integratorcp.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_arm_integratorcp.py
rename to tests/avocado/machine_arm_integratorcp.py
tests/avocado/machine_arm_n8x0.py renamed from tests/acceptance/machine_arm_n8x0.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_arm_n8x0.py
rename to tests/avocado/machine_arm_n8x0.py
tests/avocado/machine_avr6.py renamed from tests/acceptance/machine_avr6.py +1 -1
similarity index 98%
rename from tests/acceptance/machine_avr6.py
rename to tests/avocado/machine_avr6.py
index 6baf4e9c7f..6bab31342a 100644
@@ -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
similarity index 100%
rename from tests/acceptance/machine_m68k_nextcube.py
rename to tests/avocado/machine_m68k_nextcube.py
tests/avocado/machine_microblaze.py renamed from tests/acceptance/machine_microblaze.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_microblaze.py
rename to tests/avocado/machine_microblaze.py
tests/avocado/machine_mips_fuloong2e.py renamed from tests/acceptance/machine_mips_fuloong2e.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_mips_fuloong2e.py
rename to tests/avocado/machine_mips_fuloong2e.py
tests/avocado/machine_mips_loongson3v.py renamed from tests/acceptance/machine_mips_loongson3v.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_mips_loongson3v.py
rename to tests/avocado/machine_mips_loongson3v.py
tests/avocado/machine_mips_malta.py renamed from tests/acceptance/machine_mips_malta.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_mips_malta.py
rename to tests/avocado/machine_mips_malta.py
tests/avocado/machine_rx_gdbsim.py renamed from tests/acceptance/machine_rx_gdbsim.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_rx_gdbsim.py
rename to tests/avocado/machine_rx_gdbsim.py
tests/avocado/machine_s390_ccw_virtio.py renamed from tests/acceptance/machine_s390_ccw_virtio.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_s390_ccw_virtio.py
rename to tests/avocado/machine_s390_ccw_virtio.py
tests/avocado/machine_sparc64_sun4u.py renamed from tests/acceptance/machine_sparc64_sun4u.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_sparc64_sun4u.py
rename to tests/avocado/machine_sparc64_sun4u.py
tests/avocado/machine_sparc_leon3.py renamed from tests/acceptance/machine_sparc_leon3.py +0 -0
similarity index 100%
rename from tests/acceptance/machine_sparc_leon3.py
rename to tests/avocado/machine_sparc_leon3.py
tests/avocado/migration.py renamed from tests/acceptance/migration.py +0 -0
similarity index 100%
rename from tests/acceptance/migration.py
rename to tests/avocado/migration.py
tests/avocado/multiprocess.py renamed from tests/acceptance/multiprocess.py +0 -0
similarity index 100%
rename from tests/acceptance/multiprocess.py
rename to tests/avocado/multiprocess.py
tests/avocado/pc_cpu_hotplug_props.py renamed from tests/acceptance/pc_cpu_hotplug_props.py +0 -0
similarity index 100%
rename from tests/acceptance/pc_cpu_hotplug_props.py
rename to tests/avocado/pc_cpu_hotplug_props.py
tests/avocado/ppc_405.py renamed from tests/acceptance/ppc_405.py +0 -0
similarity index 100%
rename from tests/acceptance/ppc_405.py
rename to tests/avocado/ppc_405.py
tests/avocado/ppc_bamboo.py renamed from tests/acceptance/ppc_bamboo.py +0 -0
similarity index 100%
rename from tests/acceptance/ppc_bamboo.py
rename to tests/avocado/ppc_bamboo.py
tests/avocado/ppc_mpc8544ds.py renamed from tests/acceptance/ppc_mpc8544ds.py +0 -0
similarity index 100%
rename from tests/acceptance/ppc_mpc8544ds.py
rename to tests/avocado/ppc_mpc8544ds.py
tests/avocado/ppc_prep_40p.py renamed from tests/acceptance/ppc_prep_40p.py +0 -0
similarity index 100%
rename from tests/acceptance/ppc_prep_40p.py
rename to tests/avocado/ppc_prep_40p.py
tests/avocado/ppc_pseries.py renamed from tests/acceptance/ppc_pseries.py +0 -0
similarity index 100%
rename from tests/acceptance/ppc_pseries.py
rename to tests/avocado/ppc_pseries.py
tests/avocado/ppc_virtex_ml507.py renamed from tests/acceptance/ppc_virtex_ml507.py +0 -0
similarity index 100%
rename from tests/acceptance/ppc_virtex_ml507.py
rename to tests/avocado/ppc_virtex_ml507.py
tests/avocado/replay_kernel.py renamed from tests/acceptance/replay_kernel.py +0 -0
similarity index 100%
rename from tests/acceptance/replay_kernel.py
rename to tests/avocado/replay_kernel.py
tests/avocado/replay_linux.py renamed from tests/acceptance/replay_linux.py +0 -0
similarity index 100%
rename from tests/acceptance/replay_linux.py
rename to tests/avocado/replay_linux.py
tests/avocado/reverse_debugging.py renamed from tests/acceptance/reverse_debugging.py +0 -0
similarity index 100%
rename from tests/acceptance/reverse_debugging.py
rename to tests/avocado/reverse_debugging.py
tests/avocado/smmu.py renamed from tests/acceptance/smmu.py +0 -0
similarity index 100%
rename from tests/acceptance/smmu.py
rename to tests/avocado/smmu.py
tests/avocado/tcg_plugins.py renamed from tests/acceptance/tcg_plugins.py +0 -0
similarity index 100%
rename from tests/acceptance/tcg_plugins.py
rename to tests/avocado/tcg_plugins.py
tests/avocado/tesseract_utils.py renamed from tests/acceptance/tesseract_utils.py +0 -0
similarity index 100%
rename from tests/acceptance/tesseract_utils.py
rename to tests/avocado/tesseract_utils.py
tests/avocado/version.py renamed from tests/acceptance/version.py +0 -0
similarity index 100%
rename from tests/acceptance/version.py
rename to tests/avocado/version.py
tests/avocado/virtio-gpu.py renamed from tests/acceptance/virtio-gpu.py +0 -0
similarity index 100%
rename from tests/acceptance/virtio-gpu.py
rename to tests/avocado/virtio-gpu.py
tests/avocado/virtio_check_params.py renamed from tests/acceptance/virtio_check_params.py +0 -0
similarity index 100%
rename from tests/acceptance/virtio_check_params.py
rename to tests/avocado/virtio_check_params.py
tests/avocado/virtio_version.py renamed from tests/acceptance/virtio_version.py +0 -0
similarity index 100%
rename from tests/acceptance/virtio_version.py
rename to tests/avocado/virtio_version.py
tests/avocado/virtiofs_submounts.py renamed from tests/acceptance/virtiofs_submounts.py +0 -0
similarity index 100%
rename from tests/acceptance/virtiofs_submounts.py
rename to tests/avocado/virtiofs_submounts.py
tests/avocado/virtiofs_submounts.py.data/cleanup.sh renamed from tests/acceptance/virtiofs_submounts.py.data/cleanup.sh +0 -0
similarity index 100%
rename from tests/acceptance/virtiofs_submounts.py.data/cleanup.sh
rename to tests/avocado/virtiofs_submounts.py.data/cleanup.sh
tests/avocado/virtiofs_submounts.py.data/guest-cleanup.sh renamed from tests/acceptance/virtiofs_submounts.py.data/guest-cleanup.sh +0 -0
similarity index 100%
rename from tests/acceptance/virtiofs_submounts.py.data/guest-cleanup.sh
rename to tests/avocado/virtiofs_submounts.py.data/guest-cleanup.sh
tests/avocado/virtiofs_submounts.py.data/guest.sh renamed from tests/acceptance/virtiofs_submounts.py.data/guest.sh +0 -0
similarity index 100%
rename from tests/acceptance/virtiofs_submounts.py.data/guest.sh
rename to tests/avocado/virtiofs_submounts.py.data/guest.sh
tests/avocado/virtiofs_submounts.py.data/host.sh renamed from tests/acceptance/virtiofs_submounts.py.data/host.sh +0 -0
similarity index 100%
rename from tests/acceptance/virtiofs_submounts.py.data/host.sh
rename to tests/avocado/virtiofs_submounts.py.data/host.sh
tests/avocado/vnc.py renamed from tests/acceptance/vnc.py +0 -0
similarity index 100%
rename from tests/acceptance/vnc.py
rename to tests/avocado/vnc.py
tests/avocado/x86_cpu_model_versions.py renamed from tests/acceptance/x86_cpu_model_versions.py +0 -0
similarity index 100%
rename from tests/acceptance/x86_cpu_model_versions.py
rename to tests/avocado/x86_cpu_model_versions.py
Signature · 1 line
2.33.1
#9 lore raw
In reply to Willian Rampazzo
Quoted 18 lines · Willian Rampazzo

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.

Quoted 5 lines

Willian Rampazzo (2):
tests/acceptance: introduce new check-avocado tartget tests/acceptance: rename tests acceptance to tests avocado

Thanks, series queued.