diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-23 10:12:25 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-23 10:12:25 -0400 |
commit | 4c7a49a83e082a7bfff85a9305882f0912655123 (patch) | |
tree | 140355e5e30ec2d0414c977441a55a2f5b7100fa /GNUmakefile | |
parent | a2af2746c4686201e2e0796fbdfa115d08727b86 (diff) | |
download | bfs-4c7a49a83e082a7bfff85a9305882f0912655123.tar.xz |
tests: Run test cases in parallel
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 7 |
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" |