diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-06-22 13:38:56 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-06-22 13:38:56 +1000 |
commit | 430c6a1552e25a1163e6fa1bade9a276791679a6 (patch) | |
tree | b9186fd4ca4d89aaeabcaa81b059e6df7346f66c /regress/multiplex.sh | |
parent | e35bf12eebca0c3ca248dca4c04bff83b9c475a1 (diff) |
- markus@cvs.openbsd.org 2004/06/22 03:12:13
[regress/envpass.sh regress/multiplex.sh]
more portable env passing tests
Diffstat (limited to 'regress/multiplex.sh')
-rw-r--r-- | regress/multiplex.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/regress/multiplex.sh b/regress/multiplex.sh index c167b9632..dbf2025be 100644 --- a/regress/multiplex.sh +++ b/regress/multiplex.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: multiplex.sh,v 1.7 2004/06/18 06:15:51 dtucker Exp $ | 1 | # $OpenBSD: multiplex.sh,v 1.8 2004/06/22 03:12:13 markus Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | CTL=$OBJ/ctl-sock | 4 | CTL=$OBJ/ctl-sock |
@@ -11,12 +11,13 @@ COPY=$OBJ/ls.copy | |||
11 | start_sshd | 11 | start_sshd |
12 | 12 | ||
13 | trace "start master, fork to background" | 13 | trace "start master, fork to background" |
14 | ${SSH} -2 -MS$CTL -F $OBJ/ssh_config -oSendEnv="_XXX_TEST" -f somehost \ | 14 | ${SSH} -2 -MS$CTL -F $OBJ/ssh_config -oSendEnv="_XXX_TEST" -f somehost sleep 120 |
15 | sleep 120 | ||
16 | 15 | ||
17 | verbose "test $tid: envpass" | 16 | verbose "test $tid: envpass" |
18 | trace "env passing over multiplexed connection" | 17 | trace "env passing over multiplexed connection" |
19 | _XXX_TEST=blah ${SSH} -S$CTL otherhost '[ "x$_XXX_TEST" = "xblah" ]' | 18 | _XXX_TEST=blah ${SSH} -oSendEnv="_XXX_TEST" -S$CTL otherhost sh << 'EOF' |
19 | test X"$_XXX_TEST" = X"blah" | ||
20 | EOF | ||
20 | if [ $? -ne 0 ]; then | 21 | if [ $? -ne 0 ]; then |
21 | fail "environment not found" | 22 | fail "environment not found" |
22 | fi | 23 | fi |