support/testing: add python-tftpy runtime test

This runtime test verifies the existence of the tftpy module when
selected.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Colin Foster 2023-12-21 13:08:00 -06:00 committed by Thomas Petazzoni
parent cec73bb5f8
commit 4d025f88e6
3 changed files with 14 additions and 0 deletions

View File

@ -678,6 +678,8 @@ F: configs/beelink_gs1_defconfig
N: Colin Foster <colin.foster@in-advantage.com>
F: package/python-tftpy/
F: package/rauc-hawkbit-updater/
F: support/testing/tests/package/sample_python_tftpy.py
F: support/testing/tests/package/test_python_tftpy.py
N: Corentin Guillevic <corentin.guillevic@smile.fr>
F: package/libloki/

View File

@ -0,0 +1 @@
import tftpy

View File

@ -0,0 +1,11 @@
from tests.package.test_python import TestPythonPackageBase
class TestPythonTftpy(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_TFTPY=y
"""
sample_scripts = ["tests/package/sample_python_tftpy.py"]