From cce14deaeff730c3f00cf627effa51b658fb2294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 30 Oct 2023 14:09:24 +0100 Subject: Add Makefile variable for setting number of test threads. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 169fc574..16551e59 100644 --- a/Makefile +++ b/Makefile @@ -102,9 +102,11 @@ install: all calp-release unit-test-deps: calp $(GO_UNIT_TESTS) $(GO_FILES) $(TEST_FILES) +THREADS = $(shell ./cpucount) + # TODO (current-processor-count) $(COV_FILE): cpucount unit-test-deps - ./testrunner.scm --threads $(shell ./cpucount) --coverage $@ --coverage-supplement tests/unit/coverage-supplement.scm + ./testrunner.scm --threads $(THREADS) --coverage $@ --coverage-supplement tests/unit/coverage-supplement.scm GENHTML_FLAGS=--show-details \ --hierarchical \ -- cgit v1.2.3