Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: srcdir != builddir test errors



In article <m2ln6h2zue.fsf@xxxxxxxxxxxxxxxxxxxx>,
  Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx> writes:

> 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.

It didn't work for me.  Because ZTST_srcdir was relative path.

Index: ztst.zsh
===================================================================
RCS file: /projects/zsh/zsh/Test/ztst.zsh,v
retrieving revision 1.1.1.8
diff -u -r1.1.1.8 ztst.zsh
--- ztst.zsh	1999/12/26 22:57:23	1.1.1.8
+++ ztst.zsh	1999/12/28 20:05:18
@@ -45,6 +45,7 @@
 
 # The source directory is not necessarily the current directory
 ZTST_srcdir=${0%/*}
+[[ ZTST_srcdir = /* ]] || ZTST_srcdir="$ZTST_testdir/$ZTST_srcdir"
 
 : ${TMPPREFIX:=/tmp/zsh}
 # Temporary files for redirection inside tests.
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author