From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 573A415806E for ; Wed, 31 May 2023 03:26:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 522D2E0391; Wed, 31 May 2023 03:26:24 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3DA93E0536 for ; Wed, 31 May 2023 03:26:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 52934340CD9 for ; Wed, 31 May 2023 03:26:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85F8FA80 for ; Wed, 31 May 2023 03:26:21 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1685503466.ad71749807549d721f6675fedd025978dc8d9201.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/mtd-utils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/mtd-utils/mtd-utils-2.1.5.ebuild X-VCS-Directories: sys-fs/mtd-utils/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ad71749807549d721f6675fedd025978dc8d9201 X-VCS-Branch: master Date: Wed, 31 May 2023 03:26:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 399b4409-86ab-4d9f-a070-4c5708c9f974 X-Archives-Hash: 717c6e17f87b98b96700d0b50b4be4d1 commit: ad71749807549d721f6675fedd025978dc8d9201 Author: Sam James gentoo org> AuthorDate: Wed May 31 03:24:26 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed May 31 03:24:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad717498 sys-fs/mtd-utils: wire up tests Signed-off-by: Sam James gentoo.org> sys-fs/mtd-utils/mtd-utils-2.1.5.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys-fs/mtd-utils/mtd-utils-2.1.5.ebuild b/sys-fs/mtd-utils/mtd-utils-2.1.5.ebuild index b0f0145367f0..871721ed7e9b 100644 --- a/sys-fs/mtd-utils/mtd-utils-2.1.5.ebuild +++ b/sys-fs/mtd-utils/mtd-utils-2.1.5.ebuild @@ -10,7 +10,8 @@ SRC_URI="https://infraroot.at/pub/mtd/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux" -IUSE="+lzo xattr +zstd" +IUSE="+lzo test xattr +zstd" +RESTRICT="!test? ( test )" DEPEND=" sys-apps/util-linux:= @@ -20,6 +21,7 @@ DEPEND=" zstd? ( app-arch/zstd:= ) " RDEPEND="${DEPEND}" +BDEPEND="test? ( dev-util/cmocka )" DOCS=( jffsX-utils/device_table.txt ubifs-utils/mkfs.ubifs/README ) @@ -33,7 +35,10 @@ src_prepare() { } src_configure() { + # --enable-tests is for test programs that are installed econf \ + --enable-tests \ + $(use_enable test unit-tests) \ $(use_with lzo) \ $(use_with xattr) \ $(use_with zstd)