]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/testsuite/lib/libphobos-dg.exp
9497c635fd93840badc5f08e0dcccd23cb5893c3
[thirdparty/gcc.git] / libphobos / testsuite / lib / libphobos-dg.exp
1 # Copyright (C) 2017-2020 Free Software Foundation, Inc.
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 load_gcc_lib multiline.exp
18 load_gcc_lib prune.exp
19 load_gcc_lib scandump.exp
20 load_gcc_lib scanltranstree.exp
21 load_gcc_lib scanwpaipa.exp
22 load_gcc_lib file-format.exp
23 load_gcc_lib scanasm.exp
24 load_gcc_lib scanlang.exp
25 load_gcc_lib scanrtl.exp
26 load_gcc_lib scantree.exp
27 load_gcc_lib scanipa.exp
28 load_gcc_lib torture-options.exp
29 load_gcc_lib timeout-dg.exp
30 load_gcc_lib fortran-modules.exp
31 load_gcc_lib gcc-dg.exp
32
33 # Utility routines.
34
35 #
36 # libphobos_load -- wrapper around default libphobos_load to handle tests that
37 # require program arguments passed to them.
38 #
39
40 if { [info procs libphobos_load] != [list] \
41 && [info procs prev_libphobos_load] == [list] } {
42 rename libphobos_load prev_libphobos_load
43
44 proc libphobos_load { program args } {
45 global libphobos_run_args
46 if { $libphobos_run_args != "" } {
47 set args [concat "{$libphobos_run_args}"]
48 }
49 set result [eval [list prev_libphobos_load $program] $args ]
50 return $result
51 }
52 }