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