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

* src/testsuite/lsh-cat-test: Use compare_output.

* src/testsuite/lsh-1-test: Use test_success.
* src/testsuite/lsh-2-test: Likewise.
* src/testsuite/lsh-3-test: Likewise.
* src/testsuite/lsh-4-test: Likewise.
* src/testsuite/tcpip-local-test: Likewise.
* src/testsuite/tcpip-remote-test: Likewise.

* src/testsuite/keygen-2-test: Use functions.sh and test_success.
* src/testsuite/keygen-test: Likewise.

Rev: src/testsuite/keygen-2-test:1.3
Rev: src/testsuite/keygen-test:1.6
Rev: src/testsuite/lsh-1-test:1.3
Rev: src/testsuite/lsh-2-test:1.3
Rev: src/testsuite/lsh-3-test:1.3
Rev: src/testsuite/lsh-4-test:1.2
Rev: src/testsuite/lsh-cat-test:1.3
Rev: src/testsuite/tcpip-local-test:1.3
Rev: src/testsuite/tcpip-remote-test:1.2
parent 7bf07151
......@@ -8,5 +8,7 @@ if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
rm -rf temphome && mkdir temphome
HOME="`pwd`/temphome" ../lsh-writekey < $srcdir/key-1.private
HOME="`pwd`/temphome" ../lsh-writekey < $srcdir/key-1.private && test_success
......@@ -8,5 +8,7 @@ if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
rm -f foo foo.pub
../lsh-writekey -o foo < $srcdir/key-1.private
../lsh-writekey -o foo < $srcdir/key-1.private && test_success
......@@ -14,5 +14,4 @@ fi
. $srcdir/functions.sh
spawn_lshd && run_lsh "exit"
spawn_lshd && run_lsh "exit" && test_success
......@@ -14,5 +14,4 @@ fi
. $srcdir/functions.sh
spawn_lshd && run_lsh "echo Hello world."
spawn_lshd && run_lsh "echo Hello world." && test_success
......@@ -14,5 +14,5 @@ fi
. $srcdir/functions.sh
spawn_lshd && run_lsh "echo Hello world. ; exit"
spawn_lshd && run_lsh "echo Hello world. ; exit" && test_success
......@@ -14,5 +14,4 @@ fi
. $srcdir/functions.sh
spawn_lshd && exec_lsh echo Hello world
spawn_lshd && exec_lsh echo Hello world && test_success
......@@ -14,5 +14,9 @@ fi
. $srcdir/functions.sh
spawn_lshd && exec_lsh "cat `pwd`/../lshd" | diff - ../lshd
spawn_lshd && exec_lsh "cat `pwd`/../lshd" > test.out1
cat ../lshd > test.out2
compare_output "lsh-cat-test"
......@@ -18,6 +18,8 @@ PROXYPORT=`expr $PORT + 2`
at_connect $SERVERPORT 1 'echo foo' \
&& spawn_lshd \
&& spawn_lsh -L $PROXYPORT:localhost:$SERVERPORT \
&& sleep 30; tcpconnect -r </dev/null localhost $PROXYPORT
&& sleep 30; tcpconnect -r </dev/null localhost $PROXYPORT \
&& test_success
......@@ -18,6 +18,7 @@ PROXYPORT=`expr $PORT + 2`
at_connect $SERVERPORT 1 'echo foo' \
&& spawn_lshd \
&& spawn_lsh -R $PROXYPORT:localhost:$SERVERPORT \
&& sleep 30; tcpconnect -r </dev/null localhost $PROXYPORT
&& sleep 30; tcpconnect -r </dev/null localhost $PROXYPORT \
&& 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