X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2FMakefile;h=5c76afff83087ee4d6324699f7ba376c18201716;hb=4769948afe7c502d37746edc2ee2c084c9dcb325;hp=e71da7782ecce282a2c0098cc1d10d2171a5a954;hpb=d5b0c9ea178dab3599674ccff50645c0464b8c31;p=git.git diff --git a/t/Makefile b/t/Makefile index e71da778..5c76afff 100644 --- a/t/Makefile +++ b/t/Makefile @@ -7,10 +7,16 @@ 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))' + T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh) all: - @$(foreach t,$T,echo "*** $t ***"; $(SHELL_PATH) $t $(GIT_TEST_OPTS) || exit; ) + @$(foreach t,$T,echo "*** $t ***"; $(call shellquote,$(SHELL_PATH)) $t $(GIT_TEST_OPTS) || exit; ) @rm -fr trash clean: