diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/multiplex.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/regress/multiplex.sh b/regress/multiplex.sh index 9fea117bd..b70a99c01 100644 --- a/regress/multiplex.sh +++ b/regress/multiplex.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: multiplex.sh,v 1.4 2004/06/17 06:00:05 dtucker Exp $ | 1 | # $OpenBSD: multiplex.sh,v 1.5 2004/06/17 06:19:06 dtucker 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 |
@@ -16,27 +16,27 @@ ${SSH} -2 -MS$CTL -F $OBJ/ssh_config -f somehost sleep 60 | |||
16 | rm -f ${COPY} | 16 | rm -f ${COPY} |
17 | trace "ssh transfer over multiplexed connection and check result" | 17 | trace "ssh transfer over multiplexed connection and check result" |
18 | ${SSH} -S$CTL otherhost cat ${DATA} > ${COPY} | 18 | ${SSH} -S$CTL otherhost cat ${DATA} > ${COPY} |
19 | test -f ${COPY} || fail "failed copy ${DATA}" | 19 | test -f ${COPY} || fail "ssh -Sctl: failed copy ${DATA}" |
20 | cmp ${DATA} ${COPY} || fail "corrupted copy of ${DATA}" | 20 | cmp ${DATA} ${COPY} || fail "ssh -Sctl: corrupted copy of ${DATA}" |
21 | 21 | ||
22 | rm -f ${COPY} | 22 | rm -f ${COPY} |
23 | trace "ssh transfer over multiplexed connection and check result" | 23 | trace "ssh transfer over multiplexed connection and check result" |
24 | ${SSH} -S $CTL otherhost cat ${DATA} > ${COPY} | 24 | ${SSH} -S $CTL otherhost cat ${DATA} > ${COPY} |
25 | test -f ${COPY} || fail "failed copy ${DATA}" | 25 | test -f ${COPY} || fail "ssh -S ctl: failed copy ${DATA}" |
26 | cmp ${DATA} ${COPY} || fail "corrupted copy of ${DATA}" | 26 | cmp ${DATA} ${COPY} || fail "ssh -S ctl: corrupted copy of ${DATA}" |
27 | 27 | ||
28 | rm -f ${COPY} | 28 | rm -f ${COPY} |
29 | trace "sftp transfer over multiplexed connection and check result" | 29 | trace "sftp transfer over multiplexed connection and check result" |
30 | echo "get ${DATA} ${COPY}" | \ | 30 | echo "get ${DATA} ${COPY}" | \ |
31 | ${SFTP} -oControlPath=$CTL otherhost >/dev/null 2>&1 | 31 | ${SFTP} -oControlPath=$CTL otherhost >/dev/null 2>&1 |
32 | test -f ${COPY} || fail "failed copy ${DATA}" | 32 | test -f ${COPY} || fail "sftp: failed copy ${DATA}" |
33 | cmp ${DATA} ${COPY} || fail "corrupted copy of ${DATA}" | 33 | cmp ${DATA} ${COPY} || fail "sftp: corrupted copy of ${DATA}" |
34 | 34 | ||
35 | rm -f ${COPY} | 35 | rm -f ${COPY} |
36 | trace "scp transfer over multiplexed connection and check result" | 36 | trace "scp transfer over multiplexed connection and check result" |
37 | ${SCP} -oControlPath=$CTL otherhost:${DATA} ${COPY} >/dev/null 2>&1 | 37 | ${SCP} -oControlPath=$CTL otherhost:${DATA} ${COPY} >/dev/null 2>&1 |
38 | test -f ${COPY} || fail "failed copy ${DATA}" | 38 | test -f ${COPY} || fail "scp: failed copy ${DATA}" |
39 | cmp ${DATA} ${COPY} || fail "corrupted copy of ${DATA}" | 39 | cmp ${DATA} ${COPY} || fail "scp: corrupted copy of ${DATA}" |
40 | 40 | ||
41 | rm -f ${COPY} | 41 | rm -f ${COPY} |
42 | 42 | ||