Skip to contentSkip to conversation

support/testing: add python-tftpy runtime test

PATCH Applied Colin Foster 2 participants 2 messages Dec 21, 2023 – Dec 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/testing: add python-tftpy runtime test

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

---
 support/testing/tests/package/sample_python_tftpy.py |  1 +
 support/testing/tests/package/test_python_tftpy.py   | 11 +++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 support/testing/tests/package/sample_python_tftpy.py
 create mode 100644 support/testing/tests/package/test_python_tftpy.py
support/testing/tests/package/sample_python_tftpy.py new file +1 -0
new file mode 100644
index 0000000000..ea4d20c9a2
@@ -0,0 +1 @@
+import tftpy
support/testing/tests/package/test_python_tftpy.py new file +11 -0
new file mode 100644
index 0000000000..d64f2c29d7
@@ -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"]
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 10 lines · On Thu, 21 Dec 2023 13:08:00 -0600 Colin Foster…

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

---
 support/testing/tests/package/sample_python_tftpy.py |  1 +
 support/testing/tests/package/test_python_tftpy.py   | 11 +++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 support/testing/tests/package/sample_python_tftpy.py
 create mode 100644 support/testing/tests/package/test_python_tftpy.py

Applied to master after adding the appropriate entries in the DEVELOPERS file. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot