public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Manfred Hollstein <manfred@s-direktnet.de>
To: phdm@mail.macqel.be
Cc: ian@cygnus.com, egcs@cygnus.com
Subject: Re: dejagnu runtest and runtest.exp
Date: Sat, 11 Oct 1997 10:12:00 -0000	[thread overview]
Message-ID: <199710111653.SAA00464@saturn.s-direktnet.de> (raw)
In-Reply-To: <199710101608.MAA21480@subrogation.cygnus.com>

On Fri, 10 October 1997, 12:08:28, ian@cygnus.com wrote:

       Date: Fri, 10 Oct 1997 13:17:24 +0200 (MET DST)
       From: "Philippe De Muyter" <phdm@mail.macqel.be>
    
       That is not true; runtest.exp exists and is located in /usr/local/share/dejagnu,
       but runtest does not find it because it does not look there !!!
       I can see runtest trying to find its installation directory by looking
       at $0, but as it is invoked as runtest, $0 is merely runtest; that
       is not very useful.  Why does it not look directly in a hard-coded
       directory written in runtest script at instatllation time ?
    
    On many systems, if a shell script is invoked because it is found on
    PATH, $0 is set with the PATH element prepended to the script name.
    Evidently that is not true on your system.
    
    I think that if runtest finds that $0 is just "runtest", it should
    look through PATH looking for itself.
    
    A hard coded data directory could be another backup to search.  In
    general, though, I think it's best to avoid hard coded paths when
    possible, since it makes it difficult to move the installed
    directories to another disk or another machine.
    
Ian is right. I sent a small patch that fixes this problem. But you
should have an installed bash handy for this to work.

On Wed, 8 October 1997, 13:46:46, manfred@ks.sel.alcatel.de wrote:

    Hi there,
    
    running make check on a system whose /bin/sh doesn't set $0 to a shell
    script's full pathname, runtest will not be able find runtest.exp, and
    hence the check will fail.   Setting SHELL=/anywhere/bash doesn't help
    either, because the  libraries/.../Makefiles don't  add SHELL=$(SHELL)
    to FLAGS_TO_PASS.
    
    Wed Oct  8 12:40:14 1997  Manfred Hollstein US/EC4 60/1/110 #40283  <manfred@lts.sel.alcatel.de>
    
    	* config.shared (FLAGS_TO_PASS): Add SHELL.
    
    *** egcs-970929/libio/config.shared.orig	Wed Oct  8 13:41:51 1997
    --- egcs-970929/libio/config.shared	Mon Oct  6 09:14:53 1997
    *************** if [ "${SUBDIRS}" != "" ] ; then
    *** 207,212 ****
    --- 207,213 ----
        echo '# overrides thouh $(MAKE)) but may be needed by older versions.'
        echo ''
        echo 'FLAGS_TO_PASS= \'
    +   echo '	"SHELL=$(SHELL)" \'
        echo '	"INSTALL=$(INSTALL)" \'
        echo '	"INSTALL_DATA=$(INSTALL_DATA)" \'
        echo '	"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \'

-- 
 Manfred Hollstein       If you have any questions about GNU software:
 Hindenburgstr. 13/1                   < mailto:manfred@s-direktnet.de >
 75446 Wiernsheim, FRG  < http://www.s-direktnet.de/HomePages/manfred/ >
 PGP key:    < http://www.s-direktnet.de/HomePages/manfred/manfred.asc >

  reply	other threads:[~1997-10-11 10:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-10  8:51 Philippe De Muyter
1997-10-10  9:08 ` Ian Lance Taylor
1997-10-11 10:12   ` Manfred Hollstein [this message]
1997-10-13 11:05     ` Jeffrey A Law
1997-10-13 13:41       ` Ian Lance Taylor
1997-10-13 15:02         ` Philippe De Muyter
1997-10-15 20:14           ` Jeffrey A Law
1997-10-15 20:16         ` Jeffrey A Law
1997-10-18  0:28           ` Manfred Hollstein
1997-10-18  5:56             ` Philippe De Muyter
1997-10-18 11:38               ` Manfred Hollstein
1997-10-19 18:00                 ` Jeffrey A Law
1997-10-19 19:40                 ` Philippe De Muyter
1997-10-13 15:02   ` Philippe De Muyter
1997-10-13 18:42 meissner
1997-10-15 20:16 ` Jeffrey A Law

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=199710111653.SAA00464@saturn.s-direktnet.de \
    --to=manfred@s-direktnet.de \
    --cc=egcs@cygnus.com \
    --cc=ian@cygnus.com \
    --cc=phdm@mail.macqel.be \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).