commit:     949746114bb01aaf1b7d00e76732712383a338eb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 18 02:46:43 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=94974611

app-arch/tar: 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,
so figured I'd start with something I was pretty sure used autotest...

Before:
```
real    4m53.950s
user    0m0.743s
sys     0m0.263s
```

After:
```
real    2m3.075s
user    0m0.750s
sys     0m0.265s
```

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/tar/tar-1.35.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-arch/tar/tar-1.35.ebuild b/app-arch/tar/tar-1.35.ebuild
index 8b1f21fcec5d..46d2ebf890bb 100644
--- a/app-arch/tar/tar-1.35.ebuild
+++ b/app-arch/tar/tar-1.35.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/tar.asc
-inherit verify-sig
+inherit multiprocessing verify-sig
 
 DESCRIPTION="Use this to make tarballs :)"
 HOMEPAGE="https://www.gnu.org/software/tar/";
@@ -70,7 +70,7 @@ src_test() {
        # Drop after 1.35: 
https://git.savannah.gnu.org/cgit/tar.git/commit/?id=18f90676e4695ffcf13413e9fbb24cc0ae2ae9d5
        local -x XZ_OPT= XZ_DEFAULTS=
 
-       default
+       emake check TESTSUITEFLAGS="--jobs=$(get_makeopts_jobs)"
 }
 
 src_install() {

Reply via email to