From patchwork Thu Feb 6 08:42:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 20146 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 63A97168DA; Thu, 6 Feb 2020 08:43:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 3E936166FB for ; Thu, 6 Feb 2020 08:43:12 +0000 (GMT) Received: from localhost ([::1]:34018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izckh-0005bg-Jl for patchwork@mira.cbaines.net; Thu, 06 Feb 2020 03:43:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40828) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izckZ-0005ZZ-4G for guix-patches@gnu.org; Thu, 06 Feb 2020 03:43:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izckY-0005EJ-6c for guix-patches@gnu.org; Thu, 06 Feb 2020 03:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izckY-0005DO-11 for guix-patches@gnu.org; Thu, 06 Feb 2020 03:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1izckX-0007tP-Ug for guix-patches@gnu.org; Thu, 06 Feb 2020 03:43:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39451] [PATCH] gnu: subversion: Support running the tests in parallel. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Feb 2020 08:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39451 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39451@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158097853430282 (code B ref -1); Thu, 06 Feb 2020 08:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2020 08:42:14 +0000 Received: from localhost ([127.0.0.1]:47050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izcjm-0007sM-Hy for submit@debbugs.gnu.org; Thu, 06 Feb 2020 03:42:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:40827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izcjl-0007sF-I3 for submit@debbugs.gnu.org; Thu, 06 Feb 2020 03:42:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39937) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izcjk-0005TU-Fh for guix-patches@gnu.org; Thu, 06 Feb 2020 03:42:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izcjj-0001Rb-B5 for guix-patches@gnu.org; Thu, 06 Feb 2020 03:42:12 -0500 Received: from mira.cbaines.net ([212.71.252.8]:44286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1izcjj-0001Lm-5N for guix-patches@gnu.org; Thu, 06 Feb 2020 03:42:11 -0500 Received: from localhost (unknown [46.237.162.119]) by mira.cbaines.net (Postfix) with ESMTPSA id 19CB41635E for ; Thu, 6 Feb 2020 08:42:10 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 4abdd582 for ; Thu, 6 Feb 2020 08:42:07 +0000 (UTC) From: Christopher Baines Date: Thu, 6 Feb 2020 08:42:07 +0000 Message-Id: <20200206084207.15195-1-mail@cbaines.net> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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'.