Welcome to labgrid’s documentation!
labgrid is an embedded board control python library with a focus on testing, development and general automation. It includes a remote control layer to control boards connected to other hosts.
The idea behind labgrid is to create an abstraction of the hardware control layer needed for testing of embedded systems, automatic software installation and automation during development. labgrid itself is not a testing framework, but is intended to be combined with pytest (and additional pytest plugins). Please see Design Decisions for more background information.
It currently supports:
remote client-exporter-coordinator infrastructure to make boards available from different computers on a network
pytest plugin to write automated tests for embedded systems
CLI and library usage for development and automation
interaction with bootloader and Linux shells on top of serial console or SSH
power/reset management via drivers for power switches
upload of binaries and device bootstrapping via USB
control of digital outputs, SD card and USB multiplexers
integration of audio/video/measurement devices for remote development and testing
Docker/QEMU integration
functions to control external services such as emulated USB-Sticks and the hawkBit deployment service
While labgrid is currently used for daily development on embedded boards and for automated testing, several planned features are not yet implemented and the APIs may be changed as more use-cases appear. We appreciate code contributions and feedback on using labgrid on other environments (see Contributing for details). Please consider contacting us (via a GitHub issue) before starting larger changes, so we can discuss design trade-offs early and avoid redundant work. You can also look at Ideas for enhancements which are not yet implemented.
Contents
- Getting Started
- Overview
- Usage
- Manual Pages
- Configuration
- Development
- Design Decisions
- Changes
- Release 25.0 (Unreleased)
- Release 24.0 (Released Aug 12, 2024)
- Release 23.0.6 (Released Apr 16, 2024)
- Release 23.0.5 (Released Jan 13, 2024)
- Release 23.0.4 (Released Nov 10, 2023)
- Release 23.0.3 (Released Jul 20, 2023)
- Release 23.0.2 (Released Jul 04, 2023)
- Release 23.0.1 (Released Apr 26, 2023)
- Release 23.0 (Released Apr 24, 2023)
- Release 0.4.0 (Released Sep 22, 2021)
- Release 0.3.0 (released Jan 22, 2021)
- Release 0.2.0 (released Jan 4, 2019)
- Release 0.1.0 (released May 11, 2017)
- Modules