From: H.J. Lu Date: Wed, 25 Mar 2015 14:22:43 +0000 (-0700) Subject: tests: Add run-backtrace-core-x32.sh X-Git-Tag: elfutils-0.162~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6de72761723d624bcd148facc811bc774a265f0c;p=thirdparty%2Felfutils.git tests: Add run-backtrace-core-x32.sh Signed-off-by: H.J. Lu --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 4ead80fe5..712dea2c8 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,12 @@ +2015-04-01 H.J. Lu + + * 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 * run-addrcfi.sh: Add a test for testfile-x32. diff --git a/tests/Makefile.am b/tests/Makefile.am index cc1d25407..20772d746 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 000000000..c06d70a8d 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 index 000000000..e89401b6c 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 index 000000000..2ad76bcf1 --- /dev/null +++ b/tests/run-backtrace-core-x32.sh @@ -0,0 +1,23 @@ +#! /bin/bash +# Copyright (C) H.J. Lu , 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 . + +. $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