1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/bin/bash -f
# -*- shell-script -*-
#$Id: sopts.tests,v 1.3 2008/10/02 02:37:36 rockyb Exp $
[ -z "$srcdir" ] && export srcdir=$PWD
[ -z "$builddir" ] && export builddir=$PWD
[ -z "$top_builddir" ] && export top_builddir=$builddir/../../
. ${top_builddir}/test/integration/check-common.sh
quitcmd="${top_srcdir}/test/data/quit.cmd"
contcmd="${top_srcdir}/test/data/quit.cmd"
debugged_script="${top_srcdir}/example/dbg-test1.sh"
$SH ${top_builddir}/bashdb -B -q -L ${top_builddir} -x $contcmd -c 'echo test1'
# Note -B needs to come before -e
$SH ${top_builddir}/bashdb -B -e -q --library ${top_builddir} -x $contcmd -c 'echo not run'
$SH ${top_builddir}/bashdb -B -A9 -q --library ${top_builddir} -x $contcmd -c 'echo not run'
|