tests/acceptance: rename tests acceptance to tests avocado
Subsystems (2)
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/401431592
Willian Rampazzo (1):
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/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 | 14 ++---
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 | 12 ++--
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, 113 insertions(+), 118 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 (92%)
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 1/1 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-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 | 14 ++---
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 | 12 ++--
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, 113 insertions(+), 118 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 (92%)
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
@@ -3901,7 +3901,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 +7 -7
@@ -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,13 +83,13 @@ clean-tcg: $(CLEAN_TCG_TARGET_RULES) # Python venv for running tests -.PHONY: check-venv check-acceptance +.PHONY: check-venv check-avocado 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
@@ -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) \
@@ -140,7 +140,7 @@ check-acceptance: 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") # Consolidated targets
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 +4 -8
@@ -13,6 +13,10 @@ class IbmPrep40pMachine(Test): + """ + :avocado: tags=arch:ppc + :avocado: tags=machine:40p + """ timeout = 60
@@ -24,8 +28,6 @@ class IbmPrep40pMachine(Test): @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code') def test_factory_firmware_and_netbsd(self): """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p :avocado: tags=os:netbsd :avocado: tags=slowness:high """
@@ -48,10 +50,6 @@ def test_factory_firmware_and_netbsd(self): wait_for_console_pattern(self, 'Model: IBM PPS Model 6015') def test_openbios_192m(self): - """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p - """ self.vm.set_console() self.vm.add_args('-m', '192') # test fw_cfg
@@ -62,8 +60,6 @@ def test_openbios_192m(self): def test_openbios_and_netbsd(self): """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p :avocado: tags=os:netbsd """ drive_url = ('https://archive.netbsd.org/pub/NetBSD-archive/'
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 16 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
Signed-off-by Willian Rampazzo <[email protected]>---
64 files changed, 113 insertions(+), 118 deletions(-)
tests/Makefile.include get-vm-image-fedora-31-%: check-venv · line 138
Quoted 9 lines
tests/Makefile.include +2
-2-.PHONY: check-venv check-acceptance +.PHONY: check-venv check-avocado -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) \
We should keep check-acceptance, eventually printing a deprecation message. Smth like:
check-acceptance: check-avocado a
@echo "Note 'make $@' is deprecated, use 'make $<' instead" >&2
Quoted 34 lines
tests/avocado/ppc_prep_40p.py renamed from tests/acceptance/ppc_prep_40p.py +4
-6@@ -13,6 +13,10 @@ class IbmPrep40pMachine(Test): + """ + :avocado: tags=arch:ppc + :avocado: tags=machine:40p + """ timeout = 60@@ -24,8 +28,6 @@ class IbmPrep40pMachine(Test): @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code') def test_factory_firmware_and_netbsd(self): """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p :avocado: tags=os:netbsd :avocado: tags=slowness:high """@@ -48,10 +50,6 @@ def test_factory_firmware_and_netbsd(self): wait_for_console_pattern(self, 'Model: IBM PPS Model 6015') def test_openbios_192m(self): - """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p - """ self.vm.set_console() self.vm.add_args('-m', '192') # test fw_cfg
tests/avocado/ppc_prep_40p.py def test_openbios_192m(self): · line 65
Quoted 8 lines
tests/avocado/ppc_prep_40p.py renamed from tests/acceptance/ppc_prep_40p.py +0
-2@@ -62,8 +60,6 @@ def test_openbios_192m(self): def test_openbios_and_netbsd(self): """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p :avocado: tags=os:netbsd """ drive_url = ('https://archive.netbsd.org/pub/NetBSD-archive/'
Unrelated change, otherwise:
Quoted 31 lines · Philippe Mathieu-Daudé
Quoted 16 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
Signed-off-by Willian Rampazzo <[email protected]>---
64 files changed, 113 insertions(+), 118 deletions(-)tests/Makefile.include get-vm-image-fedora-31-%: check-venv · line 138
Quoted 9 lines
tests/Makefile.include +2
-2-.PHONY: check-venv check-acceptance +.PHONY: check-venv check-avocado -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) \We should keep check-acceptance, eventually printing a deprecation message. Smth like:
Quoted 3 lines
check-acceptance: check-avocado a
@echo "Note 'make $@' is deprecated, use 'make $<' instead" >&2
I agree.
Quoted 35 lines
Quoted 35 lines
tests/avocado/ppc_prep_40p.py renamed from tests/acceptance/ppc_prep_40p.py +4
-6@@ -13,6 +13,10 @@ class IbmPrep40pMachine(Test): + """ + :avocado: tags=arch:ppc + :avocado: tags=machine:40p + """ timeout = 60@@ -24,8 +28,6 @@ class IbmPrep40pMachine(Test): @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code') def test_factory_firmware_and_netbsd(self): """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p :avocado: tags=os:netbsd :avocado: tags=slowness:high """@@ -48,10 +50,6 @@ def test_factory_firmware_and_netbsd(self): wait_for_console_pattern(self, 'Model: IBM PPS Model 6015') def test_openbios_192m(self): - """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p - """ self.vm.set_console() self.vm.add_args('-m', '192') # test fw_cfg@@ -62,8 +60,6 @@ def test_openbios_192m(self):
Quoted 9 lines
tests/avocado/ppc_prep_40p.py def test_openbios_192m(self): · line 65
Quoted 7 lines
tests/avocado/ppc_prep_40p.py renamed from tests/acceptance/ppc_prep_40p.py +0
-2def test_openbios_and_netbsd(self): """ - :avocado: tags=arch:ppc - :avocado: tags=machine:40p :avocado: tags=os:netbsd """ drive_url = ('https://archive.netbsd.org/pub/NetBSD-archive/'Unrelated change, otherwise:
Ouch, looks like I took one of my test changes. I'll wait for some more comments and remove this change on a v2.
Quoted 4 lines
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Thanks!
Hi Willian,
For the Orange Pi PC documentation:
Op wo 3 nov. 2021 22:14 schreef Willian Rampazzo <[email protected]>:
Quoted 144 lines
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/401431592Signed-off-by Willian Rampazzo <[email protected]>Willian Rampazzo (1):
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/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 | 14 ++--- 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 | 12 ++-- 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, 113 insertions(+), 118 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 (92%) 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%)--
2.33.1