libjava testsuite problems on cygwin

Billinghurst, David (CRTS)
Thu Jul 11 18:55:00 GMT 2002

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; :;\
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
to site.exp. 

More information about the Java mailing list