aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-10-30 14:09:24 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-11-06 00:46:26 +0100
commitcce14deaeff730c3f00cf627effa51b658fb2294 (patch)
tree547f76b285fa7e43c4ce8c7f05eaae10a6f1ce73
parentAdd tests for module introspection. (diff)
downloadcalp-cce14deaeff730c3f00cf627effa51b658fb2294.tar.gz
calp-cce14deaeff730c3f00cf627effa51b658fb2294.tar.xz
Add Makefile variable for setting number of test threads.
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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 \