[regress/forwarding.sh]
     regress test for stdio forwarding
This commit is contained in:
Damien Miller 2010-02-24 17:25:58 +11:00
parent b6bd3c2ca8
commit 0dff9c7e6d
2 changed files with 14 additions and 1 deletions

View File

@ -8,6 +8,9 @@
- dtucker@cvs.openbsd.org 2009/11/09 04:20:04
[regress/Makefile]
add regression test for ssh-keygen pubkey conversions
- dtucker@cvs.openbsd.org 2010/01/11 02:53:44
[regress/forwarding.sh]
regress test for stdio forwarding
20100212
- (djm) OpenBSD CVS Sync

View File

@ -1,4 +1,4 @@
# $OpenBSD: forwarding.sh,v 1.6 2006/07/11 18:51:21 markus Exp $
# $OpenBSD: forwarding.sh,v 1.7 2010/01/11 02:53:44 dtucker Exp $
# Placed in the Public Domain.
tid="local and remote forwarding"
@ -93,3 +93,13 @@ for p in 1 2; do
fi
sleep 10
done
for p in 2; do
trace "stdio forwarding proto $p"
cmd="${SSH} -$p -F $OBJ/ssh_config"
$cmd -o "ProxyCommand $cmd -q -W localhost:$PORT somehost" \
somehost true
if [ $? != 0 ]; then
fail "stdio forwarding proto $p"
fi
done