WLAN-Pi / wlanpi-hwtest

hwtest drives a suite of tests to determine diagnostic health for WLAN Pi Pro hardware.
Other
1 stars 0 forks source link
python testing wlanpi

packagecloud-badge

wlanpi-hwtest

hwtest is a tool for the WLAN Pi project used to update VLI USB controller EEPROMs and run pytest to drive pass/fail testing.

Example CLI usage

Optional arguments may be passed in to override default behaviors set in /etc/wlanpi-hwtest/config.ini.

usage: hwtest [-h] [--debug] [-e] [--oled] [--firmware] [--waveshare] [--buttonsmash] [--verbose] [--version]

hwtest is a VLI USB Controller EEPROM updater and hardware testing tool for the WLAN Pi Pro.

optional arguments:
  -h, --help     show this help message and exit
  --debug        enable debug logging output
  -e, --emulate  enable keyboard emulation
  --oled         enable OLED and interactive (I/A) tests
  --firmware     enable VL805 firmware check
  --waveshare    enable waveshare LCD
  --buttonsmash  enable buttonsmash mode and print button presses to CLI
  --verbose      enable verbose printing of results to oled
  --version, -V  show program's version number and exit

Buttonsmash mode

sudo apt update
sudo apt install wlanpi-hwtest
sudo systemctl disable wlanpi-hwtest
sudo systemctl stop wlanpi-fpms
sudo hwtest --buttons --oled

Example:

image

Logs

Pytest reports for each testing session are saved to /var/log/wlanpi-hwtest/:

Example:

$ ls /var/log/wlanpi-hwtest | grep dc
dca632.fea1a2_report_automated_2021-12-30T175453.html
dca632.fea1a2_report_interactive_2021-12-30T175453.html

Contributors

See AUTHORS.

Code of Conduct

See CoC.

OSS

Thank you to all the creators and maintainers of the following open source software used by hwtest: