File: test-interrupt

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 (25 lines) | stat: -rwxr-xr-x 589 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
#!/bin/bash -f
# -*- shell-script -*-

[ -z "$builddir" ] && export builddir=$PWD

. ${builddir}/check-common.sh

[[ $host_os == cygwin ]] || [[ $host_os = darwin* ]] && exit 77

TEST_NAME=interrupt
TEST_FILE="$builddir/${TEST_NAME}.check"

if (( 3 == ${BASH_VERSINFO[0]} )) ; then
    test_script=${TEST_NAME}-3.tests
elif (( 4 == ${BASH_VERSINFO[0]} )) ; then
    test_script=${TEST_NAME}.tests
fi

(cd $srcdir && $SH ${TEST_NAME}.tests > $TEST_FILE 2>&1 < /dev/null)

check_output $TEST_FILE ${top_builddir}/test/data/${TEST_NAME}.right

rm -f $top_builddir/test/interrupt.tst

exit $?