commit: 54485713cf0ce8a8af217688b7ac5ef9099e3b88 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Jan 18 03:07:19 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jan 18 03:19:20 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54485713
sys-devel/bison: 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 saves about 30s for me on a fast machine. Signed-off-by: Sam James <sam <AT> gentoo.org> sys-devel/bison/bison-3.8.2-r2.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys-devel/bison/bison-3.8.2-r2.ebuild b/sys-devel/bison/bison-3.8.2-r2.ebuild index fd8742c3ad61..b778f945857a 100644 --- a/sys-devel/bison/bison-3.8.2-r2.ebuild +++ b/sys-devel/bison/bison-3.8.2-r2.ebuild @@ -4,7 +4,7 @@ EAPI=8 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bison.asc -inherit flag-o-matic verify-sig +inherit flag-o-matic multiprocessing verify-sig DESCRIPTION="A general-purpose (yacc-compatible) parser generator" HOMEPAGE="https://www.gnu.org/software/bison/" @@ -68,6 +68,10 @@ src_configure() { econf "${myeconfargs[@]}" } +src_test() { + emake check TESTSUITEFLAGS="--jobs=$(get_makeopts_jobs)" +} + src_install() { default