PATCH to g++.dg/dg.exp for test subdirs
Jason Merrill
jason_merrill@redhat.com
Tue Jul 24 08:06:00 GMT 2001
This patch allows us to put dg tests into subdirectories of g++.dg, just as
with old-deja. I hereby declare that all new C++ tests should use the more
powerful dg framework.
What subdirectories do people think we should have? So far I've created
abi
ext (ensions)
opt (imizations)
other
special
template
warn (ings)
Other ideas:
EH
lookup
overloading/conversion
initialization/ctors/dtors
virtual stuff
RTTI
Thoughts?
2001-07-24 Jason Merrill <jason_merrill@redhat.com>
* g++.dg/dg.exp: Run tests from subdirectories other than "special".
*** dg.exp.~1~ Tue Jul 24 15:08:50 2001
--- dg.exp Tue Jul 17 11:35:33 2001
*************** if ![info exists DEFAULT_CXXFLAGS] then
*** 28,36 ****
# Initialize `dg'.
dg-init
# Main loop.
! dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[CS\]]] \
! "" $DEFAULT_CXXFLAGS
# All done.
dg-finish
--- 28,40 ----
# Initialize `dg'.
dg-init
+ # Gather a list of all tests, excluding those in special/; those are handled
+ # well, specially.
+ set all [lsort [find $srcdir/$subdir *.C]]
+ set tests [prune $all $srcdir/$subdir/special/*]
+
# Main loop.
! dg-runtest $tests "" $DEFAULT_CXXFLAGS
# All done.
dg-finish
More information about the Gcc-patches
mailing list