Test debug-info
[babeltrace.git] / tests / cli / test_debug_info.in
1 #!/bin/bash
2 #
3 # Copyright (C) - 2017 Julien Desfossez <jdesfossez@efficios.com>
4 #
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License, version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 # more details.
13 #
14 # You should have received a copy of the GNU General Public License along with
15 # this program; if not, write to the Free Software Foundation, Inc., 51
16 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
18 CURDIR=$(dirname $0)
19 TESTDIR=$CURDIR/..
20
21 BABELTRACE_BIN=@abs_top_builddir@/cli/babeltrace
22
23 BT_TREE_PATH=@abs_top_srcdir@/
24 DEBUG_INFO_TRACE=${BT_TREE_PATH}/tests/debug-info-data/trace/
25
26 source $TESTDIR/utils/tap/tap.sh
27
28 NUM_TESTS=1
29
30 plan_tests $NUM_TESTS
31
32 $BABELTRACE_BIN --debug-info-target-prefix ${BT_TREE_PATH} ${DEBUG_INFO_TRACE} 2>/dev/null \
33 | @GREP@ 'debug_info = { bin = "libhello_so+0x15a6", func = "bar+0xa9", src = "libhello.c:13" }' >/dev/null
34 ok $? "Extract debug information"
This page took 0.030599 seconds and 4 git commands to generate.