[RFC] Make V3 testsuite use DejaGnu-based framework

Gabriel Dos Reis gdr@codesourcery.com
Wed Feb 14 20:54:00 GMT 2001


This has been awaited for along time.

This patch is not yet applied.  It is just a request for comment.
Its purpose, if applied, is to have us use a DejaGnu-based framework
for testing (see libstdc++-3/testsuite/lib/libstdc++.exp).
Regenerated files are not included.

Comments and suggestions are welcome.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com

2001-02-15  Gabriel Dos Reis  <gdr@codesourcery.com>

	* Makefile.am (SUBDIRS): Add testsuite
	(check): Comment out.
	* configure.in (AC_OUTPUT): Add testsuite/Makefile.
	* Makefile.in: Regenerate.
	* configure: Ditto.
	* testsuite/Makefile.in: Generate.


Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/Makefile.am,v
retrieving revision 1.17
diff -p -r1.17 Makefile.am
*** Makefile.am	2001/02/03 09:01:40	1.17
--- Makefile.am	2001/02/15 04:40:40
***************
*** 24,41 ****
  AUTOMAKE_OPTIONS = 1.3 cygnus
  MAINT_CHARSET = latin1
  
! SUBDIRS = libio libmath libsupc++ src
  
  mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
  
  # Use $${builddir} instead of $(top_builddir) for arguments to "mkcheck"
  # because then the paths will be full pathnames, not relative
  # pathnames. (-Wl,--rpath seems to like this better.)
! check: $(top_builddir)/mkcheck
! 	-(chmod + $(top_builddir)/mkcheck; \
! 	  srcdir=`cd $(top_srcdir); pwd`; builddir=`pwd`; \
! 	  test -d testsuite || (mkdir testsuite; chmod u+w testsuite); \
! 	  cd testsuite; $${builddir}/mkcheck 0 $${builddir} $${srcdir})
  
  check-install: $(top_builddir)/mkcheck
  	-(chmod + $(top_builddir)/mkcheck; \
--- 24,41 ----
  AUTOMAKE_OPTIONS = 1.3 cygnus
  MAINT_CHARSET = latin1
  
! SUBDIRS = libio libmath libsupc++ src testsuite
  
  mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
  
  # Use $${builddir} instead of $(top_builddir) for arguments to "mkcheck"
  # because then the paths will be full pathnames, not relative
  # pathnames. (-Wl,--rpath seems to like this better.)
! # check: $(top_builddir)/mkcheck
! # 	-(chmod + $(top_builddir)/mkcheck; \
! # 	  srcdir=`cd $(top_srcdir); pwd`; builddir=`pwd`; \
! # 	  test -d testsuite || (mkdir testsuite; chmod u+w testsuite); \
! # 	  cd testsuite; $${builddir}/mkcheck 0 $${builddir} $${srcdir})
  
  check-install: $(top_builddir)/mkcheck
  	-(chmod + $(top_builddir)/mkcheck; \
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/configure.in,v
retrieving revision 1.54
diff -p -r1.54 configure.in
*** configure.in	2001/02/11 18:15:47	1.54
--- configure.in	2001/02/15 04:40:40
*************** fi
*** 273,279 ****
  # 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,
  [if test -n "$CONFIG_FILES"; then
    ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
    grep '^MULTISUBDIR =' Makefile >> src/Makefile
--- 273,279 ----
  # 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



More information about the Gcc-patches mailing list