All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] support/testing: add new test for python-s3transfer
@ 2022-07-22 20:52 Thomas Petazzoni via buildroot
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni via buildroot @ 2022-07-22 20:52 UTC (permalink / raw)
  To: buildroot

[-- Attachment #1: Type: text/plain, Size: 1517 bytes --]

commit: https://git.buildroot.net/buildroot/commit/?id=c15734e3d25c7b7ee97a7a48d45457b926daf159
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 support/testing/tests/package/sample_python_s3transfer.py |  1 +
 support/testing/tests/package/test_python_s3transfer.py   | 12 ++++++++++++
 2 files changed, 13 insertions(+)

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

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-22 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22 20:52 [Buildroot] [git commit] support/testing: add new test for python-s3transfer 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.