An open hardware test framework.
Project description
LibreHTF
An open hardware test framework.
Install
PyPI
Install and update using pip:
pip install -U librehtf
Repository
When using git, clone the repository and change your present working directory.
git clone http://github.com/mcpcpc/librehtf
cd librehtf/
Create and activate a virtual environment.
python3 -m venv venv
source venv/bin/activate
Install LibreHTF to the virtual environment.
pip install -e .
Commands
db-init
The Sqlite3 database can be initialized or re-initialized with the following command.
flask --app librehtf init-db
Deployment
Before deployment, we strongly encourage you to override the
default SECRET_KEY
variable. This can be done by creating a
conf.py
file and placing it in the same root as the instance (i.e. typically where the SQLite database resides).
SECRET_KEY = “192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf“
There are a number of ways to generate a secret key value. The simplest would be to use the built-in secrets Python library.
$ python -c ‘import secrets; print(secrets.token_hex())’
‘192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf’
Waitress
Production WSGI via waitress.
pip install waitress
waitress-serve --call librehtf:create_app
Test
python3 -m unittest
Run with coverage report.
coverage run -m unittest
coverage report
coverage html # open htmlcov/index.html in a browser
Nomenclature
OpenHTF is architected to allow inherent branching of tests. At the core, there are three tiers of organization: device, test and task.
Device
Devices refer to specific to hardware versions or product configurations. These are typically descriptive in nature and are useful when organizing hardware test interfaces that are intended to be used with multiple product offerings. Each device may have one or multiple test configurations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file librehtf-0.0.1.tar.gz
.
File metadata
- Download URL: librehtf-0.0.1.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f799f661c6e65955dfa77b6b370930c2246cee13aaca87d195533195bd32f81e |
|
MD5 | 077576d975fa512edf35ee8ed6cbb175 |
|
BLAKE2b-256 | a1cac4316d0b6df71d9d62ba18f815b49ff9a25535766b8a7b067f4680ad1ae5 |
File details
Details for the file librehtf-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: librehtf-0.0.1-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe1428e37c24f689910a9f8d92361badb0d237227be51ed263b27e9acf67dac0 |
|
MD5 | a46a254ad365b6d1ed96e5abcebb9ebe |
|
BLAKE2b-256 | d33df8ea05a4f663323cf6df0639fce6a6de78685429d5b0adb420cbafcd510f |