]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gm2/projects/pim/run/pass/random/projects-pim-run-pass-random.exp
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gm2 / projects / pim / run / pass / random / projects-pim-run-pass-random.exp
1 # Expect driver script for GCC Regression Tests
2 # Copyright (C) 2022-2024 Free Software Foundation, Inc.
3
4 # This program 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.
8 #
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.
13 #
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/>.
17
18 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
19 # for GNU Modula-2.
20
21 if $tracelevel then {
22 strace $tracelevel
23 }
24
25 # load support procs
26 load_lib gm2-torture.exp
27
28 gm2_init_pim "${srcdir}/${subdir}" -g
29 gm2_link_obj "WriteMap.o AdvMap.o BoxMap.o Chance.o Geometry.o MakeBoxes.o MapOptions.o Options.o RoomMap.o StoreCoords.o"
30
31 # If we want these to be re-built for each torture option we need some different
32 # logic.
33 gm2_target_compile $srcdir/$subdir/AdvMap.mod AdvMap.o object "-g -I$srcdir/$subdir/"
34 gm2_target_compile $srcdir/$subdir/BoxMap.mod BoxMap.o object "-g -I$srcdir/$subdir/"
35 gm2_target_compile $srcdir/$subdir/Chance.mod Chance.o object "-g -I$srcdir/$subdir/"
36 gm2_target_compile $srcdir/$subdir/Geometry.mod Geometry.o object "-g -I$srcdir/$subdir/"
37 gm2_target_compile $srcdir/$subdir/MakeBoxes.mod MakeBoxes.o object "-g -I$srcdir/$subdir/"
38 gm2_target_compile $srcdir/$subdir/MapOptions.mod MapOptions.o object "-g -I$srcdir/$subdir/"
39 gm2_target_compile $srcdir/$subdir/Options.mod Options.o object "-g -I$srcdir/$subdir/"
40 gm2_target_compile $srcdir/$subdir/RoomMap.mod RoomMap.o object "-g -I$srcdir/$subdir/"
41 gm2_target_compile $srcdir/$subdir/StoreCoords.mod StoreCoords.o object "-g -I$srcdir/$subdir/"
42 gm2_target_compile $srcdir/$subdir/WriteMap.mod WriteMap.o object "-g -I$srcdir/$subdir/"
43
44 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/Map.mod]] {
45 # If we're only testing specific files and this isn't one of them, skip it.
46 if ![runtest_file_p $runtests $testcase] then {
47 continue
48 }
49 gm2-torture-execute $testcase "" "pass"
50 }