Forráskód Böngészése

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>
Colin Foster 1 éve
szülő
commit
4d025f88e6

+ 2 - 0
DEVELOPERS

@@ -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/

+ 1 - 0
support/testing/tests/package/sample_python_tftpy.py

@@ -0,0 +1 @@
+import tftpy

+ 11 - 0
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"]