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

* Re: Cross-testing: check-target-libstdc++-v3 with dejagnu in build tree.
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2002-04-24 16:35 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: bug-automake, gcc, libstdc++

>>>>> ">" == Hans-Peter Nilsson <hp@bitrange.com> writes:

>> 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.

Yes.  This code was written a long time ago -- I think it was 1996 --
and as far as I know hasn't changed substantially since then.  Back
then I knew nothing about target libraries or multilibbing, so I
ignored those features.

>> 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.

Actually, doing it by hand is a hack.  This isn't an exported name, so
it could change from release to release.  Someday it will (when we
start moving internal targets to their own namespace).

>> I don't really know how or if the test should be tweaked to deal
>> with the case where libstdc++-v3 is a multilib.

That's the issue.  Someone has to just sit down and figure out how we
can get information about the "real" top-of-tree, and then put this
into dejagnu.am.

Could you submit an automake PR for this problem?  That way we can at
least track it.  You can find Gnats by following links from the home
page:

    http://sources.redhat.com/automake/

Thanks.

Tom

^ 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).