2005-05-14 09:50:32 +04:00
|
|
|
# Run tests
|
|
|
|
#
|
|
|
|
# Copyright (c) 2005 Junio C Hamano
|
|
|
|
#
|
2005-05-14 19:58:22 +04:00
|
|
|
|
|
|
|
#GIT_TEST_OPTS=--verbose --debug
|
2005-09-24 23:50:29 +04:00
|
|
|
SHELL_PATH ?= $(SHELL)
|
2005-10-01 00:31:16 +04:00
|
|
|
TAR ?= $(TAR)
|
2007-07-14 21:51:44 +04:00
|
|
|
RM ?= rm -f
|
2005-05-14 09:50:32 +04:00
|
|
|
|
2005-10-11 00:50:01 +04:00
|
|
|
# Shell quote;
|
2006-02-18 14:40:22 +03:00
|
|
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
2005-10-11 00:50:01 +04:00
|
|
|
|
2005-05-14 09:50:32 +04:00
|
|
|
T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
|
2006-07-06 11:14:16 +04:00
|
|
|
TSVN = $(wildcard t91[0-9][0-9]-*.sh)
|
2005-05-14 09:50:32 +04:00
|
|
|
|
2005-11-08 12:51:10 +03:00
|
|
|
all: $(T) clean
|
|
|
|
|
|
|
|
$(T):
|
2006-06-20 02:51:58 +04:00
|
|
|
@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
|
2005-05-14 09:50:32 +04:00
|
|
|
|
2005-05-14 19:57:32 +04:00
|
|
|
clean:
|
2007-07-14 21:51:44 +04:00
|
|
|
$(RM) -r trash
|
2005-11-08 12:51:10 +03:00
|
|
|
|
2006-07-06 11:14:16 +04:00
|
|
|
# we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
|
|
|
|
full-svn-test:
|
2006-12-28 12:16:19 +03:00
|
|
|
$(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
|
2006-12-16 10:58:07 +03:00
|
|
|
$(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=0 LC_ALL=en_US.UTF-8
|
2006-07-06 11:14:16 +04:00
|
|
|
|
2005-11-08 12:51:10 +03:00
|
|
|
.PHONY: $(T) clean
|
2006-04-17 07:17:38 +04:00
|
|
|
.NOTPARALLEL:
|