mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-17 13:36:04 +02:00
44523: Add ZTST_handler capability.
Defaults to runtests.zsh but can be something else for alternative test management.
This commit is contained in:
parent
8cbbc04d97
commit
ede3e4e61e
|
@ -1,3 +1,8 @@
|
||||||
|
2019-07-16 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
|
* 44523: Test/Makefile.in: allow ZTST_handler to be something
|
||||||
|
other than runtests.zsh to accommodate alternative test modes.
|
||||||
|
|
||||||
2019-07-15 Peter Stephenson <p.stephenson@samsung.com>
|
2019-07-15 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
* 44509: Src/params.c: Prevent crash with modified PATH / path
|
* 44509: Src/params.c: Prevent crash with modified PATH / path
|
||||||
|
|
|
@ -40,16 +40,21 @@ INSTALL = @INSTALL@
|
||||||
|
|
||||||
# ========== DEPENDENCIES FOR TESTING ==========
|
# ========== 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:
|
check test:
|
||||||
if test -n "$(DLLD)"; then \
|
if test -n "$(DLLD)"; then \
|
||||||
cd $(dir_top) && DESTDIR= \
|
cd $(dir_top) && DESTDIR= \
|
||||||
$(MAKE) MODDIR=`pwd`/$(subdir)/Modules install.modules > /dev/null; \
|
$(MAKE) MODDIR=`pwd`/$(subdir)/Modules install.modules > /dev/null; \
|
||||||
fi
|
fi
|
||||||
|
if test -z "$$ZTST_handler"; then \
|
||||||
|
ZTST_handler=runtests.zsh; \
|
||||||
|
fi; \
|
||||||
if ZTST_testlist="`for f in $(sdir)/$(TESTNUM)*.ztst; \
|
if ZTST_testlist="`for f in $(sdir)/$(TESTNUM)*.ztst; \
|
||||||
do echo $$f; done`" \
|
do echo $$f; done`" \
|
||||||
ZTST_srcdir="$(sdir)" \
|
ZTST_srcdir="$(sdir)" \
|
||||||
ZTST_exe=$(dir_top)/Src/zsh@EXEEXT@ \
|
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; \
|
stat=0; \
|
||||||
else \
|
else \
|
||||||
stat=1; \
|
stat=1; \
|
||||||
|
|
Loading…
Reference in New Issue