mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
🩺 add a simple HIL test
first working HIL test
This commit is contained in:
parent
aa98b87448
commit
4b0b0fa52b
13
HIL_tests/test_01.py
Normal file
13
HIL_tests/test_01.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
import logging
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from HIL.esp_dut import ESP
|
||||
from HIL.aprs_con import APRSIS
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.error(sys.path)
|
||||
|
||||
|
||||
def test_01(ESP, APRSIS):
|
||||
pass
|
||||
12
Makefile
Normal file
12
Makefile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.PHONY: install test debug
|
||||
|
||||
default: install test
|
||||
|
||||
install:
|
||||
pip3 install -r HIL/requirements.txt
|
||||
|
||||
test:
|
||||
ESP_PORT=/dev/ttyUSB0 ESP_CONFIG_PATH=data ESP_CONFIG_FILE=is-cfg.json PYTHONPATH=. pytest tests -v --log-cli-level=INFO
|
||||
|
||||
debug:
|
||||
ESP_PORT=/dev/ttyUSB0 ESP_CONFIG_PATH=data ESP_CONFIG_FILE=is-cfg.json PYTHONPATH=. pytest tests -v --capture=tee-sys --log-cli-level=DEBUG
|
||||
Loading…
Reference in a new issue