build: Rebuild .config.mk.autogen without initial warning
[navymail.git] / t / Makefile
blob79ddb44be5ef443d3bd6890f87050de39fdffb7e
1 # Run tests
3 # based on Git's t/Makefile (Copyright (c) 2005 Junio C Hamano)
6 #GIT_TEST_OPTS=--verbose --debug
7 SHELL_PATH ?= $(SHELL)
8 # Shell quote;
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
20 $(T):
21 @echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
23 pre-clean:
24 $(RM) -r test-results
26 clean:
27 $(RM) -r 'trash directory'.* test-results
29 aggregate-results-and-cleanup: $(T)
30 $(MAKE) aggregate-results
31 $(MAKE) clean
33 aggregate-results:
34 @for f in test-results/t*-*.counts; do \
35 echo "$$f"; \
36 done | '$(SHELL_PATH_SQ)' ../git/t/aggregate-results.sh
38 test-results:
39 mkdir -p test-results
41 .PHONY: pre-clean $(T) aggregate-results clean