From patchwork Sun Oct 24 18:12:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= X-Patchwork-Id: 1545433 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mind.be header.i=@mind.be header.a=rsa-sha256 header.s=google header.b=aBH0wgBS; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HcmSG40dBz9s0r for ; Mon, 25 Oct 2021 05:14:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C25646081E; Sun, 24 Oct 2021 18:14:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xumvtvkmzjrY; Sun, 24 Oct 2021 18:14:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 0A9BF6081C; Sun, 24 Oct 2021 18:14:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8012C1BF420 for ; Sun, 24 Oct 2021 18:13:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7D1EE80EE3 for ; Sun, 24 Oct 2021 18:13:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=mind.be Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RRQJxWFf9bC1 for ; Sun, 24 Oct 2021 18:13:47 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by smtp1.osuosl.org (Postfix) with ESMTPS id 68ED880DC8 for ; Sun, 24 Oct 2021 18:13:47 +0000 (UTC) Received: by mail-ed1-x535.google.com with SMTP id 5so16496483edw.7 for ; Sun, 24 Oct 2021 11:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+Ggci7OZsfdjesCx9O88Kb8GxjYoOCCnj6HU+X8itw8=; b=aBH0wgBSoC64iwy+UffwO/oslE0Lwbdow5dz1PUxyiVU54TO5jqYl16A5ln0QnMC/U ps4Sl/DXObknt0lajX0pOWszWHfqARhv80+a/6LQW+PIW8mitO5PQkQ5/zwPcJ7GkYyD 2irdexq9OdWMPUv/5qcBXDiqUTH9gZ5e03YbTz2cR1WEd8N81cSWs9Sf5yUnzGwsoF8u LlaM8+MT5pvp5e6xVV7FPC1hHcfxTh3m29NSd8esEjKvUYNPofIuZwjfnnbxLWgVYHpr 40Xfh7hYFb2rBFXzPDcmTtdUWO2c2PDntpCe0PHEnh4swzICamavRbY9CXI5NvXvFgqK vMJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+Ggci7OZsfdjesCx9O88Kb8GxjYoOCCnj6HU+X8itw8=; b=kz4aMIUheM0ATPSFCYaogAoWlGsB4gzgFTUlsaTiJyS//TW5vmnEoREI/IxX4H3mEQ Ej8msWT0KrRHVAZYijhy7QsyNLdNL8Ir5wx2YksAPyJfTynYjS3bWS+xsvy0GIVstaci tcN8t2L475pQbu9l3+KJjoLY55qCTE+oZPeQXbWoF50qaVHr9nDdzGKqGp1BCieQUAgW aykF6VE3YHyjB+I90xrmLLGv31a2BKAoWW+yJycRAiEC5yfEwK/LyqjMpyvcUayC9E3h k307w3BMbaOooV0PamnI1fdRYrZKwdGxbiHhHVjd+ki1Bmu/7Bd9RGqf2K4jN0k7XABr VpZg== X-Gm-Message-State: AOAM532UIDnPxdO5oaKLtrHWvFmPo2+gkwGY1LfY12NCxFWG5IKp709G OyjAll4G1YxEI6doiG4yE2VnX+1QFEGQkexj X-Google-Smtp-Source: ABdhPJx/GFsBS9P3JzFitM9WDO4tShG6bGS91LrFwbPrk7EBeQPUUboTUOavS9cy5pmuGMztA+LuSw== X-Received: by 2002:aa7:d2d7:: with SMTP id k23mr3571036edr.50.1635099225503; Sun, 24 Oct 2021 11:13:45 -0700 (PDT) Received: from localhost.localdomain (5.26-130-109.adsl-dyn.isp.belgacom.be. [109.130.26.5]) by smtp.gmail.com with ESMTPSA id v15sm7555367edi.89.2021.10.24.11.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Oct 2021 11:13:45 -0700 (PDT) From: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= To: buildroot@buildroot.org Date: Sun, 24 Oct 2021 20:12:19 +0200 Message-Id: <20211024181221.2608908-4-raphael.melotte@mind.be> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211024181221.2608908-1-raphael.melotte@mind.be> References: <20211024181221.2608908-1-raphael.melotte@mind.be> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 4/5] support/testing: add new test for python-boto3 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= , Ricardo Martincoski Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Add a rudimentary test inspired from the "Using boto3" section in the package README ([1]). Note that it doesn't try to do anything with the instanciated resource, as this would require a network connection when the test runs. [1]: https://github.com/boto/boto3 Signed-off-by: Raphaël Mélotte --- support/testing/tests/package/sample_python_boto3.py | 2 ++ support/testing/tests/package/test_python_boto3.py | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 support/testing/tests/package/sample_python_boto3.py create mode 100644 support/testing/tests/package/test_python_boto3.py diff --git a/support/testing/tests/package/sample_python_boto3.py b/support/testing/tests/package/sample_python_boto3.py new file mode 100644 index 0000000000..e69efc7860 --- /dev/null +++ b/support/testing/tests/package/sample_python_boto3.py @@ -0,0 +1,2 @@ +import boto3 +s3 = boto3.resource('s3') diff --git a/support/testing/tests/package/test_python_boto3.py b/support/testing/tests/package/test_python_boto3.py new file mode 100644 index 0000000000..756495fec9 --- /dev/null +++ b/support/testing/tests/package/test_python_boto3.py @@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3Boto3(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_BOTO3=y + """ + sample_scripts = ["tests/package/sample_python_boto3.py"] + timeout = 10