This commit was manufactured by cvs2svn to create branch 'binutils-
[external/binutils.git] / binutils / testsuite / binutils-all / elfedit.exp
1 #   Copyright 2010, 2011
2 #   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 this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17
18 # Exclude non-ELF targets.
19 if ![is_elf_format] {
20     verbose "$ELFEDIT is only intended for ELF targets" 2
21     return
22 }
23
24 if ![is_remote host] {
25     set tempfile tmpdir/bintest.o
26     set copyfile tmpdir/bintest
27 } else {
28     set tempfile [remote_download host tmpdir/bintest.o]
29     set copyfile bintest
30 }
31
32 run_dump_test "elfedit-1"
33 run_dump_test "elfedit-2"
34 run_dump_test "elfedit-3"
35 run_dump_test "elfedit-4"