zsh-workers
 help / color / mirror / code / Atom feed
* srcdir != builddir test errors
@ 1999-12-26 20:48 Vin Shelton
  1999-12-28 20:07 ` Tanaka Akira
  0 siblings, 1 reply; 3+ messages in thread
From: Vin Shelton @ 1999-12-26 20:48 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-12-31 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-26 20:48 srcdir != builddir test errors Vin Shelton
1999-12-28 20:07 ` Tanaka Akira
1999-12-31 15:00   ` Tanaka Akira

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