Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
srcdir != builddir test errors
- X-seq: zsh-workers 9159
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: srcdir != builddir test errors
- Date: 26 Dec 1999 15:48:09 -0500
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: EtherSoft, Inc
- Sender: acs@xxxxxxxxxxxxxxx
I build zsh under a different directory than the source directory, and
the tests can't be found under this configuration. The following
diffs work for me, but YMMV.
- vin
--- Test/Makefile.in Thu Dec 16 01:02:35 1999
+++ /usr/local/src/zsh-19991226/Test/Makefile.in Sun Dec 26 13:07:03 1999
@@ -41,8 +41,8 @@
# ========== DEPENDENCIES FOR TESTING ==========
check test:
- for f in *.ztst; do \
- ../Src/zsh -f ztst.zsh $$f; \
+ for f in $(sdir)/*.ztst; do \
+ ../Src/zsh -f $(sdir)/ztst.zsh $$f; \
done
# ========== DEPENDENCIES FOR CLEANUP ==========
--- Test/ztst.zsh Tue Dec 21 21:21:40 1999
+++ /usr/local/src/zsh-19991226/Test/ztst.zsh Sun Dec 26 13:46:15 1999
@@ -43,6 +43,9 @@
ZTST_testdir=$PWD
ZTST_testname=$1
+# The source directory is not necessarily the current directory
+ZTST_srcdir=${0%/*}
+
: ${TMPPREFIX:=/tmp/zsh}
# Temporary files for redirection inside tests.
ZTST_in=${TMPPREFIX}.ztst.in.$$
--- Test/07cond.ztst Wed Dec 22 20:17:06 1999
+++ /usr/local/src/zsh-19991226/Test/07cond.ztst Sun Dec 26 13:46:50 1999
@@ -84,7 +84,7 @@
[[ -u modish && ! -u zerolength ]]
0:-u cond
- [[ -x $ZTST_testdir/ztst.zsh && ! -x zerolength ]]
+ [[ -x $ZTST_srcdir/ztst.zsh && ! -x zerolength ]]
0:-x cond
[[ -z $bar && -z '' && ! -z $foo ]]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author