From: Michael Jeanson Date: Tue, 28 May 2019 16:11:29 +0000 (-0400) Subject: tests: Add powerpc-linux-gnu debug-info artifacts X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=5d30f567f8b4447c17110f3684d55008b3a570e8 tests: Add powerpc-linux-gnu debug-info artifacts Signed-off-by: Michael Jeanson Change-Id: I2b470db8427e20685a744edd6c9cec29fc70c54d Reviewed-on: https://review.lttng.org/c/babeltrace/+/1347 Tested-by: jenkins Reviewed-by: Philippe Proulx Reviewed-by: Francis Deslauriers --- diff --git a/.gitignore b/.gitignore index ab2cd7f8..e76838a0 100644 --- a/.gitignore +++ b/.gitignore @@ -34,9 +34,11 @@ /tests/plugins/test_utils_muxer_complete /tests/plugins/test_lttng_utils_debug_info /tests/plugins/test_bin_info_i386-linux-gnu +/tests/plugins/test_bin_info_powerpc-linux-gnu /tests/plugins/test_bin_info_x86_64-linux-gnu /tests/plugins/test_bin_info /tests/plugins/test_dwarf_i386-linux-gnu +/tests/plugins/test_dwarf_powerpc-linux-gnu /tests/plugins/test_dwarf_x86_64-linux-gnu /tests/plugins/test_dwarf /tests/plugins/ctf/test_ctf_plugin diff --git a/configure.ac b/configure.ac index 032224f1..1d775386 100644 --- a/configure.ac +++ b/configure.ac @@ -806,8 +806,10 @@ AC_CONFIG_FILES([tests/plugins/ctf/test_ctf_plugin], [chmod +x tests/plugins/ctf AC_CONFIG_FILES([tests/plugins/test_utils_muxer_complete], [chmod +x tests/plugins/test_utils_muxer_complete]) AC_CONFIG_FILES([tests/plugins/test_lttng_utils_debug_info], [chmod +x tests/plugins/test_lttng_utils_debug_info]) AC_CONFIG_FILES([tests/plugins/test_dwarf_i386-linux-gnu], [chmod +x tests/plugins/test_dwarf_i386-linux-gnu]) +AC_CONFIG_FILES([tests/plugins/test_dwarf_powerpc-linux-gnu], [chmod +x tests/plugins/test_dwarf_powerpc-linux-gnu]) AC_CONFIG_FILES([tests/plugins/test_dwarf_x86_64-linux-gnu], [chmod +x tests/plugins/test_dwarf_x86_64-linux-gnu]) AC_CONFIG_FILES([tests/plugins/test_bin_info_i386-linux-gnu], [chmod +x tests/plugins/test_bin_info_i386-linux-gnu]) +AC_CONFIG_FILES([tests/plugins/test_bin_info_powerpc-linux-gnu], [chmod +x tests/plugins/test_bin_info_powerpc-linux-gnu]) AC_CONFIG_FILES([tests/plugins/test_bin_info_x86_64-linux-gnu], [chmod +x tests/plugins/test_bin_info_x86_64-linux-gnu]) AS_IF([test "x$enable_python_bindings" = xyes], diff --git a/tests/Makefile.am b/tests/Makefile.am index bd15c89f..52df1ed0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -54,8 +54,10 @@ endif if ENABLE_DEBUG_INFO TESTS_PLUGINS += \ plugins/test_dwarf_i386-linux-gnu \ + plugins/test_dwarf_powerpc-linux-gnu \ plugins/test_dwarf_x86_64-linux-gnu \ plugins/test_bin_info_i386-linux-gnu \ + plugins/test_bin_info_powerpc-linux-gnu \ plugins/test_bin_info_x86_64-linux-gnu endif diff --git a/tests/debug-info-data/powerpc-linux-gnu/build_id/.build-id/cd/d98cdd87f7fe64c13b6daad553987eafd40cbb.debug b/tests/debug-info-data/powerpc-linux-gnu/build_id/.build-id/cd/d98cdd87f7fe64c13b6daad553987eafd40cbb.debug new file mode 100755 index 00000000..6fa14992 Binary files /dev/null and b/tests/debug-info-data/powerpc-linux-gnu/build_id/.build-id/cd/d98cdd87f7fe64c13b6daad553987eafd40cbb.debug differ diff --git a/tests/debug-info-data/powerpc-linux-gnu/build_id/libhello_so b/tests/debug-info-data/powerpc-linux-gnu/build_id/libhello_so new file mode 100755 index 00000000..49c62499 Binary files /dev/null and b/tests/debug-info-data/powerpc-linux-gnu/build_id/libhello_so differ diff --git a/tests/debug-info-data/powerpc-linux-gnu/debug_link/libhello_so b/tests/debug-info-data/powerpc-linux-gnu/debug_link/libhello_so new file mode 100755 index 00000000..23efdc8b Binary files /dev/null and b/tests/debug-info-data/powerpc-linux-gnu/debug_link/libhello_so differ diff --git a/tests/debug-info-data/powerpc-linux-gnu/debug_link/libhello_so.debug b/tests/debug-info-data/powerpc-linux-gnu/debug_link/libhello_so.debug new file mode 100755 index 00000000..a95eed28 Binary files /dev/null and b/tests/debug-info-data/powerpc-linux-gnu/debug_link/libhello_so.debug differ diff --git a/tests/debug-info-data/powerpc-linux-gnu/dwarf_full/libhello_so b/tests/debug-info-data/powerpc-linux-gnu/dwarf_full/libhello_so new file mode 100755 index 00000000..ef39d51e Binary files /dev/null and b/tests/debug-info-data/powerpc-linux-gnu/dwarf_full/libhello_so differ diff --git a/tests/debug-info-data/powerpc-linux-gnu/elf_only/libhello_so b/tests/debug-info-data/powerpc-linux-gnu/elf_only/libhello_so new file mode 100755 index 00000000..d1e7322b Binary files /dev/null and b/tests/debug-info-data/powerpc-linux-gnu/elf_only/libhello_so differ diff --git a/tests/plugins/test_bin_info_powerpc-linux-gnu.in b/tests/plugins/test_bin_info_powerpc-linux-gnu.in new file mode 100644 index 00000000..d0948aa6 --- /dev/null +++ b/tests/plugins/test_bin_info_powerpc-linux-gnu.in @@ -0,0 +1,36 @@ +#!/bin/bash +# +# Copyright (C) 2015 Antoine Busque +# Copyright (C) 2019 Michael Jeanson +# +# 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; only version 2 +# of the License. +# +# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# + +NO_SH_TAP=1 +. "@abs_top_builddir@/tests/utils/common.sh" + +curdir="$(cd -P "$(dirname "$0")" >/dev/null && pwd)" + +debug_info_data="${BT_SRC_PATH}/tests/debug-info-data/powerpc-linux-gnu" + +"${curdir}/test_bin_info" \ + --foo-addr=0x23bc \ + --printf-offset=0x114 \ + --printf-lineno=36 \ + --tp-offset=0x28 \ + --tp-lineno=35 \ + --debug-link-crc=0xd7b98958 \ + --debug-info-dir "$debug_info_data" \ + --build-id cdd98cdd87f7fe64c13b6daad553987eafd40cbb diff --git a/tests/plugins/test_dwarf_powerpc-linux-gnu.in b/tests/plugins/test_dwarf_powerpc-linux-gnu.in new file mode 100644 index 00000000..1a7b7750 --- /dev/null +++ b/tests/plugins/test_dwarf_powerpc-linux-gnu.in @@ -0,0 +1,28 @@ +#!/bin/bash +# +# Copyright (C) 2015 Antoine Busque +# Copyright (C) 2019 Michael Jeanson +# +# 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; only version 2 +# of the License. +# +# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# + +NO_SH_TAP=1 +. "@abs_top_builddir@/tests/utils/common.sh" + +curdir="$(cd -P "$(dirname "$0")" >/dev/null && pwd)" + +debug_info_data="${BT_SRC_PATH}/tests/debug-info-data/powerpc-linux-gnu" + +"${curdir}/test_dwarf" "$debug_info_data"