From 4b0b0fa52bacfa16b8f9f10a93a051236777ae31 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 7 Nov 2021 22:42:21 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=BA=20add=20a=20simple=20HIL=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit first working HIL test --- HIL_tests/test_01.py | 13 +++++++++++++ Makefile | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 HIL_tests/test_01.py create mode 100644 Makefile diff --git a/HIL_tests/test_01.py b/HIL_tests/test_01.py new file mode 100644 index 0000000..f107756 --- /dev/null +++ b/HIL_tests/test_01.py @@ -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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..86b7e53 --- /dev/null +++ b/Makefile @@ -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