diff options
author | Yang Tse <yangsita@gmail.com> | 2007-11-19 17:20:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-11-19 17:20:32 +0000 |
commit | 5376d1047ce33e1e4ddf140bc9a5765462ee7673 (patch) | |
tree | 545c3d9b0536af84489264c87b3b45419bc1e3ee /tests/runtests.pl | |
parent | 1746b57161e86afcab58b5a1a7d9500b06c39175 (diff) |
This is a temporary change to test if OpenSSH 3.6 and SunSSH 1.1
are good/compatible enough to run the test suite ssh server and
socks tests
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 2c02ffe28..662832369 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -2380,12 +2380,18 @@ sub startservers { } if(!$run{'socks'}) { my $sshversion=`ssh -V 2>&1`; - if ($sshversion =~ /SSH_(\d+)\.(\d+)/i) { - if ($1*10+$2 < 37) { - # need 3.7 for socks5 - http://www.openssh.com/txt/release-3.7 - return "ssh version ($1.$2) insufficient; need at least 3.7"; - } - } else { + if($sshversion =~ /OpenSSH[_-](\d+)\.(\d+)/i) { + if ($1*10+$2 < 36) { + # need 3.7 for socks5 - http://www.openssh.com/txt/release-3.7 + return "OpenSSH version ($1.$2) insufficient; need at least 3.7"; + } + } + elsif($sshversion =~ /Sun[_-]SSH[_-](\d+)\.(\d+)/i) { + if ($1*10+$2 < 11) { + return "SunSSH version ($1.$2) insufficient; need at least 1.1"; + } + } + else { return "Unsupported ssh client\n"; } |