[Buildroot] [PATCH 1/2] support/testing: add new test for python-s3transfer
Raphaël Mélotte
raphael.melotte at mind.be
Tue Jun 14 19:03:23 UTC 2022
Many actual tests require network usage, so just import the module to
check that at least that part works.
Signed-off-by: Raphaël Mélotte <raphael.melotte at mind.be>
---
.../tests/package/sample_python_s3transfer.py | 1 +
.../testing/tests/package/test_python_s3transfer.py | 12 ++++++++++++
2 files changed, 13 insertions(+)
create mode 100644 support/testing/tests/package/sample_python_s3transfer.py
create mode 100644 support/testing/tests/package/test_python_s3transfer.py
diff --git a/support/testing/tests/package/sample_python_s3transfer.py b/support/testing/tests/package/sample_python_s3transfer.py
new file mode 100644
index 0000000000..ff53077c9e
--- /dev/null
+++ b/support/testing/tests/package/sample_python_s3transfer.py
@@ -0,0 +1 @@
+import s3transfer
diff --git a/support/testing/tests/package/test_python_s3transfer.py b/support/testing/tests/package/test_python_s3transfer.py
new file mode 100644
index 0000000000..dc669444ce
--- /dev/null
+++ b/support/testing/tests/package/test_python_s3transfer.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3S3transfer(TestPythonPackageBase):
+ __test__ = True
+ config = TestPythonPackageBase.config + \
+ """
+ BR2_PACKAGE_PYTHON3=y
+ BR2_PACKAGE_PYTHON_S3TRANSFER=y
+ """
+ sample_scripts = ["tests/package/sample_python_s3transfer.py"]
+ timeout = 10
--
2.35.1
More information about the buildroot
mailing list