OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / old-deja.exp
1 # Copyright (C) 1988, 90, 91, 92, 1994, 1997 Free Software Foundation, Inc.
2
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.
7
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.
12
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.  
16
17 # Please email any bugs, comments, and/or additions to this file to:
18 # bug-g++@prep.ai.mit.edu
19
20 # This file was written by Rob Savoye. (rob@cygnus.com)
21
22 #
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...
26 #
27
28 # load support procs
29 load_lib old-dejagnu.exp
30 load_lib g++.exp
31
32
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"
36
37 }
38
39 old-dejagnu-init
40 global GXX_UNDER_TEST
41
42 #
43 # main test loop
44 #
45
46
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 {
50         continue
51     }
52     verbose "Testing $file"
53
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++"
58 }
59
60 # The framework doesn't like to see any error remnants,
61 # so remove them.
62 if [info exists errorInfo] then {
63       unset errorInfo
64 }