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>
@@ -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/
@@ -0,0 +1 @@
+import tftpy
@@ -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"]