From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25841 invoked from network); 28 Dec 1999 20:07:24 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Dec 1999 20:07:24 -0000 Received: (qmail 14659 invoked by alias); 28 Dec 1999 20:07:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9163 Received: (qmail 14651 invoked from network); 28 Dec 1999 20:07:12 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: srcdir != builddir test errors References: MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 29 Dec 1999 05:07:10 +0900 In-Reply-To: Vin Shelton's message of "26 Dec 1999 15:48:09 -0500" Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article , Vin Shelton 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