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;
|
|
|
|
# Result of this needs to be placed inside ''
|
|
|
|
shq = $(subst ','\'',$(1))
|
|
|
|
# This has surrounding ''
|
|
|
|
shellquote = '$(call shq,$(1))'
|
|
|
|
|
2005-05-14 13:50:32 +08:00
|
|
|
T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
|
|
|
|
|
2005-05-14 23:57:32 +08:00
|
|
|
all:
|
2005-10-11 04:50:01 +08:00
|
|
|
@$(foreach t,$T,echo "*** $t ***"; $(call shellquote,$(SHELL_PATH)) $t $(GIT_TEST_OPTS) || exit; )
|
2005-05-14 23:57:32 +08:00
|
|
|
@rm -fr trash
|
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
|