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" ;; |
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 |
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 |