#!/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 --no-highlight -B -n -q -L ${top_srcdir} -x $contcmd -c 'echo test1'
# Note -B needs to come before -e
$SH ${top_builddir}/bashdb --no-highlight -B -n -e -q --library ${top_srcdir} -x $contcmd -c 'echo not run'
$SH ${top_builddir}/bashdb --no-highlight -B -n -A9 -q --library ${top_srcdir} -x $contcmd -c 'echo not run'
