blob: a0188363dc6944d90f1cecb0f59917b9ec1abe8e [file] [log] [blame]
Damien Miller7d06b002011-01-07 09:54:20 +11001# Placed in the Public Domain.
2
3tid="expand %h and %n"
4
5echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
6printf 'LocalCommand printf "%%%%s\\n" "%%n" "%%h"\n' >> $OBJ/ssh_proxy
7
Tim Rice076a3b92011-01-10 12:56:26 -08008cat >$OBJ/expect <<EOE
Damien Miller7d06b002011-01-07 09:54:20 +11009somehost
10127.0.0.1
11EOE
12
13for p in 1 2; do
14 verbose "test $tid: proto $p"
Tim Rice076a3b92011-01-10 12:56:26 -080015 ${SSH} -F $OBJ/ssh_proxy -$p somehost true >$OBJ/actual
16 diff $OBJ/expect $OBJ/actual || fail "$tid proto $p"
Damien Miller7d06b002011-01-07 09:54:20 +110017done
18