@matheusbsbs / matheus-bagliano / commits / 23fc63bf8f
Fork 0

make tests ignorable with "make -i"

Allow failed tests to be ignored using make's "-i". The patch also disables parallel make in t/. This doesn't make the testing any different as before: the tests were run sequentially before. It also allows to run more tests, ignoring the ones usually failing just to figure out if something else broke. (Or to ignore plainly uninteresting situations because of the testing being done on say... cygwin ;) Signed-off-by: Junio C Hamano <junkio@cox.net>

Alex Riesen committed Nov 8, 2005 at 10:51 UTC 23fc63bf8fb7c3627f78ca6743b4f3ae17a5df49
1 file changed +8 -3
t/Makefile
+8 -3
@@ -15,9 +15,14 @@ shellquote = '$(call shq,$(1))'
15
16 T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
17
18 -all:
19 - @$(foreach t,$T,echo "*** $t ***"; $(call shellquote,$(SHELL_PATH)) $t $(GIT_TEST_OPTS) || exit; )
20 - @rm -fr trash
18 +all: $(T) clean
19 +
20 +$(T):
21 + @echo "*** $@ ***"; $(call shellquote,$(SHELL_PATH)) $@ $(GIT_TEST_OPTS)
22
23 clean:
24 rm -fr trash
25 +
26 +.PHONY: $(T) clean
27 +.NOPARALLEL:
28 +