2 # Expect driver script
for GCC Regression Tests
3 # Copyright
(C
) 1993, 1997 Free Software Foundation
5 # This file is free software
; you can redistribute it and
/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation
; either version
2 of the License
, or
8 #
(at your option
) any later version.
10 # This
program is distributed in the hope that it will be useful
,
11 # but WITHOUT
ANY WARRANTY
; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License
for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this
program; if not
, write to the Free Software
17 # Foundation
, Inc.
, 59 Temple Place
- Suite
330, Boston
, MA
02111-1307, USA.
19 # Written by Jeffrey Wheat
(cassidy@cygnus.com
)
23 # These tests come from Torbjorn Granlund
's (tege@cygnus.com)
24 # C torture test suite, and other contributors.
32 load_lib c-torture.exp
35 # This loop will run c-torture on any *.c file found in this directory.
36 # If a *.c has a corresponding *.exp file, then the test is skipped as
37 # as the *.exp will drive the test itself. It is done this way so that
38 # generic tests do not need a separate .exp for it. Only the tests that
39 # require unique options need their own .exp file.
42 foreach testcase [glob -nocomplain $srcdir/$subdir/*.c] {
43 if [file exists [file rootname $testcase].exp] then {
44 verbose "INFO:\"[file rootname $testcase].exp\" exists, skipping test" 3
48 # If we're only testing specific files and this isn
't one of them, skip it.
49 if ![runtest_file_p $runtests $testcase] then {