[rfc] [patch] sftp unit tests without ssh
Robey Pointer
robey at lag.net
Mon Jan 23 03:48:45 GMT 2006
Here's a patch to add a subclass of SFTPServer (called
SFTPServerWithoutSSH) that sets up a fake sftp server over loopback
but uses a special ssh vendor ("loopback") which just wraps a plain
socket instead of setting up both ends of an SSH Transport. What
this means is that tests using SFTPServerWithoutSSH will use sftp
without all the overhead of actually setting up a secure channel.
On my ibook, it drops the './bzr selftest' time from about 5 minutes
to about 3 minutes -- pretty significant.
We discussed having at least one test still use a full sftp-over-ssh
setup. I didn't do that because I'm not entirely sure how, but it
should just be a matter of using SFTPServer for a test instead of
SFTPServerWithoutSSH.
I posted the branch here:
http://www.lag.net/~robey/bzr.dev.sftp/
but it's only one patch, so that's attached below.
robey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sftp-without-ssh-patch.txt
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20060122/77ddca0f/attachment.txt
More information about the bazaar
mailing list