@matheusbsbs / matheus-bagliano / commits / f8d5ffc2c7
Fork 0

Hook up the result aggregation in the test makefile.

This patch makes 'make' output the aggregated results at the end of each build. The 'git-test-result' file is removed both before and after each build. Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sverre Rabbelier committed Jun 8, 2008 at 16:04 UTC f8d5ffc2c7c002cebb8842afcf58cbd4cea481b8
1 file changed +8 -2
t/Makefile
+8 -2
@@ -14,18 +14,24 @@ SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
14 T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
15 TSVN = $(wildcard t91[0-9][0-9]-*.sh)
16
17 -all: $(T) clean
17 +all: pre-clean $(T) aggregate-results clean
18
19 $(T):
20 @echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
21
22 +pre-clean:
23 + $(RM) -r test-results
24 +
25 clean:
26 $(RM) -r 'trash directory' test-results
27
28 +aggregate-results:
29 + ./aggregate-results.sh test-results/t*-*
30 +
31 # we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
32 full-svn-test:
33 $(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
34 $(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=0 LC_ALL=en_US.UTF-8
35
30 -.PHONY: $(T) clean
36 +.PHONY: pre-clean $(T) aggregate-results clean
37 .NOTPARALLEL: