]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: test transfers in mux proxy mode too
authordjm@openbsd.org <djm@openbsd.org>
Fri, 19 Jul 2024 04:33:36 +0000 (04:33 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 15 Aug 2024 02:08:34 +0000 (12:08 +1000)
OpenBSD-Regress-ID: 2edfc980628cfef3550649cab8d69fa23b5cd6c4

regress/multiplex.sh

index b992cd412149447b4bc0c3f86cc3c243dd496705..8274b9d59d1832f08ade50c234ffeb2471a58b8a 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: multiplex.sh,v 1.36 2023/03/01 09:29:32 dtucker Exp $
+#      $OpenBSD: multiplex.sh,v 1.37 2024/07/19 04:33:36 djm Exp $
 #      Placed in the Public Domain.
 
 make_tmpdir
@@ -56,19 +56,20 @@ 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} -F $OBJ/ssh_config -S$CTL otherhost cat ${DATA} > ${COPY}
-test -f ${COPY}                        || fail "ssh -Sctl: failed copy ${DATA}" 
-cmp ${DATA} ${COPY}            || fail "ssh -Sctl: corrupted copy of ${DATA}"
-
-rm -f ${COPY}
-trace "ssh transfer over multiplexed connection and check result"
-${SSH} -F $OBJ/ssh_config -S $CTL otherhost cat ${DATA} > ${COPY}
-test -f ${COPY}                        || fail "ssh -S ctl: failed copy ${DATA}" 
-cmp ${DATA} ${COPY}            || fail "ssh -S ctl: corrupted copy of ${DATA}"
+for mode in "" "-Oproxy"; do
+       verbose "test $tid: transfer $mode"
+       rm -f ${COPY}
+       trace "ssh transfer over $mode multiplexed connection and check result"
+       ${SSH} $mode -F $OBJ/ssh_config -S$CTL otherhost cat ${DATA} > ${COPY}
+       test -f ${COPY}         || fail "ssh -Sctl: failed copy ${DATA}" 
+       cmp ${DATA} ${COPY}     || fail "ssh -Sctl: corrupted copy of ${DATA}"
+
+       rm -f ${COPY}
+       trace "ssh transfer over $mode multiplexed connection and check result"
+       ${SSH} $mode -F $OBJ/ssh_config -S $CTL otherhost cat ${DATA} > ${COPY}
+       test -f ${COPY}         || fail "ssh -S ctl: failed copy ${DATA}" 
+       cmp ${DATA} ${COPY}     || fail "ssh -S ctl: corrupted copy of ${DATA}"
+done
 
 rm -f ${COPY}
 trace "sftp transfer over multiplexed connection and check result"