1 # Copyright (C) 1988, 90, 91, 92, 1994, 1997 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 # Please email any bugs, comments, and/or additions to this file to:
18 # bug-g++@prep.ai.mit.edu
20 # This file was written by Rob Savoye. (rob@cygnus.com)
23 # these tests come from the original DejaGnu test suite
24 # developed at Cygnus Support. If this isn't deja gnu, I
25 # don't know what is...
29 load_lib old-dejagnu.exp
33 # When a testcase doesn't have any special options, use these.
34 if ![info exists DEFAULT_CXXFLAGS] {
35 set DEFAULT_CXXFLAGS "-ansi -pedantic-errors"
47 foreach file [lsort [find $srcdir/$subdir *.C]] {
48 # If we're only testing specific files and this isn't one of them, skip it.
49 if ![runtest_file_p $runtests $file] then {
52 verbose "Testing $file"
54 # We don't want old-dejagnu.exp to have to know about all the global
55 # variables we use. For now we tell it about CXXFLAGS and LIBS and
56 # leave LDFLAGS alone.
57 old-dejagnu $GXX_UNDER_TEST "$file" "" "$DEFAULT_CXXFLAGS" "-lstdc++"
60 # The framework doesn't like to see any error remnants,
62 if [info exists errorInfo] then {