[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cross-testing: check-target-libstdc++-v3 with dejagnu in build tree.
From: |
Hans-Peter Nilsson |
Subject: |
Cross-testing: check-target-libstdc++-v3 with dejagnu in build tree. |
Date: |
Tue, 23 Apr 2002 14:42:00 -0400 (EDT) |
I use this patch locally so I can make check-target-libstdc++-v3
with dejagnu in the build tree, using the dejagnu at sourceware
(cf. <URL:http://gcc.gnu.org/simtest-howto.html>) which was
recently synched with FSF dejagnu (thanks to Nick Clifton).
The patch is no good as is, since Makefile.in in
libstdc++-v3/testsuite is generated from Makefile.am, and this
check-DEJAGNU rule is an automake-generated thingy. I think it
exposes a problem with automake, which seems to by default
assume that libraries are only tested as host libraries, in
which case the library dir is one .. closer to the host expect
build dir.
IIRC the automake documented remedy is to enter the
check-DEJAGNU rule manually in Makefile.am, but I think the
automake-generated rule needs fixing too. It seems "automake
1.4-p5" was used to generate this Makefile.in (please forgive me
for not digging deeper, particularly into newer automake
versions). I don't really know how or if the test should be
tweaked to deal with the case where libstdc++-v3 is a multilib.
Thoughts?
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/Makefile.in,v
retrieving revision 1.20.2.2
diff -p -c -r1.20.2.2 Makefile.in
*** Makefile.in 2 Apr 2002 02:47:07 -0000 1.20.2.2
--- Makefile.in 23 Apr 2002 18:16:04 -0000
*************** RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL)
*** 212,218 ****
check-DEJAGNU: site.exp
srcdir=`cd $(srcdir) && pwd`; export srcdir; \
EXPECT=$(EXPECT); export EXPECT; \
! if [ -f $(top_builddir)/../expect/expect ]; then \
TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
export TCL_LIBRARY; \
fi; \
--- 212,219 ----
check-DEJAGNU: site.exp
srcdir=`cd $(srcdir) && pwd`; export srcdir; \
EXPECT=$(EXPECT); export EXPECT; \
! if [ -f $(top_builddir)/../expect/expect ] \
! || [ -f $(top_builddir)/../../expect/expect ]; then \
TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
export TCL_LIBRARY; \
fi; \
brgds, H-P
- Cross-testing: check-target-libstdc++-v3 with dejagnu in build tree.,
Hans-Peter Nilsson <=