3 # based on Git's t/Makefile (Copyright (c) 2005 Junio C Hamano)
6 #GIT_TEST_OPTS=--verbose --debug
9 SHELL_PATH_SQ
= $(subst ','\'',$(SHELL_PATH))
11 # do not print 'Entering directory ...
'
12 MAKEFLAGS := $(MAKEFLAGS) --no-print-directory
15 T := $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
17 test: pre-clean $(TEST_LINT)
18 $(MAKE) aggregate-results-and-cleanup
21 @echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ
)' $@ $(GIT_TEST_OPTS)
27 $(RM) -r 'trash directory
'.* test-results
29 aggregate-results-and-cleanup: $(T)
30 $(MAKE) aggregate-results
34 @for f in test-results/t*-*.counts; do \
36 done | '$(SHELL_PATH_SQ
)' ../git/t/aggregate-results.sh
41 .PHONY: pre-clean $(T) aggregate-results clean