Debian Codegraph @

src/testsuite/lshd-no-auth-test

raw
1 #! /bin/sh
2
3 echo lshd, no-auth-test
4
5 if [ -z "$srcdir" ] ; then
6 srcdir=`pwd`
7 fi
8
9 . $srcdir/functions.sh
10
11 set +e
12
13 LSHD_FLAGS="$LSHD_FLAGS --no-password --no-publickey --no-srp"
14
15 HOME="$TEST_HOME" ../lshd -h $HOSTKEY \
16 -p $PORT --interface=$INTERFACE $LSHD_FLAGS \
17 --pid-file $PIDFILE --daemon --no-syslog "$@"
18 excode=$?
19
20 # Failed, but without a signal?
21
22 if [ "$excode" -ne 0 -a "$excode" -lt 128 ]; then
23 test_success
24 fi
25
26 test_done