[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[DejaGnu] Re: integrating with libgloss: finding baseboards
From: |
Benjamin Kosnik |
Subject: |
[DejaGnu] Re: integrating with libgloss: finding baseboards |
Date: |
Sat, 12 May 2001 11:08:50 -0700 (PDT) |
> Do the tests run native at all ?
Yep.
FAIL: 21_strings/c_strings.cc (test for excess errors)
WARNING: 21_strings/c_strings.cc compilation failed to produce executable
FAIL: 21_strings/ctor_copy_dtor.cc execution test
XPASS: 21_strings/inserters_extractors.cc (test for warnings, line 45)
XPASS: 27_io/istream_unformatted.cc (test for warnings, line 146)
XPASS: 27_io/istream_unformatted.cc (test for warnings, line 238)
XPASS: 27_io/istream_unformatted.cc (test for warnings, line 364)
XPASS: 27_io/stringstream.cc (test for warnings, line 52)
=== libstdc++-v3 Summary ===
# of expected passes 222
# of unexpected failures 2
# of unexpected successes 5
# of expected failures 9
make[3]: *** [check-DEJAGNU] Error 1
make[3]: Leaving directory
`/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/testsuite'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory
`/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/testsuite'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory
`/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3'
m
Which is as expected.
> What's in libstdc++-v3/testsuite/config ?
a default.exp that loads "standard.exp"
> That's where your tool-and-target-specific interface file should be. If it's
> not found, default.exp gets loaded, which currently only works for native
> tests. Is DEJAGNU pointing to your global site.exp file ?
I don't think so. How do I set DEJAGNU correctly?
> Hum... I'd really need to wander through your sources to see what the
> problem is. It's not obvious from this.
Ok. You'll need
to cvsupdate -d in the libstdc++-v3 source directory, apply this patch,
and then rebuild the autoconf/automake bits.
I just checked in the bits for the new harness, but did not activate
them. Here's the patch to do so. After applying, you'll need to do
aclocal; autoconf; autoheader; automake
at the top level of the libstdc++-v3 source directory.
To avoid confusion, and to allow the new harness to be used without
destroying the old one, DEJATOOL changed to libstdc++-v3. So,
libstdc++-v3 type bits are the ones that you'll want to pay attention
to in the testsuite.
Thanks again for your help.
Here's the patch:
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/acinclude.m4,v
retrieving revision 1.144
diff -c -p -r1.144 acinclude.m4
*** acinclude.m4 2001/04/26 04:29:15 1.144
--- acinclude.m4 2001/05/12 17:54:05
*************** AC_DEFUN(GLIBCPP_EXPORT_INSTALL_INFO, [
*** 1581,1586 ****
--- 1581,1592 ----
glibcpp_toolexecdir=no
glibcpp_toolexeclibdir=no
+ # Export build and source directories.
+ tmp_builddir=`pwd`
+ glibcpp_builddir=$tmp_builddir
+ glibcpp_srcdir=${srcdir}
+ glibcpp_prefixdir=${prefix}
+
AC_MSG_CHECKING([for interface version number])
libstdcxx_interface=$INTERFACE
AC_MSG_RESULT($libstdcxx_interface)
*************** fi
*** 1643,1648 ****
--- 1649,1657 ----
AC_MSG_CHECKING([for install location])
AC_MSG_RESULT($gxx_include_dir)
+ AC_SUBST(glibcpp_builddir)
+ AC_SUBST(glibcpp_srcdir)
+ AC_SUBST(glibcpp_prefixdir)
AC_SUBST(gxx_include_dir)
AC_SUBST(glibcpp_toolexecdir)
AC_SUBST(glibcpp_toolexeclibdir)
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.in,v
retrieving revision 1.60
diff -c -p -r1.60 configure.in
*** configure.in 2001/05/03 20:35:13 1.60
--- configure.in 2001/05/12 17:54:50
*************** fi
*** 281,294 ****
# installed in the correct place. To work around this not being passed
# down from config-ml.in -> top_srcdir/Makefile.am ->
# top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
! AC_OUTPUT(tests_flags mkcheck Makefile src/Makefile libmath/Makefile
libio/Makefile libsupc++/Makefile testsuite/Makefile,
[if test -n "$CONFIG_FILES"; then
ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
grep '^MULTISUBDIR =' Makefile >> src/Makefile
grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
fi
- chmod +x tests_flags
chmod +x mkcheck
],
srcdir=${srcdir}
host=${host}
--- 281,294 ----
# installed in the correct place. To work around this not being passed
# down from config-ml.in -> top_srcdir/Makefile.am ->
# top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
! AC_OUTPUT(Makefile src/Makefile libmath/Makefile libio/Makefile
libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags,
[if test -n "$CONFIG_FILES"; then
ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
grep '^MULTISUBDIR =' Makefile >> src/Makefile
grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
fi
chmod +x mkcheck
+ chmod +x testsuite_flags
],
srcdir=${srcdir}
host=${host}
Index: testsuite/Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/Makefile.am,v
retrieving revision 1.3
diff -c -p -r1.3 Makefile.am
*** Makefile.am 2001/04/11 18:52:31 1.3
--- Makefile.am 2001/05/12 17:54:57
***************
*** 23,29 ****
AUTOMAKE_OPTIONS = foreign dejagnu
! DEJATOOL = libstdc++
EXPECT = @glibcpp_expect@
--- 23,29 ----
AUTOMAKE_OPTIONS = foreign dejagnu
! DEJATOOL = libstdc++-v3
EXPECT = @glibcpp_expect@