/[dejagnu]/dejagnu/runtest
ViewVC logotype

Diff of /dejagnu/runtest

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by rsavoye, Mon Jul 28 14:45:35 2003 UTC revision 1.5 by bje, Sun Aug 17 23:05:55 2003 UTC
# Line 65  fi Line 65  fi
65  if [ -x "$expectbin-bld.sh" ]; then  if [ -x "$expectbin-bld.sh" ]; then
66    expectbin="${CONFIG_SHELL-/bin/sh} $expectbin-bld.sh"    expectbin="${CONFIG_SHELL-/bin/sh} $expectbin-bld.sh"
67  fi  fi
68    
69  #  #
70  # Extract a few options from the option list.  # Extract a few options from the option list.
71  #  #
72  verbose=0  verbose=0
73  debug=""  debug=""
74  for a in "$@" ; do  for a in "$@" ; do
75    case $a in            case $a in
76        -v|--v|-verb*|--verb*)    verbose=`expr $verbose + 1`;;        -v|--v|-verb*|--verb*)    verbose=`expr $verbose + 1`;;
77        -D0|--D0)       debug="-D 0" ;;        -D0|--D0)       debug="-D 0" ;;
78        -D1|--D1)       debug="-D 1" ;;        -D1|--D1)       debug="-D 1" ;;
# Line 88  fi Line 88  fi
88  # start if from the source tree.  # start if from the source tree.
89  #  #
90  # runtest.exp is found in (autoconf-configure-set) @datadir@, but  # runtest.exp is found in (autoconf-configure-set) @datadir@, but
91  # $execpath is @bindir@.  We're assuming that  # $execpath is @bindir@.  We're assuming that
92  #  #
93  # @datadir@ == @bindir@/../share  # @datadir@ == @bindir@/../share
94  # or  # or
# Line 99  fi Line 99  fi
99  for i in `echo ${execpath} | sed  -e 's@/[^/]*$@/share/dejagnu@'` `echo ${execpath} | sed  -e 's@/[^/]*/[^/]*$@/share/dejagnu@'` $execpath ; do  for i in `echo ${execpath} | sed  -e 's@/[^/]*$@/share/dejagnu@'` `echo ${execpath} | sed  -e 's@/[^/]*/[^/]*$@/share/dejagnu@'` $execpath ; do
100      if expr $verbose \> 1 > /dev/null ; then      if expr $verbose \> 1 > /dev/null ; then
101          echo Looking for $i/runtest.exp.          echo Looking for $i/runtest.exp.
102      fi        fi
103      if [ -f $i/runtest.exp ] ; then      if [ -f $i/runtest.exp ] ; then
104          runpath=$i          runpath=$i
105          if expr $verbose \> 0 > /dev/null ; then          if expr $verbose \> 0 > /dev/null ; then

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26