]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Add run-backtrace-core-x32.sh
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 25 Mar 2015 14:22:43 +0000 (07:22 -0700)
committerMark Wielaard <mjw@redhat.com>
Wed, 1 Apr 2015 18:54:36 +0000 (20:54 +0200)
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
tests/ChangeLog
tests/Makefile.am
tests/backtrace.x32.core.bz2 [new file with mode: 0644]
tests/backtrace.x32.exec.bz2 [new file with mode: 0644]
tests/run-backtrace-core-x32.sh [new file with mode: 0755]

index 4ead80fe58bb45bcaa408aa05686c893de348e00..712dea2c8e51efa224b1840ff16e9196045b2fb9 100644 (file)
@@ -1,3 +1,12 @@
+2015-04-01  H.J. Lu  <hjl.tools@gmail.com>
+
+       * Makefile.am (TESTS): Add run-backtrace-core-x32.sh.
+       (EXTRA_DIST): Likewise. Add backtrace.x32.core.bz2.
+       Add backtrace.x32.exec.bz2.
+       * backtrace.x32.core.bz2 : New file.
+       * backtrace.x32.exec.bz2: Likewise.
+       * run-backtrace-core-x32.sh: Likewise.
+
 2015-04-01  H.J. Lu  <hjl.tools@gmail.com>
 
        * run-addrcfi.sh: Add a test for testfile-x32.
index cc1d2540718744544ad6a6c4b13ffb2e29b0c9d4..20772d74604a09d213a8130f17f260e18a10c626 100644 (file)
@@ -107,6 +107,7 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \
        run-backtrace-native.sh run-backtrace-data.sh run-backtrace-dwarf.sh \
        run-backtrace-native-biarch.sh run-backtrace-native-core.sh \
        run-backtrace-native-core-biarch.sh run-backtrace-core-x86_64.sh \
+       run-backtrace-core-x32.sh \
        run-backtrace-core-i386.sh run-backtrace-core-ppc.sh \
        run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
        run-backtrace-core-aarch64.sh \
@@ -265,6 +266,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
             run-backtrace-native.sh run-backtrace-native-biarch.sh \
             run-backtrace-native-core.sh run-backtrace-native-core-biarch.sh \
             run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
+            run-backtrace-core-x32.sh \
             backtrace-subr.sh backtrace.i386.core.bz2 backtrace.i386.exec.bz2 \
             backtrace.x86_64.core.bz2 backtrace.x86_64.exec.bz2 \
             backtrace.ppc.core.bz2 backtrace.ppc.exec.bz2 \
@@ -287,7 +289,8 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
             run-readelf-A.sh testfileppc32attrs.o.bz2 \
             testfile-debug-types.bz2 \
             run-getsrc-die.sh run-strptr.sh \
-            testfile-x32-core.bz2 testfile-x32.bz2
+            testfile-x32-core.bz2 testfile-x32.bz2 \
+            backtrace.x32.core.bz2 backtrace.x32.exec.bz2
 
 if USE_VALGRIND
 valgrind_cmd='valgrind -q --error-exitcode=1 --run-libc-freeres=no'
diff --git a/tests/backtrace.x32.core.bz2 b/tests/backtrace.x32.core.bz2
new file mode 100644 (file)
index 0000000..c06d70a
Binary files /dev/null and b/tests/backtrace.x32.core.bz2 differ
diff --git a/tests/backtrace.x32.exec.bz2 b/tests/backtrace.x32.exec.bz2
new file mode 100644 (file)
index 0000000..e89401b
Binary files /dev/null and b/tests/backtrace.x32.exec.bz2 differ
diff --git a/tests/run-backtrace-core-x32.sh b/tests/run-backtrace-core-x32.sh
new file mode 100755 (executable)
index 0000000..2ad76bc
--- /dev/null
@@ -0,0 +1,23 @@
+#! /bin/bash
+# Copyright (C) H.J. Lu <hjl.tools@gmail.com>, 2015.
+# This file is part of elfutils.
+#
+# This file 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.
+#
+# 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 this program.  If not, see <http://www.gnu.org/licenses/>.
+
+. $srcdir/backtrace-subr.sh
+
+# backtrace.x32.exec is created by
+# gcc -mx32 -static -o backtrace.x32.exec backtrace_child-backtrace-child.o -lpthread
+# backtrace.x32.core was generated by running "backtrace.x32.exec --gencore"
+check_core x32