| 1 |
# Copyright (C) 2017-2025 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 scanltrans.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 scansarif.exp |
| 27 |
load_gcc_lib scantree.exp |
| 28 |
load_gcc_lib scanipa.exp |
| 29 |
load_gcc_lib torture-options.exp |
| 30 |
load_gcc_lib timeout-dg.exp |
| 31 |
load_gcc_lib fortran-modules.exp |
| 32 |
load_gcc_lib dg-test-cleanup.exp |
| 33 |
load_gcc_lib gcc-dg.exp |
| 34 |
|
| 35 |
# Utility routines. |
| 36 |
|
| 37 |
# |
| 38 |
# libphobos_load -- wrapper around default libphobos_load to handle tests that |
| 39 |
# require program arguments passed to them. |
| 40 |
# |
| 41 |
|
| 42 |
if { [info procs libphobos_load] != [list] \ |
| 43 |
&& [info procs prev_libphobos_load] == [list] } { |
| 44 |
rename libphobos_load prev_libphobos_load |
| 45 |
|
| 46 |
proc libphobos_load { program args } { |
| 47 |
global libphobos_run_args |
| 48 |
if { $libphobos_run_args != "" } { |
| 49 |
set args [concat "{$libphobos_run_args}"] |
| 50 |
} |
| 51 |
set result [eval [list prev_libphobos_load $program] $args ] |
| 52 |
return $result |
| 53 |
} |
| 54 |
} |