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