summaryrefslogtreecommitdiff
path: root/contrib/diff-highlight/t/Makefile
diff options
context:
space:
mode:
authorLibravatar Brian Henderson <henderson.bj@gmail.com>2016-08-29 10:33:45 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-08-29 12:18:50 -0700
commit23b250ab0f041bba7af4ba8eb1a686f6850677a6 (patch)
treedc937777e3aa0590d93da7c752bc2ad9bceb42ec /contrib/diff-highlight/t/Makefile
parentGit 2.10-rc2 (diff)
downloadtgif-23b250ab0f041bba7af4ba8eb1a686f6850677a6.tar.xz
diff-highlight: add some tests
Signed-off-by: Brian Henderson <henderson.bj@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/diff-highlight/t/Makefile')
-rw-r--r--contrib/diff-highlight/t/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/diff-highlight/t/Makefile b/contrib/diff-highlight/t/Makefile
new file mode 100644
index 0000000000..5ff5275496
--- /dev/null
+++ b/contrib/diff-highlight/t/Makefile
@@ -0,0 +1,22 @@
+-include ../../../config.mak.autogen
+-include ../../../config.mak
+
+# copied from ../../t/Makefile
+SHELL_PATH ?= $(SHELL)
+SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
+T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
+
+all: test
+test: $(T)
+
+.PHONY: help clean all test $(T)
+
+help:
+ @echo 'Run "$(MAKE) test" to launch test scripts'
+ @echo 'Run "$(MAKE) clean" to remove trash folders'
+
+$(T):
+ @echo "*** $@ ***"; '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
+
+clean:
+ $(RM) -r 'trash directory'.*