summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2020-01-23 11:19:13 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2020-01-23 11:19:13 +0000
commit86cda47e758b736f1c39709c548630d68508212a (patch)
treee32340e33d4e10531ce5a0dff1a5de41a6ac28b4 /regress/usr.bin
parent1c0198370286d3e37ca26e6c5354269a02b5fec7 (diff)
Handle zlib compression being disabled now that it's optional.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/ssh/proxy-connect.sh10
-rw-r--r--regress/usr.bin/ssh/putty-transfer.sh10
2 files changed, 16 insertions, 4 deletions
diff --git a/regress/usr.bin/ssh/proxy-connect.sh b/regress/usr.bin/ssh/proxy-connect.sh
index 39bbd3c96e7..8847fe0c664 100644
--- a/regress/usr.bin/ssh/proxy-connect.sh
+++ b/regress/usr.bin/ssh/proxy-connect.sh
@@ -1,9 +1,15 @@
-# $OpenBSD: proxy-connect.sh,v 1.11 2017/09/26 22:39:25 dtucker Exp $
+# $OpenBSD: proxy-connect.sh,v 1.12 2020/01/23 11:19:12 dtucker Exp $
# Placed in the Public Domain.
tid="proxy connect"
-for c in no yes; do
+if [ "`${SSH} -Q compression`" = "none" ]; then
+ comp="no"
+else
+ comp="no yes"
+fi
+
+for c in $comp; do
verbose "plain username comp=$c"
opts="-oCompression=$c -F $OBJ/ssh_proxy"
SSH_CONNECTION=`${SSH} $opts 999.999.999.999 'echo $SSH_CONNECTION'`
diff --git a/regress/usr.bin/ssh/putty-transfer.sh b/regress/usr.bin/ssh/putty-transfer.sh
index a7c13573df6..ad297e9f78c 100644
--- a/regress/usr.bin/ssh/putty-transfer.sh
+++ b/regress/usr.bin/ssh/putty-transfer.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: putty-transfer.sh,v 1.6 2018/02/23 03:03:00 djm Exp $
+# $OpenBSD: putty-transfer.sh,v 1.7 2020/01/23 11:19:12 dtucker Exp $
# Placed in the Public Domain.
tid="putty transfer data"
@@ -7,7 +7,13 @@ if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
fatal "putty interop tests not enabled"
fi
-for c in 0 1 ; do
+if [ "`${SSH} -Q compression`" = "none" ]; then
+ comp="0"
+else
+ comp="0 1"
+fi
+
+for c in $comp; do
verbose "$tid: compression $c"
rm -f ${COPY}
cp ${OBJ}/.putty/sessions/localhost_proxy \