Teach "git diff" to handle filenames starting with '-'
[debian-git.git] / t / Makefile
blob5c76afff83087ee4d6324699f7ba376c18201716
1 # Run tests
3 # Copyright (c) 2005 Junio C Hamano
6 #GIT_TEST_OPTS=--verbose --debug
7 SHELL_PATH ?= $(SHELL)
8 TAR ?= $(TAR)
10 # Shell quote;
11 # Result of this needs to be placed inside ''
12 shq = $(subst ','\'',$(1))
13 # This has surrounding ''
14 shellquote = '$(call shq,$(1))'
16 T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
18 all:
19 @$(foreach t,$T,echo "*** $t ***"; $(call shellquote,$(SHELL_PATH)) $t $(GIT_TEST_OPTS) || exit; )
20 @rm -fr trash
22 clean:
23 rm -fr trash