Skip to main content

labgrid: lab hardware and software control layer

Project description

labgrid logo

Welcome to labgrid

LGPLv2.1 unit tests status docker build status coverage status documentation status 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:

  • pytest plugin to write tests for embedded systems connecting serial console or SSH

  • remote client-exporter-coordinator infrastructure to make boards available from different computers on a network

  • power/reset management via drivers for power switches or onewire PIOs

  • upload of binaries via USB: imxusbloader/mxsusbloader (bootloader) or fastboot (kernel)

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

Install labgrid into the virtualenv:

$ pip install -r requirements.txt
$ python setup.py install

Tests can now run via:

$ 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-0.4.0.tar.gz (346.3 kB view details)

Uploaded Source

Built Distribution

labgrid-0.4.0-py3-none-any.whl (208.5 kB view details)

Uploaded Python 3

File details

Details for the file labgrid-0.4.0.tar.gz.

File metadata

  • Download URL: labgrid-0.4.0.tar.gz
  • Upload date:
  • Size: 346.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for labgrid-0.4.0.tar.gz
Algorithm Hash digest
SHA256 266bdab0f085925379e03f8f679713bfb1918cfc03cf3da54c7861020e2dcc24
MD5 a3926644f3652dc0fd113052f2b3fe47
BLAKE2b-256 526f4cde5ba29cc37f0f8cd7b2b982bfda707a19cc25569bf0cb791858b5e59f

See more details on using hashes here.

File details

Details for the file labgrid-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: labgrid-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 208.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for labgrid-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a174853f900bf72444f65839d97a4741a3b21e68be6eef0e9c204673814490c
MD5 360265939885f094dc69cbabdbb67f22
BLAKE2b-256 4552e90d7a4a7cb4b87a637949e13517d63636f4065aef3824f8275b42d7063a

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