Options#
Command line#
The pytest-bluezenv plugin adds the following options.
--kernel=<image>Kernel image or built Linux source-tree root. When omitted,
FUNCTIONAL_TESTING_KERNELsupplies the value.--usb=hci0,hci1USB controllers available for hardware tests. When omitted,
FUNCTIONAL_TESTING_CONTROLLERSsupplies the value. Otherwise, all accessible USB controllers are considered.--force-usbUse USB controllers instead of
btvirt.--pcie=hci0,hci1PCIe controllers available for hardware tests. When omitted,
FUNCTIONAL_TESTING_CONTROLLERSsupplies the value. Otherwise, all PCIe controllers are considered. PCIe pass-through binds a controller tovfio-pciwhile a VM host uses it and requires root.--force-pcieUse PCIe controllers instead of
btvirt.--bluez-build-dir=<path>BlueZ build directory searched for executables.
--bluez-src-dir=<path>BlueZ source directory. It is searched for executables when no build directory is set, and supplies
doc/tester.configfor kernel builds.bluez_src_dirreturns it in tests.--log-filter=[+-]<pattern>,[+-]<pattern>,...Comma-separated allow and deny patterns for loggers. A pattern is a shell glob. Prefix a pattern with
+or-to allow or deny it.--no-log-reorderPreserve log arrival order instead of timestamp order.
--vm-timeout=<seconds>Timeout, in seconds, for communication with VM hosts.
--vm-mem=<amount>Default VM-host memory, for example
512M.--btmonRun
btmonon all VM hosts and save traffic intest-bluezenv-*.btsnoop.--btvirt-debugEnable debug output from
btvirt.--bluezenv-progress=auto/on/offReport slow host RPC calls.
auto(the default) reports only on an interactive terminal;onalso emits periodic lines when there is none. Enabling it forces verbose test-case output.--kernel-build=no/use/auto/forceBuild a suitable kernel image from source.
nodisables builds,useuses a cached image (default),autobuilds when needed, andforcerebuilds it. A bare--kernel-buildselectsauto.--kernel-upstream=<GIT_URL>Kernel source Git URL used by
--kernel-build.--kernel-branch=<GIT_BRANCH>Kernel branch or revision used by
--kernel-build.--no-core-backtracesDo not generate backtraces for collected core files.
Tests requiring an unavailable kernel image or hardware controller are
skipped. Tests use btvirt otherwise.
Each VM host shares /run/shared with the upper tester. The upper-tester
directory is normally /tmp/pytest-bluezenv-*/shared-*. Captures and core
dumps are copied out before the test instance stops.
INI options#
bluezenv_progress=auto/on/offDefault value for
--bluezenv-progress.vm_timeoutDefault timeout, in seconds, for RPC calls and wait helpers. The command-line option
--vm-timeoutoverrides it.vm_memDefault memory assigned to each VM host. The command-line option
--vm-memoverrides it.kernel_upstreamDefault Git URL used when building a kernel.
kernel_branchDefault kernel branch or revision used when building a kernel.
host_plugins.rcvbuf.defaultDefault receive-buffer size set by
Rcvbufon each VM host. An explicitRcvbuf(rcvbuf=...)overrides it.