Commit 70376c3b authored by Niels Möller's avatar Niels Möller
Browse files

New test cases.

Rev: src/testsuite/keygen-1-test:1.1
Rev: src/testsuite/keygen-2-test:1.5
Rev: src/testsuite/lsh-5-test:1.1
parent 973f88ca
#! /bin/sh
# Tests the key generation programs
echo Testing lsh-keygen DSA key generation
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
rm -f foo foo.pub
../lsh-keygen -a dsa | ../lsh-writekey -o foo \
&& ../sexp-conv < foo && [ -s foo -a -s foo.pub ] && test_success
#! /bin/sh
# Tests the key generation programs
echo Testing lsh-keygen RSA key generation
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
rm -f foo foo.pub
../lsh-keygen -a rsa | ../lsh-writekey -o foo \
&& ../sexp-conv < foo && [ -s foo -a -s foo.pub ] && test_success
#! /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, test 5, using an RSA hostkey
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
HOSTKEY=$srcdir/key-2.private
spawn_lshd && run_lsh "exit" && test_success
Markdown is supported
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