Skip to content

Commit

Permalink
make tests ignorable with "make -i"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed Nov 8, 2005
1 parent cb34882 commit 23fc63b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions t/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ shellquote = '$(call shq,$(1))'

T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)

all:
@$(foreach t,$T,echo "*** $t ***"; $(call shellquote,$(SHELL_PATH)) $t $(GIT_TEST_OPTS) || exit; )
@rm -fr trash
all: $(T) clean

$(T):
@echo "*** $@ ***"; $(call shellquote,$(SHELL_PATH)) $@ $(GIT_TEST_OPTS)

clean:
rm -fr trash

.PHONY: $(T) clean
.NOPARALLEL:

0 comments on commit 23fc63b

Please sign in to comment.