public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Cross-testing: check-target-libstdc++-v3 with dejagnu in build tree.
@ 2002-04-23 11:53 Hans-Peter Nilsson
  2002-04-24 16:35 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Hans-Peter Nilsson @ 2002-04-23 11:53 UTC (permalink / raw)
  To: bug-automake, gcc, libstdc++

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-24 23:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-23 11:53 Cross-testing: check-target-libstdc++-v3 with dejagnu in build tree Hans-Peter Nilsson
2002-04-24 16:35 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).