[Ssh-sftp-perl-users] Need help testing code!
Brought to you by:
dbrobins
From: Dave R. <au...@ur...> - 2004-04-19 18:09:52
|
So the big thing holding back changes to the code, including bug fixes, error handling, etc., is that there is no good test suite currently. The current tests don't exercise even a fraction of the core code (particularly the SSH2 bits, which make up the bulk of Net::SSH). So I'm looking for ideas on this. It's ok if the tests can only run on a developer's machine, as long as they can run before making a release. If they could run on other machines reliably, that's a nice bonus ;) I'm thinking that it could do something like this: - Create a known file system layout (important for SFTP tests, obviously, but also useful for SSH, I'd think) - Start an SSH daemon on a high-numbered port, chrooted into that filesystem. - Do some tests - Restart SSH daemon as needed with different options, config, etc. Does that sound reasonable? Help implementing or designing or anything would be greatly appreciated. Once there's a test suite, I can start actually changing the code. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/ |