]>
Commit | Line | Data |
---|---|---|
d1e082c2 | 1 | # Copyright (C) 2000-2013 Free Software Foundation, Inc. |
d93415c9 HPN |
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 | |
cd976c16 | 5 | # the Free Software Foundation; either version 3 of the License, or |
d93415c9 | 6 | # (at your option) any later version. |
21526606 | 7 | # |
d93415c9 HPN |
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. | |
21526606 | 12 | # |
d93415c9 | 13 | # You should have received a copy of the GNU General Public License |
cd976c16 NC |
14 | # along with GCC; see the file COPYING3. If not see |
15 | # <http://www.gnu.org/licenses/>. | |
d93415c9 | 16 | |
d93415c9 HPN |
17 | # G++ testsuite that uses the `dg.exp' driver. |
18 | ||
19 | # Load support procs. | |
20 | load_lib g++-dg.exp | |
21 | ||
22 | # If a testcase doesn't have special options, use these. | |
23 | global DEFAULT_CXXFLAGS | |
24 | if ![info exists DEFAULT_CXXFLAGS] then { | |
e399136a | 25 | set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long" |
d93415c9 HPN |
26 | } |
27 | ||
28 | # Initialize `dg'. | |
29 | dg-init | |
30 | ||
cb260b11 JJ |
31 | # Gather a list of all tests, with the exception of those in directories |
32 | # that are handled specially. | |
c32dd1ef | 33 | set tests [lsort [find $srcdir/$subdir *.C]] |
7a1f3f5f | 34 | set tests [prune $tests $srcdir/$subdir/bprob/*] |
21526606 | 35 | set tests [prune $tests $srcdir/$subdir/charset/*] |
2ce86d2e | 36 | set tests [prune $tests $srcdir/$subdir/cilk-plus/AN/*] |
768bf0ab | 37 | set tests [prune $tests $srcdir/$subdir/compat/*] |
7a1f3f5f | 38 | set tests [prune $tests $srcdir/$subdir/debug/*] |
d366d023 | 39 | set tests [prune $tests $srcdir/$subdir/dfp/*] |
7a1f3f5f | 40 | set tests [prune $tests $srcdir/$subdir/gcov/*] |
d7f09764 | 41 | set tests [prune $tests $srcdir/$subdir/lto/*] |
17211ab5 | 42 | set tests [prune $tests $srcdir/$subdir/pch/*] |
8ba50c2c | 43 | set tests [prune $tests $srcdir/$subdir/plugin/*] |
7a1f3f5f RH |
44 | set tests [prune $tests $srcdir/$subdir/special/*] |
45 | set tests [prune $tests $srcdir/$subdir/tls/*] | |
237eaf79 | 46 | set tests [prune $tests $srcdir/$subdir/vect/*] |
1799e5d5 | 47 | set tests [prune $tests $srcdir/$subdir/gomp/*] |
6bad2617 | 48 | set tests [prune $tests $srcdir/$subdir/tree-prof/*] |
859fa3b8 | 49 | set tests [prune $tests $srcdir/$subdir/torture/*] |
d680e79d | 50 | set tests [prune $tests $srcdir/$subdir/graphite/*] |
0a35513e | 51 | set tests [prune $tests $srcdir/$subdir/tm/*] |
c02065fc | 52 | set tests [prune $tests $srcdir/$subdir/cilk-plus/*] |
8b26599c | 53 | set tests [prune $tests $srcdir/$subdir/guality/*] |
86951993 | 54 | set tests [prune $tests $srcdir/$subdir/simulate-thread/*] |
8335a643 | 55 | set tests [prune $tests $srcdir/$subdir/asan/*] |
de5a5fa1 | 56 | set tests [prune $tests $srcdir/$subdir/ubsan/*] |
f8b529aa | 57 | |
d93415c9 | 58 | # Main loop. |
e399136a | 59 | g++-dg-runtest $tests $DEFAULT_CXXFLAGS |
d93415c9 | 60 | |
812a5d4b | 61 | # C/C++ common tests. |
e399136a JM |
62 | g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/*.\[cSi\]]] \ |
63 | "" | |
812a5d4b | 64 | |
e399136a JM |
65 | g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cpp/*.\[cS\]]] \ |
66 | "" | |
97a3f2bd MLI |
67 | |
68 | ||
d93415c9 HPN |
69 | # All done. |
70 | dg-finish |