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 34B6715838C for ; Thu, 18 Jan 2024 03:22:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BEC7E2B51; Thu, 18 Jan 2024 03:22:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id EDA9FE2B51 for ; Thu, 18 Jan 2024 03:22:27 +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 B7378343300 for ; Thu, 18 Jan 2024 03:22:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A6271454 for ; Thu, 18 Jan 2024 03:22:25 +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: <1705547959.226fcb9d41b4be413a80adac41ddcf090f260bae.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/cpio/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/cpio/cpio-2.15.ebuild X-VCS-Directories: app-arch/cpio/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 226fcb9d41b4be413a80adac41ddcf090f260bae X-VCS-Branch: master Date: Thu, 18 Jan 2024 03:22:25 +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: 06a80ca1-50dd-473b-bef3-4af18256e4fe X-Archives-Hash: 04ac17c3e618d0cfdb7549969910f202 commit: 226fcb9d41b4be413a80adac41ddcf090f260bae Author: Sam James gentoo org> AuthorDate: Thu Jan 18 02:57:48 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jan 18 03:19:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=226fcb9d app-arch/cpio: run tests in parallel Inspired by vapier's cd7f047fe43fb631c4ca6979c6efb5038c616f41. `RUNTESTFLAGS` has been in the back of my head for a while now as I've been meaning to figure out the interaction between it and parallel make and which packages actually need it. This only shaves off about ~10s or so consistently for me for cpio though, as its test suite is smaller, but maybe it'll do better on slower machines. Signed-off-by: Sam James gentoo.org> app-arch/cpio/cpio-2.15.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app-arch/cpio/cpio-2.15.ebuild b/app-arch/cpio/cpio-2.15.ebuild index e9733b098ca1..6f98be317e83 100644 --- a/app-arch/cpio/cpio-2.15.ebuild +++ b/app-arch/cpio/cpio-2.15.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit multiprocessing + DESCRIPTION="File archival tool which can also read and write tar files" HOMEPAGE="https://www.gnu.org/software/cpio/cpio.html" SRC_URI="mirror://gnu/cpio/${P}.tar.bz2" @@ -39,6 +41,10 @@ src_configure() { econf "${myeconfargs[@]}" } +src_test() { + emake check TESTSUITEFLAGS="--jobs=$(get_makeopts_jobs)" +} + pkg_postinst() { # Ensure to preserve the symlink before app-alternatives/cpio # is installed