Skip to main content
Ctrl+K

pytest-bluezenv 0.1.11.dev0

  • Overview
  • Writing tests
  • Running tests
  • API
  • Options
    • Requirements
    • Releases
  • Overview
  • Writing tests
  • Running tests
  • API
  • Options
  • Requirements
  • Releases

pytest-bluezenv#

pytest-bluezenv is a pytest plugin for functional testing of the Linux Bluetooth stack and applications.

  • Source code: bluez/pytest-bluezenv

  • Documentation: https://bluez.github.io/pytest-bluezenv/

  • PyPi: https://pypi.org/project/pytest-bluezenv/

A pytest process drives several QEMU VM hosts over RPC; the VMs see each other through a btvirt or real Bluetooth controller.

A test declares the VM host topology and host plugins. pytest-bluezenv starts the VM hosts and exposes them through RPC. By default, their emulated btvirt controllers provide a virtual air link. USB or PCIe controllers can be passed through for tests using real radios.

Contents:

  • Overview
    • Test layout
    • VM-host communication
    • Controllers
    • Reusing VM hosts
    • Time and log ordering
    • Timeouts
    • Failures and diagnostics
  • Writing tests
    • Declaring a test
    • Fixtures
    • Built-in host plugins
    • Running code on a host
    • Controlling a process
    • Host proxies and RPC
    • Reusing configuration and machines
    • Choosing a controller
    • Writing a host plugin
    • Asynchronous D-Bus events
    • The GLib main loop
    • LE advertising
    • Agent device properties
  • Running tests
    • Running a suite
    • Live logging
    • Slow RPC calls
    • Selecting tests
    • USB controllers
    • PCIe controllers
    • Parallel execution
    • VM-host console
  • API
    • VM configuration
    • Fixtures
    • Host plugins
    • Exceptions
    • Utilities
    • Host proxies
    • Internals
  • Options
    • Command line
    • INI options
  • Requirements
    • General
    • Kernel
    • USB
  • Releases

next

Overview

Show Source

© Copyright 2026, Pauli Virtanen.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.23.0.