New test to verify that when git-clone fails it cleans up the new directory.
[git/debian.git] / t / Makefile
blobba6ddbec976f2ea0e4808d6549f93270e0c2b676
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 ifdef NO_PYTHON
19 GIT_TEST_OPTS += --no-python
20 endif
22 all: $(T) clean
24 $(T):
25 @echo "*** $@ ***"; $(call shellquote,$(SHELL_PATH)) $@ $(GIT_TEST_OPTS)
27 clean:
28 rm -fr trash
30 .PHONY: $(T) clean
31 .NOPARALLEL: