This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
libjava testsuite problems on cygwin
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- To: <java at gcc dot gnu dot org>
- Date: Fri, 12 Jul 2002 11:35:31 +1000
- Subject: libjava testsuite problems on cygwin
At present the gcc-3.2 libjava testsuite isn't running on cygwin,
as it can't find runtest. I have identified the immediate cause,
and have a work around, but don't understand all the details.
"make check" in i686-pc-cygwin/libjava/testsuite produces
$ make check
make check-DEJAGNU
make[1]: Entering directory `/usr/local/obj/gcc/i686-pc-cygwin/libjava/testsuite'
Making a new site.exp file...
srcdir=`cd /usr/local/src/gcc/libjava/testsuite && pwd`; export srcdir; \
EXPECT=`if [ -f ../../expect/expect ] ; then echo ../../expect/expect ; else echo expect ; fi`; export EXPECT; \
runtest="`if [ -f /usr/local/src/gcc/libjava/../dejagnu/runtest ] ; then echo /usr/local/src/gcc/libjava/../dejagnu/runtest ; else echo runtest; fi` INTERPRETER=yes"; \
if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \
$runtest --tool libjava --srcdir $srcdir ; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi
WARNING: could not find `runtest'
make[1]: Leaving directory `/usr/local/obj/gcc/i686-pc-cygwin/libjava/testsuite'
In the Makefile we have
RUNTEST = "`if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then \
echo $(top_srcdir)/../dejagnu/runtest ; \
else echo runtest; fi` $(AM_RUNTESTFLAGS)"
which expands to "runtest INTERPRETER=yes"
runtest then complains
Illegal Argument "INTERPRETER=yes"
try "runtest --help" for option list
and exits with an error
Removing INTERPRETER=yes enabled runtest to be found but then the tests failed.
This is worked around by adding a line
set INTERPRETER yes
to site.exp.