| 1 |
Design Decisions |
| 2 |
================ |
| 3 |
|
| 4 |
This document outlines the design decisions influencing the development of |
| 5 |
labgrid. |
| 6 |
|
| 7 |
Out of Scope |
| 8 |
------------ |
| 9 |
|
| 10 |
Out of scope for labgrid are: |
| 11 |
|
| 12 |
Integrated Build System |
| 13 |
~~~~~~~~~~~~~~~~~~~~~~~ |
| 14 |
|
| 15 |
In contrast to some other tools, labgrid explicitly has no support for building |
| 16 |
target binaries or images. |
| 17 |
|
| 18 |
Our reasons for this are: |
| 19 |
|
| 20 |
- Several full-featured build systems already exist and work well. |
| 21 |
- We want to test unmodified images produced by any build system (OE/Yocto, |
| 22 |
PTXdist, Buildroot, Debian, …). |
| 23 |
|
| 24 |
Test Infrastructure |
| 25 |
~~~~~~~~~~~~~~~~~~~ |
| 26 |
|
| 27 |
labgrid does not include a test framework. |
| 28 |
|
| 29 |
The main reason is that with `pytest <https://docs.pytest.org/>`_ we already |
| 30 |
have a test framework which: |
| 31 |
|
| 32 |
- makes it easy to write tests |
| 33 |
- reduces boilerplate code with flexible fixtures |
| 34 |
- is easy to extend and has many available plugins |
| 35 |
- allows using any Python library for creating inputs or processing outputs |
| 36 |
- supports test report generation |
| 37 |
|
| 38 |
Furthermore, the hardware control functionality needed for testing is also very |
| 39 |
useful during development, provisioning and other areas, so we don't want to |
| 40 |
hide that behind another test framework. |
| 41 |
|
| 42 |
In Scope |
| 43 |
-------- |
| 44 |
|
| 45 |
- usable as a library for hardware provisioning |
| 46 |
- device control via: |
| 47 |
|
| 48 |
- serial console |
| 49 |
- SSH |
| 50 |
- file management |
| 51 |
- power and reset |
| 52 |
|
| 53 |
- emulation of external services: |
| 54 |
|
| 55 |
- USB stick emulation |
| 56 |
- external update services (Hawkbit) |
| 57 |
|
| 58 |
- bootstrap services: |
| 59 |
|
| 60 |
- fastboot |
| 61 |
- imxusbloader |
| 62 |
|
| 63 |
Further Goals |
| 64 |
------------- |
| 65 |
|
| 66 |
- tests should be equivalent for workstations and servers |
| 67 |
- discoverability of available boards |
| 68 |
- distributed board access |