Skip to main content

labgrid: lab hardware and software control layer

Project description

LGPLv2.1 build status coverage status documentation status

Purpose

Labgrid is a 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)

  • 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.

Documentation

Read the Docs

Contributing

Development Docs

Background

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

Quickstart

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:

$ 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.1.0.zip (160.4 kB view details)

Uploaded Source

File details

Details for the file labgrid-0.1.0.zip.

File metadata

  • Download URL: labgrid-0.1.0.zip
  • Upload date:
  • Size: 160.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for labgrid-0.1.0.zip
Algorithm Hash digest
SHA256 08b25e4b300579dd8a2a8614648d09aa56b267ac66e08baa04922e5b192b2335
MD5 ce3f836c3d86055506ffd141e9c734c3
BLAKE2b-256 9c94d162eba6c90377a3cc66b77165f751fdc21e562ed0c268e4e2ce4c98decf

See more details on using hashes here.

Supported by

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