X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcli%2Ftest_debug_info.in;h=e0c9204c223e620ce74006f6523112beba2e1ee6;hb=03f007c88338aad6a1d1f30a757401e0093fa23f;hp=0d34e14d2001932e961732be3bdf340c00573c8c;hpb=2b186c3e0b5b7970aa1d0bad341facc4a8580c19;p=babeltrace.git diff --git a/tests/cli/test_debug_info.in b/tests/cli/test_debug_info.in index 0d34e14d..e0c9204c 100644 --- a/tests/cli/test_debug_info.in +++ b/tests/cli/test_debug_info.in @@ -15,20 +15,14 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -CURDIR=$(dirname $0) -TESTDIR=$CURDIR/.. +. "@abs_top_builddir@/tests/utils/common.sh" -BABELTRACE_BIN=@abs_top_builddir@/cli/babeltrace - -BT_TREE_PATH=@abs_top_srcdir@/ -DEBUG_INFO_TRACE=${BT_TREE_PATH}/tests/debug-info-data/trace/ - -source $TESTDIR/utils/tap/tap.sh +DEBUG_INFO_TRACE="${BT_SRC_PATH}/tests/debug-info-data/trace/" NUM_TESTS=1 plan_tests $NUM_TESTS -$BABELTRACE_BIN --debug-info-target-prefix ${BT_TREE_PATH} ${DEBUG_INFO_TRACE} 2>/dev/null \ +"${BT_BIN}" --debug-info-target-prefix "${BT_SRC_PATH}" "${DEBUG_INFO_TRACE}" 2>/dev/null \ | @GREP@ 'debug_info = { bin = "libhello_so+0x15a6", func = "bar+0xa9", src = "libhello.c:13" }' >/dev/null ok $? "Extract debug information"