Skip to content

Commit 6d272d7

Browse files
committed
Makefile: Don't run tests in .package dirs
1 parent 5db8272 commit 6d272d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.PHONY: test
22
test:
33
@if command -v jag >/dev/null 2>&1; then \
4-
find tests -type f \( -name '*_test.toit' -o -name '*.test.toit' \) -exec sh -c 'echo Running {} && jag run --device host {}' \; ; \
4+
find tests -type d -name '.packages' -prune -o -type f \( -name '*_test.toit' -o -name '*.test.toit' \) -exec sh -c 'echo Running {} && jag run --device host {}' \; ; \
55
elif command -v toit.run >/dev/null 2>&1; then \
6-
find tests -type f \( -name '*_test.toit' -o -name '*.test.toit' \) -exec sh -c 'echo Running {} && toit.run {}' \; ; \
6+
find tests -type d -name '.packages' -prune -o -type f \( -name '*_test.toit' -o -name '*.test.toit' \) -exec sh -c 'echo Running {} && toit.run {}' \; ; \
77
else \
88
echo "Error: Neither 'jag' nor 'toit.run' found in PATH"; \
99
exit 1; \

0 commit comments

Comments
 (0)