From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8587 invoked from network); 26 Dec 1999 20:40:08 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Dec 1999 20:40:08 -0000 Received: (qmail 26595 invoked by alias); 26 Dec 1999 20:40:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9159 Received: (qmail 26579 invoked from network); 26 Dec 1999 20:39:59 -0000 Sender: acs@ne.mediaone.net To: zsh-workers@sunsite.auc.dk Subject: srcdir != builddir test errors From: Vin Shelton Organization: EtherSoft, Inc Date: 26 Dec 1999 15:48:09 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 ]]