#!/bin/sh
# -*- shell-script -*-
#$Id: lopts.tests,v 1.4 2008/10/14 00:45:30 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}/test/example/dbg-test1.sh"

# $SH ${top_builddir}/bashdb --help -q -L ${top_builddir}
$SH ${top_builddir}/bashdb --no-highlight --no-init --quiet -B --library ${top_builddir} \
  -x $quitcmd $debugged_script
$SH ${top_builddir}/bashdb --no-highlight --nx --quiet --library ${top_builddir} --basename \
  -x $quitcmd $debugged_script
$SH ${top_builddir}/bashdb -B -q -L ${top_builddir} --no-highlight --nx -x $contcmd --command 'builtin echo test1a'
$SH ${top_builddir}/bashdb --basename --badopt -q -L ${top_builddir} \
  -x $contcmd --command 'echo test2a'
