zsh-workers
 help / color / mirror / code / Atom feed
From: Vin Shelton <acs@alumni.princeton.edu>
To: zsh-workers@sunsite.auc.dk
Subject: srcdir != builddir test errors
Date: 26 Dec 1999 15:48:09 -0500	[thread overview]
Message-ID: <m2ln6h2zue.fsf@zion.ne.mediaone.net> (raw)

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


             reply	other threads:[~1999-12-26 20:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-26 20:48 Vin Shelton [this message]
1999-12-28 20:07 ` Tanaka Akira
1999-12-31 15:00   ` Tanaka Akira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2ln6h2zue.fsf@zion.ne.mediaone.net \
    --to=acs@alumni.princeton.edu \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).