commit: 226fcb9d41b4be413a80adac41ddcf090f260bae Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Jan 18 02:57:48 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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
