From: Julien Olivain via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Subject: [Buildroot] [git commit] support/testing: add python-cloudpickle tests
Date: Sun, 29 Mar 2026 12:30:35 +0200 [thread overview]
Message-ID: <20260329110635.A2ABC7FDBA@busybox.osuosl.org> (raw)
commit: https://gitlab.com/buildroot.org/buildroot/-/commit/d25f18a3c3bc984df529cf2b264be2fe30b51257
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master
Add a basic runtime test for the python-cloudpickle package.
This test verifies the fundamental serialization capabilities of the
library by:
- Importing `cloudpickle`.
- Defining a simple Python function (fibonacci).
- Using `cloudpickle.dumps()` to serialize this function.
Signed-off-by: Xukai Wang <kingxukai@zohomail.com>
[Julien: fix flake8 warnings to fix check-package errors]
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
DEVELOPERS | 2 ++
support/testing/tests/package/sample_python_cloudpickle.py | 8 ++++++++
support/testing/tests/package/test_python_cloudpickle.py | 12 ++++++++++++
3 files changed, 22 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index b2d3305db6..767de9b964 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3483,6 +3483,8 @@ N: Xukai Wang <kingxukai@zohomail.com>
F: package/python-cloudpickle/
F: package/python-farama-notifications/
F: package/python-gymnasium/
+F: support/testing/tests/package/sample_python_cloudpickle.py
+F: support/testing/tests/package/test_python_cloudpickle.py
N: Yair Ben Avraham <yairba@protonmail.com>
F: package/casync/
diff --git a/support/testing/tests/package/sample_python_cloudpickle.py b/support/testing/tests/package/sample_python_cloudpickle.py
new file mode 100644
index 0000000000..c17a73a415
--- /dev/null
+++ b/support/testing/tests/package/sample_python_cloudpickle.py
@@ -0,0 +1,8 @@
+import cloudpickle
+
+
+def fibonacci(n):
+ return n if n < 2 else fibonacci(n-1) + fibonacci(n-2)
+
+
+serialized = cloudpickle.dumps(fibonacci)
diff --git a/support/testing/tests/package/test_python_cloudpickle.py b/support/testing/tests/package/test_python_cloudpickle.py
new file mode 100644
index 0000000000..b28080f02e
--- /dev/null
+++ b/support/testing/tests/package/test_python_cloudpickle.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3Cloudpickle(TestPythonPackageBase):
+ __test__ = True
+ config = TestPythonPackageBase.config + \
+ """
+ BR2_PACKAGE_PYTHON3=y
+ BR2_PACKAGE_PYTHON_CLOUDPICKLE=y
+ """
+ sample_scripts = ["tests/package/sample_python_cloudpickle.py"]
+ timeout = 20
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
reply other threads:[~2026-03-29 11:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260329110635.A2ABC7FDBA@busybox.osuosl.org \
--to=buildroot@buildroot.org \
--cc=ju.o@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox