t / Makefileon commit interpret_nth_last_branch(): avoid traversing the reflog twice (c2883e6)
   1# Run tests
   2#
   3# Copyright (c) 2005 Junio C Hamano
   4#
   5
   6#GIT_TEST_OPTS=--verbose --debug
   7SHELL_PATH ?= $(SHELL)
   8TAR ?= $(TAR)
   9RM ?= rm -f
  10
  11# Shell quote;
  12SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
  13
  14T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
  15TSVN = $(wildcard t91[0-9][0-9]-*.sh)
  16
  17all: pre-clean
  18        $(MAKE) aggregate-results-and-cleanup
  19
  20$(T):
  21        @echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
  22
  23pre-clean:
  24        $(RM) -r test-results
  25
  26clean:
  27        $(RM) -r 'trash directory' test-results
  28
  29aggregate-results-and-cleanup: $(T)
  30        $(MAKE) aggregate-results
  31        $(MAKE) clean
  32
  33aggregate-results:
  34        '$(SHELL_PATH_SQ)' ./aggregate-results.sh test-results/t*-*
  35
  36# we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
  37full-svn-test:
  38        $(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
  39        $(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=0 LC_ALL=en_US.UTF-8
  40
  41.PHONY: pre-clean $(T) aggregate-results clean