From patchwork Wed Nov 3 07:36:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 1550139 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (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 4Hkdsz5g7sz9sX3 for ; Wed, 3 Nov 2021 18:38:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 845BA80E42; Wed, 3 Nov 2021 07:38:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org 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 2i3lBHJyDdBY; Wed, 3 Nov 2021 07:38:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id DCB8D80E40; Wed, 3 Nov 2021 07:38:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C5D701BF2C6 for ; Wed, 3 Nov 2021 07:37:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B63314043B for ; Wed, 3 Nov 2021 07:37:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 826kkoo36lMM for ; Wed, 3 Nov 2021 07:37:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by smtp4.osuosl.org (Postfix) with ESMTPS id F1BE940438 for ; Wed, 3 Nov 2021 07:37:18 +0000 (UTC) Received: (Authenticated sender: herve.codina@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPA id B17C1240006; Wed, 3 Nov 2021 07:37:16 +0000 (UTC) From: Herve Codina To: buildroot@buildroot.org Date: Wed, 3 Nov 2021 08:36:56 +0100 Message-Id: <20211103073656.1689919-6-herve.codina@bootlin.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211103073656.1689919-1-herve.codina@bootlin.com> References: <20211103073656.1689919-1-herve.codina@bootlin.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 5/5] support/testing/tests/package/test_libshdata: new test 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?q?Herv=C3=A9_Codina?= , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This new test ensures that libraries and binaries generated using Parrot Alchemy build system are correct. Indeed, the test uses libshdata-stress. This binary depends on libshdata. libshdata depends on libfutils and libfutils depends on ulog. All of these binaries and libraries are built using Alchemy. Signed-off-by: Herve Codina --- DEVELOPERS | 1 + .../testing/tests/package/test_libshdata.py | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 support/testing/tests/package/test_libshdata.py diff --git a/DEVELOPERS b/DEVELOPERS index 64a2098343..3a5b24f73d 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1156,6 +1156,7 @@ F: package/libshdata/ F: package/lua-augeas/ F: package/ulog/ F: support/testing/tests/package/test_dtbocfg.py +F: support/testing/tests/package/test_libshdata.py F: support/testing/tests/package/test_lua_augeas.py N: Hervé Codina diff --git a/support/testing/tests/package/test_libshdata.py b/support/testing/tests/package/test_libshdata.py new file mode 100644 index 0000000000..80b032ac69 --- /dev/null +++ b/support/testing/tests/package/test_libshdata.py @@ -0,0 +1,25 @@ +import os + +import infra.basetest + + +class TestLibshdata(infra.basetest.BRTest): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_PACKAGE_LIBSHDATA=y + BR2_PACKAGE_LIBSHDATA_STRESS=y + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set + """ + + def test_run(self): + img = os.path.join(self.builddir, "images", "rootfs.cpio") + self.emulator.boot(arch="armv5", + kernel="builtin", + options=["-initrd", img]) + self.emulator.login() + + # Just run libshdata-stress. + # This ensures that library are well compiled and that all dependencies + # are met using Parrot Alchemy build system. + self.assertRunOk("libshdata-stress")