Skip to main content

embedded systems control library for development, testing and installation

Project description

labgrid logo

Welcome to labgrid

LGPLv2.1 unit tests status docker build status coverage status documentation status chat chat

Purpose

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

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.

Documentation

Read the Docs

Contributing

Development Docs

IRC channel #labgrid on libera.chat (bridged to the Matrix channel #labgrid:matrix.org)

Background

Work on labgrid started at Pengutronix in late 2016 and is currently in active use and development.

Quickstart

See the Installation section for more details.

Clone the git repository:

$ git clone https://github.com/labgrid-project/labgrid

Create and activate a virtualenv for labgrid:

$ virtualenv -p python3 venv
$ source venv/bin/activate
venv $ pip install --upgrade pip

Install labgrid into the virtualenv:

venv $ pip install .

Tests can now run via:

venv $ python -m pytest --lg-env <config>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labgrid-23.1a2.tar.gz (395.7 kB view details)

Uploaded Source

Built Distribution

labgrid-23.1a2-py3-none-any.whl (218.0 kB view details)

Uploaded Python 3

File details

Details for the file labgrid-23.1a2.tar.gz.

File metadata

  • Download URL: labgrid-23.1a2.tar.gz
  • Upload date:
  • Size: 395.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for labgrid-23.1a2.tar.gz
Algorithm Hash digest
SHA256 95a5f5a5865807b4981cc50c71bc0cbbd7d5ee3b7c1f5f30cc833cd98aa52898
MD5 a03f883038a7eaa0cc7820fd549f1f86
BLAKE2b-256 25a5779401d2a1f4d2af32870b3b3076ba6b629b8627eef60e77cfa8be183edf

See more details on using hashes here.

File details

Details for the file labgrid-23.1a2-py3-none-any.whl.

File metadata

  • Download URL: labgrid-23.1a2-py3-none-any.whl
  • Upload date:
  • Size: 218.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for labgrid-23.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 19565cfbc0be2ad9c4aba5870ebaad4c71f34ce449dc4bb32ec29acfdb4799ba
MD5 7b006313f6be410bdfe1dfed225758ab
BLAKE2b-256 3483ab6f634e026419b376ca6b845ebb602cd33c9807637f4341e74a7ae7ffb6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page