t / Makefileon commit Merge part of jc/portable branch (6643688)
   1# Run tests
   2#
   3# Copyright (c) 2005 Junio C Hamano
   4#
   5
   6#GIT_TEST_OPTS=--verbose --debug
   7SHELL_PATH ?= $(SHELL)
   8TAR ?= $(TAR)
   9
  10# Shell quote;
  11# Result of this needs to be placed inside ''
  12shq = $(subst ','\'',$(1))
  13# This has surrounding ''
  14shellquote = '$(call shq,$(1))'
  15
  16T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
  17
  18ifdef NO_PYTHON
  19        GIT_TEST_OPTS += --no-python
  20endif
  21
  22all: $(T) clean
  23
  24$(T):
  25        @echo "*** $@ ***"; $(call shellquote,$(SHELL_PATH)) $@ $(GIT_TEST_OPTS)
  26
  27clean:
  28        rm -fr trash
  29
  30.PHONY: $(T) clean
  31.NOPARALLEL:
  32