about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2019-07-16 10:57:35 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2019-07-16 10:57:35 +0100
commitede3e4e61e202ae89fd367ea893920e473552c04 (patch)
tree542fc15e7bf316aac519d28cb248decf26fa8e8b /Test
parent8cbbc04d97d1126d17060353a8cf85de44cb3053 (diff)
downloadzsh-ede3e4e61e202ae89fd367ea893920e473552c04.tar.gz
zsh-ede3e4e61e202ae89fd367ea893920e473552c04.tar.xz
zsh-ede3e4e61e202ae89fd367ea893920e473552c04.zip
44523: Add ZTST_handler capability.
Defaults to runtests.zsh but can be something else for alternative
test management.
Diffstat (limited to 'Test')
-rw-r--r--Test/Makefile.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/Test/Makefile.in b/Test/Makefile.in
index 083df4942..09f37bf53 100644
--- a/Test/Makefile.in
+++ b/Test/Makefile.in
@@ -40,16 +40,21 @@ INSTALL         = @INSTALL@
 
 # ========== DEPENDENCIES FOR TESTING ==========
 
+# If ZTST_handler is not empty, run that instead of runtests.zsh.
+# It's assumed to be found in the source directory.
 check test:
 	if test -n "$(DLLD)"; then \
 	  cd $(dir_top) && DESTDIR= \
 	  $(MAKE) MODDIR=`pwd`/$(subdir)/Modules install.modules > /dev/null; \
 	fi
+	if test -z "$$ZTST_handler"; then \
+	  ZTST_handler=runtests.zsh; \
+	fi; \
 	if ZTST_testlist="`for f in $(sdir)/$(TESTNUM)*.ztst; \
            do echo $$f; done`" \
 	 ZTST_srcdir="$(sdir)" \
 	 ZTST_exe=$(dir_top)/Src/zsh@EXEEXT@ \
-	 $(dir_top)/Src/zsh@EXEEXT@ +Z -f $(sdir)/runtests.zsh; then \
+	 $(dir_top)/Src/zsh@EXEEXT@ +Z -f $(sdir)/$$ZTST_handler; then \
 	 stat=0; \
 	else \
 	 stat=1; \