From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AD931F3D5FF for ; Sun, 29 Mar 2026 11:06:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5855960770; Sun, 29 Mar 2026 11:06:39 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id uDdnCF1E_yHt; Sun, 29 Mar 2026 11:06:38 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 77513608F0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org; s=default; t=1774782398; bh=0VQRhXoI/TR29UeMbGOp0M861pBddL8dUn8PMt5loBY=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=BkLL0t5EDLRQSNl7eh6fD5PLZjo/ggWmVEYiraVzFF4NepuHtZ8opXeLGqY3AT0Dm G2opoWDmniGPzLpnpiRO/Th3PWhM+A3VLEN55P4JKOnCdgltmHZuL98OTozgSCjlCv Huh7FSOe0YNkcEtTs9ESZE2XgXA1DBqatDqmgIpFGig2F+JbbWIuMgvqAyw6VLiaqZ b3EUPbyfeDoI3hm5OR0w+hNvonOEcVsO3vJBOIPkFVY5xEoziVFZmqjWLCwAhXjOO9 mEeDOqq4/4Bw6jy3ysne5p6biJR2zjWiH6D9HyR38SvsoFJMOmuODJhdu1FpQXU9DM 8oMniFWXkGlSQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 77513608F0; Sun, 29 Mar 2026 11:06:38 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id 4E9DF10F for ; Sun, 29 Mar 2026 11:06:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3B2E4810BD for ; Sun, 29 Mar 2026 11:06:37 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id WsdQNAZrkYFy for ; Sun, 29 Mar 2026 11:06:36 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.167.122; helo=busybox.osuosl.org; envelope-from=buildroot-git-push@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 522DD810B7 Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp1.osuosl.org (Postfix) with ESMTP id 522DD810B7 for ; Sun, 29 Mar 2026 11:06:36 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 4053) id A2ABC7FDBA; Sun, 29 Mar 2026 11:06:35 +0000 (UTC) To: buildroot@buildroot.org Date: Sun, 29 Mar 2026 12:30:35 +0200 X-Git-Refname: refs/heads/master X-Git-Oldrev: fb53371286f912fc3e4dfe9a61b6e5fcb2935c90 X-Git-Newrev: d25f18a3c3bc984df529cf2b264be2fe30b51257 X-Patchwork-Hint: ignore Message-Id: <20260329110635.A2ABC7FDBA@busybox.osuosl.org> Subject: [Buildroot] [git commit] support/testing: add python-cloudpickle tests X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Julien Olivain via buildroot Reply-To: Julien Olivain MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" 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 [Julien: fix flake8 warnings to fix check-package errors] Signed-off-by: Julien Olivain --- 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 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 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