]>
Commit | Line | Data |
---|---|---|
f1717362 | 1 | # Copyright (C) 2000-2016 Free Software Foundation, Inc. |
f82ef354 | 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 | |
f63ff66b | 5 | # the Free Software Foundation; either version 3 of the License, or |
f82ef354 | 6 | # (at your option) any later version. |
ccb84981 | 7 | # |
f82ef354 | 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. | |
ccb84981 | 12 | # |
f82ef354 | 13 | # You should have received a copy of the GNU General Public License |
f63ff66b | 14 | # along with GCC; see the file COPYING3. If not see |
15 | # <http://www.gnu.org/licenses/>. | |
f82ef354 | 16 | |
f82ef354 | 17 | # G++ testsuite that uses the `dg.exp' driver. |
18 | ||
19 | # Load support procs. | |
20 | load_lib g++-dg.exp | |
e5e4fa49 | 21 | load_lib mpx-dg.exp |
f82ef354 | 22 | |
23 | # If a testcase doesn't have special options, use these. | |
24 | global DEFAULT_CXXFLAGS | |
25 | if ![info exists DEFAULT_CXXFLAGS] then { | |
d2f3722f | 26 | set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long" |
f82ef354 | 27 | } |
28 | ||
29 | # Initialize `dg'. | |
30 | dg-init | |
31 | ||
71f90aa4 | 32 | # Gather a list of all tests, with the exception of those in directories |
33 | # that are handled specially. | |
31396a87 | 34 | set tests [lsort [find $srcdir/$subdir *.C]] |
e396cd54 | 35 | set tests [prune $tests $srcdir/$subdir/bprob/*] |
ccb84981 | 36 | set tests [prune $tests $srcdir/$subdir/charset/*] |
e9331eab | 37 | set tests [prune $tests $srcdir/$subdir/cilk-plus/AN/*] |
a22c581b | 38 | set tests [prune $tests $srcdir/$subdir/compat/*] |
e396cd54 | 39 | set tests [prune $tests $srcdir/$subdir/debug/*] |
dcd70a22 | 40 | set tests [prune $tests $srcdir/$subdir/dfp/*] |
e396cd54 | 41 | set tests [prune $tests $srcdir/$subdir/gcov/*] |
7bfefa9d | 42 | set tests [prune $tests $srcdir/$subdir/lto/*] |
573aba85 | 43 | set tests [prune $tests $srcdir/$subdir/pch/*] |
6858cdb8 | 44 | set tests [prune $tests $srcdir/$subdir/plugin/*] |
e396cd54 | 45 | set tests [prune $tests $srcdir/$subdir/special/*] |
46 | set tests [prune $tests $srcdir/$subdir/tls/*] | |
c2afe09f | 47 | set tests [prune $tests $srcdir/$subdir/vect/*] |
a1393a2a | 48 | set tests [prune $tests $srcdir/$subdir/goacc/*] |
49 | set tests [prune $tests $srcdir/$subdir/goacc-gomp/*] | |
8487df40 | 50 | set tests [prune $tests $srcdir/$subdir/gomp/*] |
167b550b | 51 | set tests [prune $tests $srcdir/$subdir/tree-prof/*] |
af1b2f22 | 52 | set tests [prune $tests $srcdir/$subdir/torture/*] |
8d255033 | 53 | set tests [prune $tests $srcdir/$subdir/graphite/*] |
4c0315d0 | 54 | set tests [prune $tests $srcdir/$subdir/tm/*] |
f2697631 | 55 | set tests [prune $tests $srcdir/$subdir/cilk-plus/*] |
ea51b934 | 56 | set tests [prune $tests $srcdir/$subdir/guality/*] |
1cd6e20d | 57 | set tests [prune $tests $srcdir/$subdir/simulate-thread/*] |
bb7b4b1a | 58 | set tests [prune $tests $srcdir/$subdir/asan/*] |
9e46467d | 59 | set tests [prune $tests $srcdir/$subdir/ubsan/*] |
110930ad | 60 | set tests [prune $tests $srcdir/$subdir/tsan/*] |
2fd6e358 | 61 | |
f82ef354 | 62 | # Main loop. |
faff04c3 | 63 | g++-dg-runtest $tests "" $DEFAULT_CXXFLAGS |
f82ef354 | 64 | |
f09b68de | 65 | # C/C++ common tests. |
d2f3722f | 66 | g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/*.\[cSi\]]] \ |
faff04c3 | 67 | "" "" |
f09b68de | 68 | |
d2f3722f | 69 | g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cpp/*.\[cS\]]] \ |
faff04c3 | 70 | "" "" |
c95c9198 | 71 | |
72 | ||
f82ef354 | 73 | # All done. |
74 | dg-finish |