X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2FMakefile;h=fe65f53c5fbcf07bb69214b0f0cff8aef551e906;hb=4d569a2c422a9655390e7d33cad0bab88379f13d;hp=5c76afff83087ee4d6324699f7ba376c18201716;hpb=29504118f8528f658fd0bfc02d8d78d4c01dc2cc;p=git.git diff --git a/t/Makefile b/t/Makefile index 5c76afff..fe65f53c 100644 --- a/t/Makefile +++ b/t/Makefile @@ -8,16 +8,22 @@ SHELL_PATH ?= $(SHELL) TAR ?= $(TAR) # Shell quote; -# Result of this needs to be placed inside '' -shq = $(subst ','\'',$(1)) -# This has surrounding '' -shellquote = '$(call shq,$(1))' +SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH)) T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh) -all: - @$(foreach t,$T,echo "*** $t ***"; $(call shellquote,$(SHELL_PATH)) $t $(GIT_TEST_OPTS) || exit; ) - @rm -fr trash +ifdef NO_PYTHON + GIT_TEST_OPTS += --no-python +endif + +all: $(T) clean + +$(T): + @echo "*** $@ ***"; '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS) clean: rm -fr trash + +.PHONY: $(T) clean +.NOPARALLEL: +