summaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/elfedit.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-01-06 16:52:15 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-01-06 16:52:15 +0000
commit30fd33bb933183e837b6709e189f1122333b95e2 (patch)
tree49af8a2936554dece7892b1366450011e37651e8 /binutils/testsuite/binutils-all/elfedit.exp
parente3e535bc5863ec5a183bfaabcd5d1d36a129305a (diff)
downloadbinutils-gdb-30fd33bb933183e837b6709e189f1122333b95e2.tar.gz
Add elfedit
binutils/ 2010-01-06 H.J. Lu <hongjiu.lu@intel.com> PR binutils/11131 * Makefile.am (ELFEDIT_PROG): New. (bin_PROGRAMS): Add $(ELFEDIT_PROG). (CFILES): Add elfedit.c. (elfedit_DEPENDENCIES): New. (elfedit_SOURCES): Likewise. (elfedit_LDADD): Likewise. * Makefile.in: Regenerated. * elfedit.c: New. * doc/binutils.texi: Document elfedit. * doc/Makefile.am (man_MANS): Add elfedit.1. (elfedit.1): New. * doc/Makefile.in: Regenerated. binutils/testsuite/ 2010-01-06 H.J. Lu <hongjiu.lu@intel.com> PR binutils/11131 * binutils-all/elfedit-1.d: New. * binutils-all/elfedit.exp: Likewise. * config/default.exp (ELFEDIT): New. Set if it doesn't exist. (ELFEDITFLAGS): Likewise. * lib/utils-lib.exp (run_dump_test): Support elfedit.
Diffstat (limited to 'binutils/testsuite/binutils-all/elfedit.exp')
-rw-r--r--binutils/testsuite/binutils-all/elfedit.exp31
1 files changed, 31 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/elfedit.exp b/binutils/testsuite/binutils-all/elfedit.exp
new file mode 100644
index 00000000000..d43c31a476f
--- /dev/null
+++ b/binutils/testsuite/binutils-all/elfedit.exp
@@ -0,0 +1,31 @@
+# Copyright 2010 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Exclude non-ELF targets.
+if ![is_elf_format] {
+ verbose "$ELFEDIT is only intended for ELF targets" 2
+ return
+}
+
+if ![is_remote host] {
+ set tempfile tmpdir/bintest.o
+ set copyfile tmpdir/bintest
+} else {
+ set tempfile [remote_download host tmpdir/bintest.o]
+ set copyfile bintest
+}
+
+run_dump_test "elfedit-1"