embedded systems control library for development, testing and installation
Switch branches/tags
Nothing to show
Clone or download
esben and Emantor Avoid "Key already on target" spamming
Signed-off-by: Esben Haabendal <esben@haabendal.dk>
Latest commit ed7dcc0 Nov 12, 2018
Permalink
Failed to load latest commit information.
.crossbar remote: replace autoping with explicit polling Nov 19, 2017
debian debian: add packaging based on dh_virtualenv Apr 25, 2018
doc doc: fix typo (s/udevadmin/udevadm/) Nov 1, 2018
docker Add files to build Docker images Oct 2, 2018
examples linting: do not use len() to determine if a sequence is empty Jun 4, 2018
labgrid Avoid "Key already on target" spamming Nov 16, 2018
man man/labgrid-device-config: document python module import Nov 7, 2018
tests tests/test_utils: use the localsshmanager mark to disable the ssh test Nov 11, 2018
.codecov.yaml add codecov yaml configuration file Jun 11, 2018
.coveragerc coveralls: exclude protocols via .coveragerc and use it for travis Feb 28, 2017
.flake8 flake8: add configuration Nov 19, 2017
.gitignore tests: tox: setup coverage Apr 23, 2018
.pylintrc pylintrc: adjust configuration to labgrid needs Jun 4, 2018
.travis.yml tests/test_utils: use the localsshmanager mark to disable the ssh test Nov 11, 2018
CHANGES.rst CHANGES: update with new features Oct 18, 2018
COPYING COPYING,LICENSE: move from .txt May 11, 2017
LICENSE COPYING,LICENSE: move from .txt May 11, 2017
MANIFEST.in setup: use fastentrypoints to reduce the script startup time Feb 27, 2017
README.rst README: switch from coveralls to codecov Jun 11, 2018
crossbar-requirements.txt travis: requirements: move travis requirements to separate file Jun 4, 2018
deb-requirements.txt debian: add packaging based on dh_virtualenv Apr 25, 2018
dev-requirements.txt setup: remove graphviz from install_required Oct 16, 2018
doc-requirements.txt requirements: update and pin dependencies Feb 15, 2018
fastentrypoints.py setup: use fastentrypoints to reduce the script startup time Feb 27, 2017
graph-requirements.txt setup: remove graphviz from install_required Oct 16, 2018
modbus-requirements.txt requirements: split up requirements files Feb 15, 2018
onewire-requirements.txt requirements: split up requirements files Feb 15, 2018
requirements.txt requirements: add pyserial from labgrid-project fork Sep 10, 2018
setup.cfg setup.cfg: enable warning-as-error for sphinx Feb 9, 2018
setup.py setup: remove graphviz from install_required Oct 16, 2018
snmp-requirements.txt requirements: split up requirements files Feb 15, 2018
tox.ini drop python3.4 support Jun 4, 2018
travis-requirements.txt travis: requirements: move travis requirements to separate file Jun 4, 2018
xena-requirements.txt driver/xenadriver: Add driver to interact with Xena network testing e… Sep 25, 2018

README.rst

Welcome to labgrid

LGPLv2.1 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)
  • 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

IRC channel #labgrid on freenode (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>