1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!@SH_PROG@
# -*- shell-script -*-
test_preserve_set_opts()
{
set -u
old_opts=$-
# If running make distcheck we can't use top_builddir
# because some files aren't there but are in the install
# directory.
if [[ -f $top_builddir/dbg-opts.sh ]] ; then
libdir=${top_builddir}
else
libdir=@PKGDATADIR@
fi
if [[ -f $libdir/dbg-opts.sh ]] ; then
# Name we refer to ourselves by
typeset _Dbg_debugger_name='@PACKAGE@'
# The release name we are configured to run under.
typeset _Dbg_release='@PACKAGE_VERSION@'
. ${top_builddir}/bashdb-trace -L $libdir
assertEquals $old_opts $-
else
echo 'Skipping test - building outside of source complications'
fi
(. ${top_builddir}/bashdb-trace -L $libdir/dbg-opts.sh)
assertEquals $? 1
}
# load shunit2
prefix=@prefix@
top_builddir=@abs_top_builddir@
top_srcdir=@abs_top_srcdir@
. ${top_srcdir}/lib/sig.sh
. ${top_srcdir}/lib/help.sh
. ${top_srcdir}/command/tracefn.sh
srcdir=@srcdir@
srcdir=${srcdir}/
. ${srcdir}/shunit2
|