summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 45797e2..62f24fb 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -287,8 +287,13 @@ check: $(CHECKS)
$(UNIT_CHECKS): check-%: $(BIN)/tests/%
$<
+JOBS := $(filter -j%,$(MAKEFLAGS))
+ifndef JOBS
+ JOBS := -j1
+endif
+
$(STRATEGY_CHECKS): check-%: $(BIN)/bfs $(TEST_UTILS)
- ./tests/tests.sh --bfs="$(BIN)/bfs -S $*" $(TEST_FLAGS)
+ ./tests/tests.sh $(JOBS) --bfs="$(BIN)/bfs -S $*" $(TEST_FLAGS)
# Custom test flags for distcheck
DISTCHECK_FLAGS := -s TEST_FLAGS="--sudo --verbose=skipped"