1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/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 --quiet -B --library ${top_builddir} \
-x $quitcmd $debugged_script
$SH ${top_builddir}/bashdb --quiet --library ${top_builddir} --basename \
-x $quitcmd $debugged_script
$SH ${top_builddir}/bashdb -B -q -L ${top_builddir} -x $contcmd --command 'builtin echo test1a'
$SH ${top_builddir}/bashdb --basename --badopt -q -L ${top_builddir} \
-x $contcmd --command 'echo test2a'
|