Skip to content

Commit

Permalink
t/Makefile: provide a 'valgrind' target
Browse files Browse the repository at this point in the history
It is easy to forget running valgrinded tests without -v, and it is
also easy to forget to redirect the output to "tee" (lest the output
scroll out of the terminal's buffer).  Running "make valgrind" will
take care of all that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Feb 4, 2009
1 parent 4413855 commit 7f6fdea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ full-svn-test:
$(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
$(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=0 LC_ALL=en_US.UTF-8

.PHONY: pre-clean $(T) aggregate-results clean
valgrind:
GIT_TEST_OPTS='--valgrind -v --tee' $(MAKE) -k

.PHONY: pre-clean $(T) aggregate-results clean valgrind

0 comments on commit 7f6fdea

Please sign in to comment.