diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2020-04-10 00:54:03 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-04-10 11:47:40 +1000 |
commit | b6a4013647db67ec622c144a9e05dd768f1966b3 (patch) | |
tree | 677ae12bbaaf17923c470e2f991069f6e14033a3 /regress | |
parent | abc3e0a5179c13c0469a1b11fe17d832abc39999 (diff) |
upstream: Add tests for TOKEN expansion of LocalForward and
RemoteForward.
OpenBSD-Regress-ID: 90fcbc60d510eb114a2b6eaf4a06ff87ecd80a89
Diffstat (limited to 'regress')
-rw-r--r-- | regress/percent.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/regress/percent.sh b/regress/percent.sh index 566700ea..2e891f69 100644 --- a/regress/percent.sh +++ b/regress/percent.sh @@ -1,4 +1,4 @@ -# $OpenBSD: percent.sh,v 1.5 2020/04/04 22:14:26 dtucker Exp $ +# $OpenBSD: percent.sh,v 1.6 2020/04/10 00:54:03 dtucker Exp $ # Placed in the Public Domain. tid="percent expansions" @@ -38,6 +38,13 @@ trial() ${SSH} -F $OBJ/ssh_proxy_match remuser@somehost true || true got=`cat $OBJ/actual` ;; + *forward) + # LocalForward and RemoteForward take two args and only + # operate on Unix domain socket paths + got=`${SSH} -F $OBJ/ssh_proxy -o $opt="/$arg /$arg" -G \ + remuser@somehost | awk '$1=="'$opt'"{print $2" "$3}'` + expect="/$expect /$expect" + ;; *) got=`${SSH} -F $OBJ/ssh_proxy -o $opt="$arg" -G \ remuser@somehost | awk '$1=="'$opt'"{print $2}'` @@ -48,7 +55,7 @@ trial() } for i in matchexec localcommand remotecommand controlpath identityagent \ - forwardagent; do + forwardagent localforward remoteforward; do verbose $tid $i if [ "$i" = "localcommand" ]; then REMUSER=$USER |