summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2004-06-17 14:53:28 +0000
committerDamien Miller <djm@cvs.openbsd.org>2004-06-17 14:53:28 +0000
commit523188aba06aeedcd6e58a5499cc1980979a1874 (patch)
treefcad05ea981ab11700adbd2a900e86636ec6f4c0
parent9549b87bfd5c610614fd577c47478687fd11e10c (diff)
shared connection env passing regress test
-rw-r--r--regress/usr.bin/ssh/multiplex.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/multiplex.sh b/regress/usr.bin/ssh/multiplex.sh
index b70a99c01ce..3f3f14e2761 100644
--- a/regress/usr.bin/ssh/multiplex.sh
+++ b/regress/usr.bin/ssh/multiplex.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: multiplex.sh,v 1.5 2004/06/17 06:19:06 dtucker Exp $
+# $OpenBSD: multiplex.sh,v 1.6 2004/06/17 14:53:27 djm Exp $
# Placed in the Public Domain.
CTL=$OBJ/ctl-sock
@@ -11,8 +11,16 @@ COPY=$OBJ/ls.copy
start_sshd
trace "start master, fork to background"
-${SSH} -2 -MS$CTL -F $OBJ/ssh_config -f somehost sleep 60
+${SSH} -2 -MS$CTL -F $OBJ/ssh_config -oSendEnv="_XXX_TEST" -f somehost sleep 60
+verbose "test $tid: envpass"
+trace "env passing over multiplexed connection"
+_XXX_TEST=blah ${SSH} -S$CTL otherhost '[ "x$_XXX_TEST" = "xblah" ]'
+if [ $? -ne 0 ]; then
+ fail "environment not found"
+fi
+
+verbose "test $tid: transfer"
rm -f ${COPY}
trace "ssh transfer over multiplexed connection and check result"
${SSH} -S$CTL otherhost cat ${DATA} > ${COPY}