1# Copyright (C) 2000-2015 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 3 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 GCC; see the file COPYING3. If not see 15# <http://www.gnu.org/licenses/>. 16 17# G++ testsuite that uses the `dg.exp' driver. 18 19# Load support procs. 20load_lib g++-dg.exp 21load_lib mpx-dg.exp 22 23# If a testcase doesn't have special options, use these. 24global DEFAULT_CXXFLAGS 25if ![info exists DEFAULT_CXXFLAGS] then { 26 set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long" 27} 28 29# Initialize `dg'. 30dg-init 31 32# Gather a list of all tests, with the exception of those in directories 33# that are handled specially. 34set tests [lsort [find $srcdir/$subdir *.C]] 35set tests [prune $tests $srcdir/$subdir/bprob/*] 36set tests [prune $tests $srcdir/$subdir/charset/*] 37set tests [prune $tests $srcdir/$subdir/cilk-plus/AN/*] 38set tests [prune $tests $srcdir/$subdir/compat/*] 39set tests [prune $tests $srcdir/$subdir/debug/*] 40set tests [prune $tests $srcdir/$subdir/dfp/*] 41set tests [prune $tests $srcdir/$subdir/gcov/*] 42set tests [prune $tests $srcdir/$subdir/lto/*] 43set tests [prune $tests $srcdir/$subdir/pch/*] 44set tests [prune $tests $srcdir/$subdir/plugin/*] 45set tests [prune $tests $srcdir/$subdir/special/*] 46set tests [prune $tests $srcdir/$subdir/tls/*] 47set tests [prune $tests $srcdir/$subdir/vect/*] 48set tests [prune $tests $srcdir/$subdir/gomp/*] 49set tests [prune $tests $srcdir/$subdir/tree-prof/*] 50set tests [prune $tests $srcdir/$subdir/torture/*] 51set tests [prune $tests $srcdir/$subdir/graphite/*] 52set tests [prune $tests $srcdir/$subdir/tm/*] 53set tests [prune $tests $srcdir/$subdir/cilk-plus/*] 54set tests [prune $tests $srcdir/$subdir/guality/*] 55set tests [prune $tests $srcdir/$subdir/simulate-thread/*] 56set tests [prune $tests $srcdir/$subdir/asan/*] 57set tests [prune $tests $srcdir/$subdir/ubsan/*] 58set tests [prune $tests $srcdir/$subdir/tsan/*] 59 60# Main loop. 61g++-dg-runtest $tests "" $DEFAULT_CXXFLAGS 62 63# C/C++ common tests. 64g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/*.\[cSi\]]] \ 65 "" "" 66 67g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cpp/*.\[cS\]]] \ 68 "" "" 69 70 71# All done. 72dg-finish 73