"Fossies" - the Fresh Open Source Software Archive

Member "bashdb-5.0-1.1.0/test/unit/test-bashdb-trace.sh.in" (4 Sep 2019, 1260 Bytes) of package /linux/privat/bashdb-5.0-1.1.0.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "test-bashdb-trace.sh.in": 4.4-1.0.1_vs_5.0-1.1.0.

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