mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
move pytest to HIL
This commit is contained in:
parent
e8f6f63b67
commit
488eecf0aa
4
.github/workflows/dut_testing.yml
vendored
4
.github/workflows/dut_testing.yml
vendored
|
|
@ -10,6 +10,6 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install python reqirements
|
- name: Install python reqirements
|
||||||
run: cd testlib && make install
|
run: cd HIL && make install
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: cd testlib && make test
|
run: cd HIL && make test
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -7,3 +7,4 @@ report.xml
|
||||||
output
|
output
|
||||||
__pycache__
|
__pycache__
|
||||||
.pytest_cache
|
.pytest_cache
|
||||||
|
spiffs.bin
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,14 @@ class AprsIs:
|
||||||
yield line
|
yield line
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def wait_for(self, towait):
|
||||||
|
for i in range(2, 10):
|
||||||
|
line = self.get_line()
|
||||||
|
for l in line:
|
||||||
|
if l == towait:
|
||||||
|
return
|
||||||
|
raise
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def APRSIS():
|
def APRSIS():
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
import serial
|
import serial
|
||||||
from testlib.common import runProcess
|
from HIL.common import runProcess
|
||||||
|
|
||||||
|
|
||||||
class EspFlash:
|
class EspFlash:
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
from testlib.esp_dut import ESP
|
from HIL.esp_dut import ESP
|
||||||
from testlib.aprs_con import APRSIS, AprsIs
|
from HIL.aprs_con import APRSIS, AprsIs
|
||||||
|
|
||||||
|
|
||||||
def test_basic_port(ESP):
|
def test_basic_port(ESP):
|
||||||
Loading…
Reference in a new issue