diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2021-06-08 09:05:27 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2021-06-08 09:17:24 +0200 |
commit | a023138957ea2becf1c7f93fcc42b0aaac6f2b03 (patch) | |
tree | 09531b6c53b7820800ae17f5646b9f478f45db04 /regress/sshcfgparse.sh | |
parent | upstream: sprinkle some "# comment" at end of configuration lines (diff) | |
download | openssh-a023138957ea2becf1c7f93fcc42b0aaac6f2b03.tar.xz openssh-a023138957ea2becf1c7f93fcc42b0aaac6f2b03.zip |
upstream: Add testcases from bz#3319 for IPQoS and TunnelDevice
being overridden on the command line.
OpenBSD-Regress-ID: 801674d5d2d02abd58274a78cab2711f11de14a8
Diffstat (limited to 'regress/sshcfgparse.sh')
-rw-r--r-- | regress/sshcfgparse.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/regress/sshcfgparse.sh b/regress/sshcfgparse.sh index 40b3f01e4..504853d32 100644 --- a/regress/sshcfgparse.sh +++ b/regress/sshcfgparse.sh @@ -1,4 +1,4 @@ -# $OpenBSD: sshcfgparse.sh,v 1.8 2021/06/08 06:51:47 djm Exp $ +# $OpenBSD: sshcfgparse.sh,v 1.9 2021/06/08 07:05:27 dtucker Exp $ # Placed in the Public Domain. tid="ssh config parse" @@ -104,5 +104,16 @@ expect_result_present "$f" "yes" f=`${SSH} -GF none '-oforwardagent=SSH_AUTH_SOCK.forward' host | awk '/^forwardagent /{print$2}'` expect_result_present "$f" "SSH_AUTH_SOCK.forward" +verbose "command line override" +cat >$OBJ/ssh_config.0 <<EOD +Host * + IPQoS af21 cs1 + TunnelDevice 1:2 +EOD +f=`${SSH} -GF $OBJ/ssh_config.0 -oipqos=cs1 host | awk '/^ipqos /{print$2}'` +expect_result_present "$f" "cs1" +f=`${SSH} -GF $OBJ/ssh_config.0 -otunneldevice=3:4 host | awk '/^tunneldevice /{print$2}'` +expect_result_present "$f" "3:4" + # cleanup rm -f $OBJ/ssh_config.[012] |