1# Run tests
   2#
   3# Copyright (c) 2005 Junio C Hamano
   4#
   5#GIT_TEST_OPTS=--verbose --debug
   7SHELL_PATH ?= $(SHELL)
   8TAR ?= $(TAR)
   9# Shell quote;
  11# Result of this needs to be placed inside ''
  12shq = $(subst ','\'',$(1))
  13# This has surrounding ''
  14shellquote = '$(call shq,$(1))'
  15T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
  17all: $(T) clean
  19$(T):
  21        @echo "*** $@ ***"; $(call shellquote,$(SHELL_PATH)) $@ $(GIT_TEST_OPTS)
  22clean:
  24        rm -fr trash
  25.PHONY: $(T) clean
  27.NOPARALLEL:
  28