annotate gcc/testsuite/gcc.c-torture/unsorted/unsorted.exp @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 #
kono
parents:
diff changeset
2 # Expect driver script for GCC Regression Tests
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
3 # Copyright (C) 1993-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
4 #
kono
parents:
diff changeset
5 # This file is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
6 # it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
7 # the Free Software Foundation; either version 3 of the License, or
kono
parents:
diff changeset
8 # (at your option) any later version.
kono
parents:
diff changeset
9 #
kono
parents:
diff changeset
10 # This program is distributed in the hope that it will be useful,
kono
parents:
diff changeset
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
13 # GNU General Public License for more details.
kono
parents:
diff changeset
14 #
kono
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
16 # along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
17 # <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
18 #
kono
parents:
diff changeset
19 # Written by Jeffrey Wheat (cassidy@cygnus.com)
kono
parents:
diff changeset
20 #
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 #
kono
parents:
diff changeset
23 # These tests come from Torbjorn Granlund's (tege@cygnus.com)
kono
parents:
diff changeset
24 # C torture test suite, and other contributors.
kono
parents:
diff changeset
25 #
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 if $tracelevel then {
kono
parents:
diff changeset
28 strace $tracelevel
kono
parents:
diff changeset
29 }
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 # load support procs
kono
parents:
diff changeset
32 load_lib c-torture.exp
kono
parents:
diff changeset
33 load_lib torture-options.exp
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 torture-init
kono
parents:
diff changeset
36 set-torture-options $C_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 #
kono
parents:
diff changeset
39 # This loop will run c-torture on any *.c file found in this directory.
kono
parents:
diff changeset
40 # If a *.c has a corresponding *.exp file, then the test is skipped as
kono
parents:
diff changeset
41 # as the *.exp will drive the test itself. It is done this way so that
kono
parents:
diff changeset
42 # generic tests do not need a separate .exp for it. Only the tests that
kono
parents:
diff changeset
43 # require unique options need their own .exp file.
kono
parents:
diff changeset
44 #
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
kono
parents:
diff changeset
47 if [file exists [file rootname $testcase].exp] then {
kono
parents:
diff changeset
48 verbose "INFO:\"[file rootname $testcase].exp\" exists, skipping test" 3
kono
parents:
diff changeset
49 continue
kono
parents:
diff changeset
50 }
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 # If we're only testing specific files and this isn't one of them, skip it.
kono
parents:
diff changeset
53 if ![runtest_file_p $runtests $testcase] then {
kono
parents:
diff changeset
54 continue
kono
parents:
diff changeset
55 }
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 c-torture $testcase
kono
parents:
diff changeset
58 }
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 torture-finish