unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39451] [PATCH] gnu: subversion: Support running the tests in parallel.
@ 2020-02-06  8:42 Christopher Baines
  2020-02-07 22:57 ` Leo Famulari
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Baines @ 2020-02-06  8:42 UTC (permalink / raw)
  To: 39451

This drops the time to build the package on my machine from ~14 minutes to ~5
minutes.

* gnu/packages/version-control.scm (subversion)[arguments]: Add set-PARALLEL
phase to set the PARALLEL environment variable.
---
 gnu/packages/version-control.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 20db6b4b08..140eccb7ec 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1434,6 +1434,10 @@ following features:
              (substitute* "subversion/tests/libsvn_repos/repos-test.c"
                (("#!/bin/sh") (string-append "#!" (which "sh"))))
              #t))
+         (add-before 'check 'set-PARALLEL
+           (lambda _
+             (setenv "PARALLEL" (number->string (parallel-job-count)))
+             #t))
          (add-after 'install 'install-perl-bindings
            (lambda* (#:key outputs #:allow-other-keys)
              ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
-- 
2.25.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#39451] [PATCH] gnu: subversion: Support running the tests in parallel.
  2020-02-06  8:42 [bug#39451] [PATCH] gnu: subversion: Support running the tests in parallel Christopher Baines
@ 2020-02-07 22:57 ` Leo Famulari
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2020-02-07 22:57 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 39451

On Thu, Feb 06, 2020 at 08:42:07AM +0000, Christopher Baines wrote:
> This drops the time to build the package on my machine from ~14 minutes to ~5
> minutes.

Awesome. If it seems reliable for you (doesn't crash due to race
conditions) then please push.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-07 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-06  8:42 [bug#39451] [PATCH] gnu: subversion: Support running the tests in parallel Christopher Baines
2020-02-07 22:57 ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).