summaryrefslogtreecommitdiff
path: root/regress/forwarding.sh
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-02-24 17:25:58 +1100
committerDamien Miller <djm@mindrot.org>2010-02-24 17:25:58 +1100
commit0dff9c7e6d1fd0025ad7b137d2201f9f8bdaadc5 (patch)
tree22d63708900c42f7d81e2c5c34d2b578aed68ec7 /regress/forwarding.sh
parentb6bd3c2ca8a52a6ff777c8d7a69a8c2e7e51a1f8 (diff)
- dtucker@cvs.openbsd.org 2010/01/11 02:53:44
[regress/forwarding.sh] regress test for stdio forwarding
Diffstat (limited to 'regress/forwarding.sh')
-rw-r--r--regress/forwarding.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/regress/forwarding.sh b/regress/forwarding.sh
index 9ffbb3dd4..6dec991a6 100644
--- a/regress/forwarding.sh
+++ b/regress/forwarding.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: forwarding.sh,v 1.6 2006/07/11 18:51:21 markus Exp $ 1# $OpenBSD: forwarding.sh,v 1.7 2010/01/11 02:53:44 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="local and remote forwarding" 4tid="local and remote forwarding"
@@ -93,3 +93,13 @@ for p in 1 2; do
93 fi 93 fi
94 sleep 10 94 sleep 10
95done 95done
96
97for p in 2; do
98 trace "stdio forwarding proto $p"
99 cmd="${SSH} -$p -F $OBJ/ssh_config"
100 $cmd -o "ProxyCommand $cmd -q -W localhost:$PORT somehost" \
101 somehost true
102 if [ $? != 0 ]; then
103 fail "stdio forwarding proto $p"
104 fi
105done