Requirements#
General#
pytest-bluezenv requires:
QEMU for x86_64
dbus-daemonThe Python dependencies declared by the package
Install the package and its Python dependencies in the environment that runs Pytest:
$ python3 -m pip install pytest-bluezenv
The following are recommended:
An x86_64 host with KVM enabled
A built BlueZ source tree
chronyd,util-linux, andagetty
Kernel#
VM-host tests require a kernel image. --kernel-build builds a suitable
image from sources in .pytest_cache when needed.
The BlueZ source tree provides a suitable configuration in
doc/tester.config. To build an image manually:
cp ../bluez/doc/tester.config .config
make olddefconfig
make -j8
pytest-bluezenv bundles a suitable base configuration, used for
--kernel-build if not BlueZ source tree is provided.
For accurate VM-host log timestamps, the kernel needs these options:
CONFIG_HYPERVISOR_GUEST=y
CONFIG_PARAVIRT=y
CONFIG_KVM_GUEST=y
CONFIG_PTP_1588_CLOCK=y
CONFIG_PTP_1588_CLOCK_KVM=y
CONFIG_PTP_1588_CLOCK_VMCLOCK=y
USB#
Some tests require a hardware controller rather than btvirt. USB
pass-through requires permission to open the controller. PCIe pass-through
requires root, an enabled IOMMU, and an isolated IOMMU group. The relevant
commands are documented in Running tests.