From 59796dfd63f25f91238e4c1cb68a0b41cad5b848 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 6 Feb 2020 08:36:12 +0000 Subject: gnu: subversion: Support running the tests in parallel. 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 2ca64e4cdc..69358695ce 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1448,6 +1448,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'. -- cgit 1.4.1