| 1 | #!/bin/bash |
| 2 | # |
| 3 | # SPDX-License-Identifier: GPL-2.0-only |
| 4 | # |
| 5 | # Copyright (C) 2015 Antoine Busque <abusque@efficios.com> |
| 6 | # Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com> |
| 7 | # |
| 8 | |
| 9 | if [ -n "${BT_TESTS_SRCDIR:-}" ]; then |
| 10 | UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh" |
| 11 | else |
| 12 | UTILSSH="$(dirname "$0")/../../utils/utils.sh" |
| 13 | fi |
| 14 | |
| 15 | # shellcheck source=../../utils/utils.sh |
| 16 | source "$UTILSSH" |
| 17 | |
| 18 | this_dir_relative="plugins/flt.lttng-utils.debug-info" |
| 19 | this_dir_build="$BT_TESTS_BUILDDIR/$this_dir_relative" |
| 20 | debug_info_data="$BT_TESTS_DATADIR/$this_dir_relative/powerpc-linux-gnu" |
| 21 | |
| 22 | "$this_dir_build/test_dwarf" \ |
| 23 | "$debug_info_data" |