diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 11 | ||||
| -rw-r--r-- | tests/Makefile.am | 7 | ||||
| -rwxr-xr-x | tests/run-disasm-x86-64.sh | 36 | ||||
| -rwxr-xr-x | tests/run-disasm-x86.sh (renamed from tests/run-disasm.sh) | 0 | ||||
| -rw-r--r-- | tests/testfile44.S.bz2 | bin | 16107 -> 16435 bytes | |||
| -rw-r--r-- | tests/testfile44.expect.bz2 | bin | 53649 -> 54232 bytes | |||
| -rw-r--r-- | tests/testfile45.S.bz2 | bin | 0 -> 22669 bytes | |||
| -rw-r--r-- | tests/testfile45.expect.bz2 | bin | 0 -> 74090 bytes |
8 files changed, 51 insertions, 3 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 7ad6942a..4a76f034 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,14 @@ +2008-01-08 Ulrich Drepper <[email protected]> + + * Makefile.am (TESTS): Add run-disasm-x86-64.sh. + (EXTRA): Add testfile45.S.bz2, testfile45.expect.bz2, + run-disasm-x86-64.sh. + * run-disasm-x86-64.sh: New file. + * testfile45.S.bz2: New file. + * testfile45.expect.bz2: New file. + * testfile44.S.bz2: New tests. + * testfile44.expect.bz2: Adjust. + 2008-01-04 Ulrich Drepper <[email protected]> * testfile44.S.bz2: New tests. diff --git a/tests/Makefile.am b/tests/Makefile.am index 25631e3c..42f71ce4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to create Makefile.in ## -## Copyright (C) 1996-2002, 2003, 2004, 2005, 2006, 2007 Red Hat, Inc. +## Copyright (C) 1996-2002, 2003, 2004, 2005, 2006, 2007, 2008 Red Hat, Inc. ## This file is part of Red Hat elfutils. ## ## Red Hat elfutils is free software; you can redistribute it and/or modify @@ -84,7 +84,7 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \ dwfl-bug-addr-overflow run-addrname-test.sh \ dwfl-bug-fd-leak dwfl-bug-report \ run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \ - run-disasm.sh + run-disasm-x86.sh run-disasm-x86-64.sh # run-show-ciefde.sh if !STANDALONE @@ -135,7 +135,8 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ testfile37.bz2 testfile37.debug.bz2 \ testfile38.bz2 testfile39.bz2 testfile40.bz2 testfile40.debug.bz2 \ testfile41.bz2 testfile42.bz2 testfile43.bz2 \ - testfile44.S.bz2 testfile44.expect.bz2 run-disasm.sh + testfile44.S.bz2 testfile44.expect.bz2 run-disasm-x86.sh \ + testfile45.S.bz2 testfile45.expect.bz2 run-disasm-x86-64.sh installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir) \ bindir=$(DESTDIR)$(bindir) \ diff --git a/tests/run-disasm-x86-64.sh b/tests/run-disasm-x86-64.sh new file mode 100755 index 00000000..2d9ed631 --- /dev/null +++ b/tests/run-disasm-x86-64.sh @@ -0,0 +1,36 @@ +#! /bin/sh +# Copyright (C) 2007, 2008 Red Hat, Inc. +# This file is part of Red Hat elfutils. +# +# Red Hat elfutils 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; version 2 of the License. +# +# Red Hat elfutils 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 Red Hat elfutils; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. +# +# Red Hat elfutils is an included package of the Open Invention Network. +# An included package of the Open Invention Network is a package for which +# Open Invention Network licensees cross-license their patents. No patent +# license is granted, either expressly or impliedly, by designation as an +# included package. Should you wish to participate in the Open Invention +# Network licensing program, please visit www.openinventionnetwork.com +# <http://www.openinventionnetwork.com>. + +. $srcdir/test-subr.sh + +# Run x86-64 test. +case "$(arch)" in + x86_64) + tempfiles testfile45.o + testfiles testfile45.S testfile45.expect + gcc -m64 -c -o testfile45.o testfile45.S + testrun_compare ../src/objdump -d testfile45.o < testfile45.expect + ;; +esac diff --git a/tests/run-disasm.sh b/tests/run-disasm-x86.sh index efbb81f8..efbb81f8 100755 --- a/tests/run-disasm.sh +++ b/tests/run-disasm-x86.sh diff --git a/tests/testfile44.S.bz2 b/tests/testfile44.S.bz2 Binary files differindex c3af5262..cbd0da3d 100644 --- a/tests/testfile44.S.bz2 +++ b/tests/testfile44.S.bz2 diff --git a/tests/testfile44.expect.bz2 b/tests/testfile44.expect.bz2 Binary files differindex c4a267e7..2347aea1 100644 --- a/tests/testfile44.expect.bz2 +++ b/tests/testfile44.expect.bz2 diff --git a/tests/testfile45.S.bz2 b/tests/testfile45.S.bz2 Binary files differnew file mode 100644 index 00000000..a2012edb --- /dev/null +++ b/tests/testfile45.S.bz2 diff --git a/tests/testfile45.expect.bz2 b/tests/testfile45.expect.bz2 Binary files differnew file mode 100644 index 00000000..ac814e31 --- /dev/null +++ b/tests/testfile45.expect.bz2 |
