2005-05-14 05:50:32 +00:00
|
|
|
# Run tests
|
|
|
|
#
|
|
|
|
# Copyright (c) 2005 Junio C Hamano
|
|
|
|
#
|
2005-05-14 15:58:22 +00:00
|
|
|
|
|
|
|
#GIT_TEST_OPTS=--verbose --debug
|
2005-09-24 19:50:29 +00:00
|
|
|
SHELL_PATH ?= $(SHELL)
|
2005-09-30 20:31:16 +00:00
|
|
|
TAR ?= $(TAR)
|
2005-05-14 05:50:32 +00:00
|
|
|
|
2005-10-10 20:50:01 +00:00
|
|
|
# Shell quote;
|
|
|
|
# Result of this needs to be placed inside ''
|
|
|
|
shq = $(subst ','\'',$(1))
|
|
|
|
# This has surrounding ''
|
|
|
|
shellquote = '$(call shq,$(1))'
|
|
|
|
|
2005-05-14 05:50:32 +00:00
|
|
|
T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
|
|
|
|
|
2005-11-08 09:51:10 +00:00
|
|
|
all: $(T) clean
|
|
|
|
|
|
|
|
$(T):
|
|
|
|
@echo "*** $@ ***"; $(call shellquote,$(SHELL_PATH)) $@ $(GIT_TEST_OPTS)
|
2005-05-14 05:50:32 +00:00
|
|
|
|
2005-05-14 15:57:32 +00:00
|
|
|
clean:
|
2005-05-14 05:50:32 +00:00
|
|
|
rm -fr trash
|
2005-11-08 09:51:10 +00:00
|
|
|
|
|
|
|
.PHONY: $(T) clean
|
|
|
|
.NOPARALLEL:
|
|
|
|
|