]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/boards/local-remote-host-notty.exp
GDB copyright headers update after running GDB's copyright.py script.
[thirdparty/binutils-gdb.git] / gdb / testsuite / boards / local-remote-host-notty.exp
CommitLineData
618f726f 1# Copyright 2012-2016 Free Software Foundation, Inc.
5d206025
YQ
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 this program. If not, see <http://www.gnu.org/licenses/>.
15
16# This file is a dejagnu "board file" and is used to run the testsuite
17# against local host, in remote host mode.
18#
19# To use this file:
5d206025
YQ
20# bash$ cd ${build_dir}/gdb
21# bash$ make check RUNTESTFLAGS="--host_board=local-remote-host"
22
23global GDB
24set GDB [file join [pwd] "../gdb"]
25
26set_board_info hostname 127.0.0.1
27
28set_board_info username $env(USER)
29
30# The ssh key should be correctly set up that you ssh to 127.0.0.1
31# without having to type password.
32set_board_info rsh_prog /usr/bin/ssh
33set_board_info rcp_prog /usr/bin/scp
34set_board_info file_transfer "rsh"
35
f23fcd46
YQ
36proc ${board}_file { dest op args } {
37 if { $op == "delete" } {
38 return 0
39 }
40 return [eval [list standard_file $dest $op] $args]
41}
42
5d206025
YQ
43proc ${board}_download { board src dest } {
44
45 # If file name is a relative, convert it to absolute, otherwise file can't
46 # be found on host, because the current directory usually is /home/$USER.
47 # This also bypasses the real download to the host.
48 if { [file pathtype $src] == "relative" } {
49 return [file join [pwd] $src]
50 } else {
51 return $src
52 }
53}