summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-06 00:35:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-06 00:35:45 +0900
commite38a2ecffd51a2fe09548b322cb19293c6d024ef (patch)
treeecde59d1f0a6236b9ebf5c6b6bc300a02739e930 /defs
parentcf1adf985ab78507250db0e217a0fdd779e2c6e6 (diff)
downloadruby-e38a2ecffd51a2fe09548b322cb19293c6d024ef.tar.gz
Run tests in more parallel
Diffstat (limited to 'defs')
-rw-r--r--defs/gmake.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk
index a4347ff318..7de43ced1c 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -4,6 +4,7 @@ reconfig config.status: export MAKE:=$(MAKE)
override gnumake_recursive := $(if $(findstring n,$(firstword $(MFLAGS))),,+)
override mflags := $(filter-out -j%,$(MFLAGS))
MSPECOPT += $(if $(filter -j%,$(MFLAGS)),-j)
+nproc = $(subst -j,,$(filter -j%,$(MFLAGS)))
CHECK_TARGETS := great exam love check test check% test% btest%
# expand test targets, and those dependents
@@ -90,6 +91,8 @@ sudo-precheck: test yes-test-testframework no-test-testframework
install-prereq: sudo-precheck
yes-test-all no-test-all: install
endif
+yes-test-bundler-parallel: PARALLELRSPECOPTS += $(if $(nproc),-n$(shell expr $(nproc) + $(nproc) / 2))
+
# Cross reference needs to parse all files at once
love install reinstall: RDOCFLAGS = --force-update