[Qemu-devel] [PATCH 0/3] Acceptance tests: boot Linux with KVM test

Wainer dos Santos Moschetta posted 3 patches 4 years, 10 months ago
Test docker-clang@ubuntu passed
Test s390x passed
Test asan passed
Test docker-mingw@fedora passed
Test FreeBSD passed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190628150217.32659-1-wainersm@redhat.com
There is a newer version of this series
python/qemu/__init__.py                   | 72 +++++++++++++++--------
tests/acceptance/avocado_qemu/__init__.py |  5 ++
tests/acceptance/avocado_qemu/accel.py    | 60 +++++++++++++++++++
tests/acceptance/kvm.py                   | 58 ++++++++++++++++++
4 files changed, 171 insertions(+), 24 deletions(-)
create mode 100644 tests/acceptance/avocado_qemu/accel.py
create mode 100644 tests/acceptance/kvm.py
[Qemu-devel] [PATCH 0/3] Acceptance tests: boot Linux with KVM test
Posted by Wainer dos Santos Moschetta 4 years, 10 months ago
Hi all!

This series introduce a simple test case which boots Linux with
KVM enabled aiming to exercise qemu-kvm integration. No other
acceptance test does that as far as I know.

The patch 02 allows the test writter to mark (by means of Avocado tag)
the test require a given accelerator that if not present will end up
on skipping its run. It uses `qemu -accel help` to determine if accel
is enabled in binary and in some cases (e.g. kvm) it can check the host
support too. Because `qemu -accel help` needs to execute without the
qmp machinery, the patch 01 is needed. The patch 01 allows to boot qemu
with no qmp which can also be used on LinuxInitrd test for instance.

Depends on '[PATCH 1/2] Acceptance tests: exclude "flaky" tests'
which bumps Avocado version to 69.1.

Conflicts with '[RFC PATCH v2 1/3] python/qemu: split QEMUMachine out
from underneath __init__.py'. Upon merge of John's patch I can then
rebase this.

Git: https://github.com/wainersm/qemu
Branch: acceptance_kvm_test 
Travis: https://travis-ci.org/wainersm/qemu/jobs/551455876

Wainer dos Santos Moschetta (3):
  python/qemu: Allow to launch the VM without qmp
  tests/acceptance: Introduce the "accel" tag
  tests/acceptance: Add boot linux with kvm test

 python/qemu/__init__.py                   | 72 +++++++++++++++--------
 tests/acceptance/avocado_qemu/__init__.py |  5 ++
 tests/acceptance/avocado_qemu/accel.py    | 60 +++++++++++++++++++
 tests/acceptance/kvm.py                   | 58 ++++++++++++++++++
 4 files changed, 171 insertions(+), 24 deletions(-)
 create mode 100644 tests/acceptance/avocado_qemu/accel.py
 create mode 100644 tests/acceptance/kvm.py

-- 
2.21.0