From 4d025f88e62db50ce28730b6e732b2946fe7d5bc Mon Sep 17 00:00:00 2001 From: Colin Foster Date: Thu, 21 Dec 2023 13:08:00 -0600 Subject: [PATCH] support/testing: add python-tftpy runtime test This runtime test verifies the existence of the tftpy module when selected. Signed-off-by: Colin Foster Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 2 ++ support/testing/tests/package/sample_python_tftpy.py | 1 + support/testing/tests/package/test_python_tftpy.py | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 support/testing/tests/package/sample_python_tftpy.py create mode 100644 support/testing/tests/package/test_python_tftpy.py diff --git a/DEVELOPERS b/DEVELOPERS index 874e7bd3d2..bad07d51aa 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -678,6 +678,8 @@ F: configs/beelink_gs1_defconfig N: Colin Foster 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 F: package/libloki/ diff --git a/support/testing/tests/package/sample_python_tftpy.py b/support/testing/tests/package/sample_python_tftpy.py new file mode 100644 index 0000000000..ea4d20c9a2 --- /dev/null +++ b/support/testing/tests/package/sample_python_tftpy.py @@ -0,0 +1 @@ +import tftpy diff --git a/support/testing/tests/package/test_python_tftpy.py b/support/testing/tests/package/test_python_tftpy.py new file mode 100644 index 0000000000..d64f2c29d7 --- /dev/null +++ b/support/testing/tests/package/test_python_tftpy.py @@ -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"]