Merged revisions 143552,143554,143557,143560,143562,143564-143567,143570-143573,14357...
[official-gcc.git] / gcc / testsuite / gfortran.fortran-torture / compile / compile.exp
blob5c56ec3f52981c91821cf25983acc88633ac0548
1 # Expect driver script for GCC Regression Tests
2 # Copyright (C) 2003, 2007, 2008 Free Software Foundation
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with GCC; see the file COPYING3. If not see
16 # <http://www.gnu.org/licenses/>.
18 # These tests come from many different contributors.
20 if $tracelevel then {
21 strace $tracelevel
24 # load support procs
25 load_lib fortran-torture.exp
26 load_lib torture-options.exp
28 torture-init
29 set-torture-options [get-fortran-torture-options]
31 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.f]] {
32 # If we're only testing specific files and this isn't one of them, skip it.
33 if ![runtest_file_p $runtests $testcase] then {
34 continue
36 fortran-torture $testcase
39 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.F]] {
40 if ![runtest_file_p $runtests $testcase] then {
41 continue
43 fortran-torture $testcase
46 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.f90]] {
47 if ![runtest_file_p $runtests $testcase] then {
48 continue
50 fortran-torture $testcase
53 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.F90]] {
54 if ![runtest_file_p $runtests $testcase] then {
55 continue
57 fortran-torture $testcase
60 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.f95]] {
61 if ![runtest_file_p $runtests $testcase] then {
62 continue
64 fortran-torture $testcase
67 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.F95]] {
68 if ![runtest_file_p $runtests $testcase] then {
69 continue
71 fortran-torture $testcase
74 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.f03]] {
75 if ![runtest_file_p $runtests $testcase] then {
76 continue
78 fortran-torture $testcase
81 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.F03]] {
82 if ![runtest_file_p $runtests $testcase] then {
83 continue
85 fortran-torture $testcase
88 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.f08]] {
89 if ![runtest_file_p $runtests $testcase] then {
90 continue
92 fortran-torture $testcase
95 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.F08]] {
96 if ![runtest_file_p $runtests $testcase] then {
97 continue
99 fortran-torture $testcase
102 torture-finish