* [Buildroot] [PATCH] support/testing: add python-tftpy runtime test
@ 2023-12-21 19:08 Colin Foster
2023-12-23 14:13 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Colin Foster @ 2023-12-21 19:08 UTC (permalink / raw)
To: buildroot
This runtime test verifies the existence of the tftpy module when
selected.
Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
---
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
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"]
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] support/testing: add python-tftpy runtime test
2023-12-21 19:08 [Buildroot] [PATCH] support/testing: add python-tftpy runtime test Colin Foster
@ 2023-12-23 14:13 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-12-23 14:13 UTC (permalink / raw)
To: Colin Foster; +Cc: buildroot
On Thu, 21 Dec 2023 13:08:00 -0600
Colin Foster <colin.foster@in-advantage.com> wrote:
> This runtime test verifies the existence of the tftpy module when
> selected.
>
> Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
> ---
> 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
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-23 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-21 19:08 [Buildroot] [PATCH] support/testing: add python-tftpy runtime test Colin Foster
2023-12-23 14:13 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.