Damien Miller | 7d06b00 | 2011-01-07 09:54:20 +1100 | [diff] [blame] | 1 | # Placed in the Public Domain. |
| 2 | |
| 3 | tid="expand %h and %n" |
| 4 | |
| 5 | echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy |
| 6 | printf 'LocalCommand printf "%%%%s\\n" "%%n" "%%h"\n' >> $OBJ/ssh_proxy |
| 7 | |
Tim Rice | 076a3b9 | 2011-01-10 12:56:26 -0800 | [diff] [blame] | 8 | cat >$OBJ/expect <<EOE |
Damien Miller | 7d06b00 | 2011-01-07 09:54:20 +1100 | [diff] [blame] | 9 | somehost |
| 10 | 127.0.0.1 |
| 11 | EOE |
| 12 | |
| 13 | for p in 1 2; do |
| 14 | verbose "test $tid: proto $p" |
Tim Rice | 076a3b9 | 2011-01-10 12:56:26 -0800 | [diff] [blame] | 15 | ${SSH} -F $OBJ/ssh_proxy -$p somehost true >$OBJ/actual |
| 16 | diff $OBJ/expect $OBJ/actual || fail "$tid proto $p" |
Damien Miller | 7d06b00 | 2011-01-07 09:54:20 +1100 | [diff] [blame] | 17 | done |
| 18 | |