tests: Add powerpc64le-linux-gnu debug-info artifacts
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 28 May 2019 18:15:44 +0000 (18:15 +0000)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 6 Jun 2019 19:04:56 +0000 (15:04 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Change-Id: Ic86e49344dccf3d547bc441c4a16a4dca8553e1f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1348
Tested-by: jenkins
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
.gitignore
configure.ac
tests/Makefile.am
tests/debug-info-data/powerpc64le-linux-gnu/build_id/.build-id/cd/d98cdd87f7fe64c13b6daad553987eafd40cbb.debug [new file with mode: 0755]
tests/debug-info-data/powerpc64le-linux-gnu/build_id/libhello_so [new file with mode: 0755]
tests/debug-info-data/powerpc64le-linux-gnu/debug_link/libhello_so [new file with mode: 0755]
tests/debug-info-data/powerpc64le-linux-gnu/debug_link/libhello_so.debug [new file with mode: 0755]
tests/debug-info-data/powerpc64le-linux-gnu/dwarf_full/libhello_so [new file with mode: 0755]
tests/debug-info-data/powerpc64le-linux-gnu/elf_only/libhello_so [new file with mode: 0755]
tests/plugins/test_bin_info_powerpc64le-linux-gnu.in [new file with mode: 0644]
tests/plugins/test_dwarf_powerpc64le-linux-gnu.in [new file with mode: 0644]

index e76838a045653c75ab9930fee1806c2d8522f3aa..ceaa6dfe8694b72591f4e11f269edfd5514a55d7 100644 (file)
 /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_powerpc64le-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_powerpc64le-linux-gnu
 /tests/plugins/test_dwarf_x86_64-linux-gnu
 /tests/plugins/test_dwarf
 /tests/plugins/ctf/test_ctf_plugin
index 1d77538684540dd2cb62ae69b3f46179ffd2578f..8f856e27a2cdfbdf8330680dcea5b32413be26e4 100644 (file)
@@ -807,9 +807,11 @@ AC_CONFIG_FILES([tests/plugins/test_utils_muxer_complete], [chmod +x tests/plugi
 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_powerpc64le-linux-gnu], [chmod +x tests/plugins/test_dwarf_powerpc64le-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_powerpc64le-linux-gnu], [chmod +x tests/plugins/test_bin_info_powerpc64le-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],
index 52df1ed04fd3279bf8d59debd03adf8d79d521ea..4a5ef55970d4ff2e6c81967702a23db05033451d 100644 (file)
@@ -55,9 +55,11 @@ if ENABLE_DEBUG_INFO
 TESTS_PLUGINS += \
        plugins/test_dwarf_i386-linux-gnu \
        plugins/test_dwarf_powerpc-linux-gnu \
+       plugins/test_dwarf_powerpc64le-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_powerpc64le-linux-gnu \
        plugins/test_bin_info_x86_64-linux-gnu
 endif
 
diff --git a/tests/debug-info-data/powerpc64le-linux-gnu/build_id/.build-id/cd/d98cdd87f7fe64c13b6daad553987eafd40cbb.debug b/tests/debug-info-data/powerpc64le-linux-gnu/build_id/.build-id/cd/d98cdd87f7fe64c13b6daad553987eafd40cbb.debug
new file mode 100755 (executable)
index 0000000..b419832
Binary files /dev/null and b/tests/debug-info-data/powerpc64le-linux-gnu/build_id/.build-id/cd/d98cdd87f7fe64c13b6daad553987eafd40cbb.debug differ
diff --git a/tests/debug-info-data/powerpc64le-linux-gnu/build_id/libhello_so b/tests/debug-info-data/powerpc64le-linux-gnu/build_id/libhello_so
new file mode 100755 (executable)
index 0000000..f740eb0
Binary files /dev/null and b/tests/debug-info-data/powerpc64le-linux-gnu/build_id/libhello_so differ
diff --git a/tests/debug-info-data/powerpc64le-linux-gnu/debug_link/libhello_so b/tests/debug-info-data/powerpc64le-linux-gnu/debug_link/libhello_so
new file mode 100755 (executable)
index 0000000..01e0c6b
Binary files /dev/null and b/tests/debug-info-data/powerpc64le-linux-gnu/debug_link/libhello_so differ
diff --git a/tests/debug-info-data/powerpc64le-linux-gnu/debug_link/libhello_so.debug b/tests/debug-info-data/powerpc64le-linux-gnu/debug_link/libhello_so.debug
new file mode 100755 (executable)
index 0000000..86364a3
Binary files /dev/null and b/tests/debug-info-data/powerpc64le-linux-gnu/debug_link/libhello_so.debug differ
diff --git a/tests/debug-info-data/powerpc64le-linux-gnu/dwarf_full/libhello_so b/tests/debug-info-data/powerpc64le-linux-gnu/dwarf_full/libhello_so
new file mode 100755 (executable)
index 0000000..3874f11
Binary files /dev/null and b/tests/debug-info-data/powerpc64le-linux-gnu/dwarf_full/libhello_so differ
diff --git a/tests/debug-info-data/powerpc64le-linux-gnu/elf_only/libhello_so b/tests/debug-info-data/powerpc64le-linux-gnu/elf_only/libhello_so
new file mode 100755 (executable)
index 0000000..067b472
Binary files /dev/null and b/tests/debug-info-data/powerpc64le-linux-gnu/elf_only/libhello_so differ
diff --git a/tests/plugins/test_bin_info_powerpc64le-linux-gnu.in b/tests/plugins/test_bin_info_powerpc64le-linux-gnu.in
new file mode 100644 (file)
index 0000000..5e81415
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/bash
+#
+# Copyright (C) 2015 Antoine Busque <abusque@efficios.com>
+# Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
+#
+# 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/powerpc64le-linux-gnu"
+
+"${curdir}/test_bin_info" \
+       --foo-addr=0x2e7c \
+       --printf-offset=0x190 \
+       --printf-lineno=36 \
+       --tp-offset=0x1c \
+       --tp-lineno=35 \
+       --debug-link-crc=0x9b8eb2ff \
+       --debug-info-dir "$debug_info_data" \
+       --build-id cdd98cdd87f7fe64c13b6daad553987eafd40cbb
diff --git a/tests/plugins/test_dwarf_powerpc64le-linux-gnu.in b/tests/plugins/test_dwarf_powerpc64le-linux-gnu.in
new file mode 100644 (file)
index 0000000..0a94ff0
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/bash
+#
+# Copyright (C) 2015 Antoine Busque <abusque@efficios.com>
+# Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
+#
+# 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/powerpc64le-linux-gnu"
+
+"${curdir}/test_dwarf" "$debug_info_data"
This page took 0.028434 seconds and 4 git commands to generate.