diff options
-rw-r--r-- | regress/usr.bin/ssh/Makefile | 3 | ||||
-rw-r--r-- | regress/usr.bin/ssh/ssh-com-client.sh | 4 | ||||
-rw-r--r-- | regress/usr.bin/ssh/transfer.sh | 29 |
3 files changed, 33 insertions, 3 deletions
diff --git a/regress/usr.bin/ssh/Makefile b/regress/usr.bin/ssh/Makefile index 99e8621e9ad..96eb505ad0b 100644 --- a/regress/usr.bin/ssh/Makefile +++ b/regress/usr.bin/ssh/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2002/03/26 15:14:33 markus Exp $ +# $OpenBSD: Makefile,v 1.11 2002/03/27 00:03:37 markus Exp $ REGRESSTARGETS= t1 t2 t3 t4 t5 t6 t7 @@ -10,6 +10,7 @@ LTESTS= connect \ proto-version \ proto-mismatch \ exit-status \ + transfer \ stderr-data \ stderr-after-eof \ broken-pipe \ diff --git a/regress/usr.bin/ssh/ssh-com-client.sh b/regress/usr.bin/ssh/ssh-com-client.sh index 6c5b66f6763..32e48877e71 100644 --- a/regress/usr.bin/ssh/ssh-com-client.sh +++ b/regress/usr.bin/ssh/ssh-com-client.sh @@ -1,4 +1,4 @@ -# $OpenBSD: ssh-com-client.sh,v 1.1 2002/03/26 15:14:33 markus Exp $ +# $OpenBSD: ssh-com-client.sh,v 1.2 2002/03/27 00:03:37 markus Exp $ # Placed in the Public Domain. tid="connect with ssh.com client" @@ -120,7 +120,7 @@ for v in ${VERSIONS}; do done rm -rf ${OBJ}/${USER} -for i in ssh2_config random_seed dsa.pub dsa \ +for i in ssh2_config random_seed dsa.pub dsa host.dsa \ id.list id.com id.com.pub id.openssh; do rm -f ${OBJ}/$i done diff --git a/regress/usr.bin/ssh/transfer.sh b/regress/usr.bin/ssh/transfer.sh new file mode 100644 index 00000000000..31cdc0ce36b --- /dev/null +++ b/regress/usr.bin/ssh/transfer.sh @@ -0,0 +1,29 @@ +# $OpenBSD: transfer.sh,v 1.1 2002/03/27 00:03:37 markus Exp $ +# Placed in the Public Domain. + +tid="transfer data" + +DATA=/bin/ls +COPY=${OBJ}/copy + +for p in 1 2; do + verbose "$tid: proto $p" + rm -f ${COPY} + ${SSH} -n -q -$p -F $OBJ/ssh_proxy somehost cat ${DATA} > ${COPY} + if [ $? -ne 0 ]; then + fail "ssh cat $DATA failed" + fi + cmp ${DATA} ${COPY} || fail "corrupted copy" + + for s in 10 100 1k 32k 64k 128k 256k; do + trace "proto $p dd-size ${s}" + rm -f ${COPY} + dd if=$DATA obs=${s} 2> /dev/null | \ + ${SSH} -q -$p -F $OBJ/ssh_proxy somehost "cat > ${COPY}" + if [ $? -ne 0 ]; then + fail "ssh cat $DATA failed" + fi + cmp $DATA ${COPY} || fail "corrupted copy" + done +done +rm -f ${COPY} |