]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - crypto/openssh/regress/host-expand.sh
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / crypto / openssh / regress / host-expand.sh
1 #       $OpenBSD: host-expand.sh,v 1.3 2014/02/27 23:17:41 djm Exp $
2 #       Placed in the Public Domain.
3
4 tid="expand %h and %n"
5
6 echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
7 printf 'LocalCommand printf "%%%%s\\n" "%%n" "%%h"\n' >> $OBJ/ssh_proxy
8
9 cat >$OBJ/expect <<EOE
10 somehost
11 127.0.0.1
12 EOE
13
14 for p in 1 2; do
15         verbose "test $tid: proto $p"
16         ${SSH} -F $OBJ/ssh_proxy -$p somehost true >$OBJ/actual
17         diff $OBJ/expect $OBJ/actual || fail "$tid proto $p"
18 done
19