]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/dg.exp
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / dg.exp
CommitLineData
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.
20load_lib g++-dg.exp
e5e4fa49 21load_lib mpx-dg.exp
f82ef354 22
23# If a testcase doesn't have special options, use these.
24global DEFAULT_CXXFLAGS
25if ![info exists DEFAULT_CXXFLAGS] then {
d2f3722f 26 set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long"
f82ef354 27}
28
29# Initialize `dg'.
30dg-init
31
71f90aa4 32# Gather a list of all tests, with the exception of those in directories
33# that are handled specially.
31396a87 34set tests [lsort [find $srcdir/$subdir *.C]]
e396cd54 35set tests [prune $tests $srcdir/$subdir/bprob/*]
ccb84981 36set tests [prune $tests $srcdir/$subdir/charset/*]
e9331eab 37set tests [prune $tests $srcdir/$subdir/cilk-plus/AN/*]
a22c581b 38set tests [prune $tests $srcdir/$subdir/compat/*]
e396cd54 39set tests [prune $tests $srcdir/$subdir/debug/*]
dcd70a22 40set tests [prune $tests $srcdir/$subdir/dfp/*]
e396cd54 41set tests [prune $tests $srcdir/$subdir/gcov/*]
7bfefa9d 42set tests [prune $tests $srcdir/$subdir/lto/*]
573aba85 43set tests [prune $tests $srcdir/$subdir/pch/*]
6858cdb8 44set tests [prune $tests $srcdir/$subdir/plugin/*]
e396cd54 45set tests [prune $tests $srcdir/$subdir/special/*]
46set tests [prune $tests $srcdir/$subdir/tls/*]
c2afe09f 47set tests [prune $tests $srcdir/$subdir/vect/*]
a1393a2a 48set tests [prune $tests $srcdir/$subdir/goacc/*]
49set tests [prune $tests $srcdir/$subdir/goacc-gomp/*]
8487df40 50set tests [prune $tests $srcdir/$subdir/gomp/*]
167b550b 51set tests [prune $tests $srcdir/$subdir/tree-prof/*]
af1b2f22 52set tests [prune $tests $srcdir/$subdir/torture/*]
8d255033 53set tests [prune $tests $srcdir/$subdir/graphite/*]
4c0315d0 54set tests [prune $tests $srcdir/$subdir/tm/*]
f2697631 55set tests [prune $tests $srcdir/$subdir/cilk-plus/*]
ea51b934 56set tests [prune $tests $srcdir/$subdir/guality/*]
1cd6e20d 57set tests [prune $tests $srcdir/$subdir/simulate-thread/*]
bb7b4b1a 58set tests [prune $tests $srcdir/$subdir/asan/*]
9e46467d 59set tests [prune $tests $srcdir/$subdir/ubsan/*]
110930ad 60set tests [prune $tests $srcdir/$subdir/tsan/*]
2fd6e358 61
f82ef354 62# Main loop.
faff04c3 63g++-dg-runtest $tests "" $DEFAULT_CXXFLAGS
f82ef354 64
f09b68de 65# C/C++ common tests.
d2f3722f 66g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/*.\[cSi\]]] \
faff04c3 67 "" ""
f09b68de 68
d2f3722f 69g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cpp/*.\[cS\]]] \
faff04c3 70 "" ""
c95c9198 71
72
f82ef354 73# All done.
74dg-finish