t9001: send-email interation with --in-reply-to and --chain-reply-to
[git/kirr.git] / t / Makefile
blobc7baefb7eac27fff31e3e78c7862eb2bf73d9068
1 # Run tests
3 # Copyright (c) 2005 Junio C Hamano
6 -include ../config.mak.autogen
7 -include ../config.mak
9 #GIT_TEST_OPTS=--verbose --debug
10 SHELL_PATH ?= $(SHELL)
11 PERL_PATH ?= /usr/bin/perl
12 TAR ?= $(TAR)
13 RM ?= rm -f
15 # Shell quote;
16 SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
18 T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
19 TSVN = $(wildcard t91[0-9][0-9]-*.sh)
21 all: pre-clean
22 $(MAKE) aggregate-results-and-cleanup
24 $(T):
25 @echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
27 pre-clean:
28 $(RM) -r test-results
30 clean:
31 $(RM) -r 'trash directory'.* test-results
32 $(RM) -r valgrind/bin
33 $(RM) .prove
35 aggregate-results-and-cleanup: $(T)
36 $(MAKE) aggregate-results
37 $(MAKE) clean
39 aggregate-results:
40 for f in test-results/t*-*.counts; do \
41 echo "$$f"; \
42 done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
44 # we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
45 full-svn-test:
46 $(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
47 $(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=0 LC_ALL=en_US.UTF-8
49 valgrind:
50 GIT_TEST_OPTS=--valgrind $(MAKE)
52 # Smoke testing targets
53 -include ../GIT-VERSION-FILE
54 uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo unknown')
55 uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo unknown')
57 test-results:
58 mkdir -p test-results
60 test-results/git-smoke.tar.gz: test-results
61 $(PERL_PATH) ./harness \
62 --archive="test-results/git-smoke.tar.gz" \
63 $(T)
65 smoke: test-results/git-smoke.tar.gz
67 SMOKE_UPLOAD_FLAGS =
68 ifdef SMOKE_USERNAME
69 SMOKE_UPLOAD_FLAGS += -F username="$(SMOKE_USERNAME)" -F password="$(SMOKE_PASSWORD)"
70 endif
71 ifdef SMOKE_COMMENT
72 SMOKE_UPLOAD_FLAGS += -F comments="$(SMOKE_COMMENT)"
73 endif
74 ifdef SMOKE_TAGS
75 SMOKE_UPLOAD_FLAGS += -F tags="$(SMOKE_TAGS)"
76 endif
78 smoke_report: smoke
79 curl \
80 -H "Expect: " \
81 -F project=Git \
82 -F architecture="$(uname_M)" \
83 -F platform="$(uname_S)" \
84 -F revision="$(GIT_VERSION)" \
85 -F report_file=@test-results/git-smoke.tar.gz \
86 $(SMOKE_UPLOAD_FLAGS) \
87 http://smoke.git.nix.is/app/projects/process_add_report/1 \
88 | grep -v ^Redirecting
90 .PHONY: pre-clean $(T) aggregate-results clean valgrind smoke smoke_report