This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dejagnu runtest and runtest.exp


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]