Message ID | 20231221190800.2669237-1-colin.foster@in-advantage.com |
---|---|
State | Accepted |
Headers | show |
Series | support/testing: add python-tftpy runtime test | expand |
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
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"]
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