File: test-run.sh.in

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 (28 lines) | stat: -rwxr-xr-x 536 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!@SH_PROG@
# -*- shell-script -*-

test_not_running()
{
    typeset -a errs=()
    _Dbg_errmsg() { errs+=$1; }
    typeset -i _Dbg_running=1
    _Dbg_running=1
    _Dbg_not_running
    assertFalse 'Should report running.' "$?"
    assertEquals  0 ${#errs[@]}
    _Dbg_running=0
    _Dbg_not_running
    assertTrue 'Should report not running.' "$?"
    assertEquals  1 ${#errs[@]}
}

top_srcdir=@top_srcdir@
top_srcdir=${top_srcdir%%/}/
. ${top_srcdir}/lib/run.sh

# load shunit2
srcdir=@srcdir@
srcdir=${srcdir}/
. ${srcdir}/shunit2