2005-05-14 13:50:32 +08:00
|
|
|
# Run tests
|
|
|
|
#
|
|
|
|
# Copyright (c) 2005 Junio C Hamano
|
|
|
|
#
|
2005-05-14 23:58:22 +08:00
|
|
|
|
|
|
|
#GIT_TEST_OPTS=--verbose --debug
|
2005-09-25 03:50:29 +08:00
|
|
|
SHELL_PATH ?= $(SHELL)
|
2005-10-01 04:31:16 +08:00
|
|
|
TAR ?= $(TAR)
|
2005-05-14 13:50:32 +08:00
|
|
|
|
2005-10-11 04:50:01 +08:00
|
|
|
# Shell quote;
|
2006-02-18 19:40:22 +08:00
|
|
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
2005-10-11 04:50:01 +08:00
|
|
|
|
2005-05-14 13:50:32 +08:00
|
|
|
T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
|
|
|
|
|
2006-02-18 20:01:18 +08:00
|
|
|
ifdef NO_PYTHON
|
|
|
|
GIT_TEST_OPTS += --no-python
|
|
|
|
endif
|
|
|
|
|
2005-11-08 17:51:10 +08:00
|
|
|
all: $(T) clean
|
|
|
|
|
|
|
|
$(T):
|
2006-02-18 19:40:22 +08:00
|
|
|
@echo "*** $@ ***"; '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
|
2005-05-14 13:50:32 +08:00
|
|
|
|
2005-05-14 23:57:32 +08:00
|
|
|
clean:
|
2005-05-14 13:50:32 +08:00
|
|
|
rm -fr trash
|
2005-11-08 17:51:10 +08:00
|
|
|
|
|
|
|
.PHONY: $(T) clean
|
2006-04-17 11:17:38 +08:00
|
|
|
.NOTPARALLEL:
|
2005-11-08 17:51:10 +08:00
|
|
|
|