From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 0A5AD1F609 for ; Wed, 29 May 2019 08:45:28 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] Makefile.PL: allow `N' variable to be set in local config.mak Date: Wed, 29 May 2019 08:45:25 +0000 Message-Id: <20190529084526.4302-2-e@80x24.org> In-Reply-To: <20190529084526.4302-1-e@80x24.org> References: <20190529084526.4302-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This can useful for limiting test resource use without relying on remembering the variable command-line. --- Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index de0c49f..f79697b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -53,9 +53,9 @@ sub MY::postamble { # support using eatmydata to speed up tests (apt-get install eatmydata): # https://www.flamingspork.com/projects/libeatmydata/ EATMYDATA = +N = \$\$(( \$\$(nproc 2>/dev/null || gnproc 2>/dev/null || echo 2) + 1 )) -include config.mak -include Documentation/include.mk -N = \$\$(( \$\$(nproc 2>/dev/null || gnproc 2>/dev/null || echo 2) + 1 )) SCRIPTS := scripts/ssoma-replay my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES) \$(SCRIPTS)) -- EW