]>
Commit | Line | Data |
---|---|---|
a945c346 | 1 | # Copyright (C) 2008-2024 Free Software Foundation, Inc. |
1eee94d3 GM |
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 | # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk) | |
18 | # for GNU Modula-2. | |
19 | ||
20 | if $tracelevel then { | |
21 | strace $tracelevel | |
22 | } | |
23 | ||
24 | # load support procs | |
25 | load_lib gm2-torture.exp | |
918a691a | 26 | load_lib timeout-dg.exp |
1eee94d3 | 27 | |
1eee94d3 GM |
28 | gm2_init_iso "${srcdir}/gm2/iso/run/pass" -fsoft-check-all |
29 | gm2_link_obj fileio.o | |
30 | ||
918a691a GM |
31 | # We should be able to compile, link or run in 60 seconds. |
32 | gm2_push_timeout 60 | |
33 | ||
1eee94d3 GM |
34 | foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] { |
35 | # If we're only testing specific files and this isn't one of them, skip it. | |
36 | if ![runtest_file_p $runtests $testcase] then { | |
37 | continue | |
38 | } | |
39 | ||
40 | if { $testcase != "$srcdir/$subdir/fileio.mod" } { | |
41 | gm2_target_compile $srcdir/$subdir/fileio.mod fileio.o object "-g" | |
42 | gm2-torture-execute $testcase "" "pass" | |
43 | } | |
44 | } | |
918a691a GM |
45 | |
46 | gm2_pop_timeout |