File: sopts.tests

package info (click to toggle)
bashdb 4.0.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,820 kB
  • ctags: 942
  • sloc: sh: 10,581; lisp: 885; makefile: 449; ansic: 325
file content (18 lines) | stat: -rwxr-xr-x 733 bytes parent folder | download
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'