]>
Commit | Line | Data |
---|---|---|
23834577 | 1 | # Primary test file for libstdc++. |
c66ce1f5 | 2 | |
23834577 PE |
3 | # Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
4 | # | |
c66ce1f5 BK |
5 | # This program is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program; if not, write to the Free Software | |
17 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18 | ||
19 | # libstdc++-v3 testsuite that uses the 'dg.exp' driver. | |
20 | ||
70a84160 BK |
21 | # Initialization. |
22 | dg-init | |
c66ce1f5 | 23 | |
0b3deaaf | 24 | # Build the support objects. |
0b694555 | 25 | v3-build_support |
0b3deaaf MM |
26 | |
27 | # Find directories that might have tests. | |
28 | set subdirs [glob "$srcdir/\[0-9\]\[0-9\]*"] | |
29 | foreach d [glob "$srcdir/\[a-z\]*"] { | |
30 | if {[file isdirectory $d]} { | |
31 | lappend subdirs $d | |
32 | } | |
33 | } | |
34 | ||
35 | # Find all the tests. | |
36 | set tests [list] | |
37 | foreach s $subdirs { | |
38 | set subdir_tests [find $s *.cc] | |
39 | # Filter out tests that should not be run. | |
40 | foreach t $subdir_tests { | |
41 | # The DejaGNU "find" procedure sometimes returns a list | |
42 | # containing an empty string, when it should realy return | |
43 | # an empty list. | |
44 | if { $t == "" } { | |
45 | continue | |
46 | } | |
47 | # Filter out: | |
48 | # 1. interactive tests. | |
49 | # 2. performance tests. | |
50 | # 3. wchar_t tests, if not supported. | |
51 | # 4. thread tests, if not supported. | |
52 | if { [string first _xin $t] == -1 | |
53 | && [string first performance $t] == -1 | |
0b694555 MM |
54 | && (${v3-wchar_t} || [string first wchar_t $t] == -1) |
55 | && (${v3-threads} || [string first thread $t] == -1) } { | |
0b3deaaf MM |
56 | lappend tests $t |
57 | } | |
58 | } | |
59 | } | |
60 | set tests [lsort $tests] | |
61 | ||
c66ce1f5 | 62 | # Main loop. |
23834577 | 63 | global DEFAULT_CXXFLAGS |
0b3deaaf | 64 | dg-runtest $tests "" $DEFAULT_CXXFLAGS |
c66ce1f5 BK |
65 | |
66 | # All done. | |
67 | dg-finish |