Commit 5aade899 authored by Niels Möller's avatar Niels Möller
Browse files

* src/testsuite/Makefile.am (TS_MORE_SH): Added lsh-cat-test.

* src/testsuite/functions.sh (exec_lsh): New function.

Rev: src/testsuite/Makefile.am:1.11
Rev: src/testsuite/functions.sh:1.4
Rev: src/testsuite/lsh-cat-test:1.1
parent 5e7421f3
......@@ -7,7 +7,7 @@ TS_SH = keygen-test
TS_SOME = $(TS_PROGS) $(TS_SH)
# Tests that require that lsh is set up for password-less login.
TS_MORE_SH = lsh-1-test lsh-2-test lsh-3-test tcpip-local-test tcpip-remote-test
TS_MORE_SH = lsh-1-test lsh-2-test lsh-3-test lsh-cat-test tcpip-local-test tcpip-remote-test
TS_MORE_PROGS =
TS_ALL = $(TS_PROGS) $(TS_SH) $(TS_MORE_PROGS) $(TS_MORE_SH)
......
......@@ -57,6 +57,11 @@ run_lsh () {
}
exec_lsh () {
../lsh $CLIENTFLAGS -nt --sloppy-host-authentication \
--capture-to /dev/null -z -p $PORT localhost "$@"
}
spawn_lsh () {
# echo spawn_lsh "$@"
../lsh $CLIENTFLAGS -nt --sloppy-host-authentication \
......
#! /bin/sh
# Tests connecting with lsh. In order to use this, you must already
# have lsh set up so that you can login without password.
# This restriction can be fixed if we add an option to lshd to use a
# custom passwd-file.
echo lsh, cat test
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
spawn_lshd && exec_lsh "cat `pwd`/../lshd" >/dev/null
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment