Skip to content

Commit

Permalink
tests: refactor makefile, now allowing parallel testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Dec 15, 2023
1 parent 2f5a591 commit 5c419b0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
TESTS = $(dir $(wildcard */test.sh))
TESTS = $(wildcard */test.sh)

export LAZE ?= cargo --quiet run

.PHONY: test
.PHONY: $(TESTS)

all: test
all: $(TESTS)

test: $(TEST_DEPS)
for testdir in $(TESTS); do \
(cd $${testdir}; echo "- testing in $${testdir}"; ./test.sh; ) || exit 1 ; \
done
$(TESTS):
@testdir=$(dir $@); echo "- testing in $${testdir}"; cd $${testdir}; ./test.sh

0 comments on commit 5c419b0

Please sign in to comment.