netftpserver-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Net::FTPServer] testing wget with net::ftpserver


From: Richard Jones
Subject: Re: [Net::FTPServer] testing wget with net::ftpserver
Date: Sat, 21 Jan 2006 11:02:14 +0000
User-agent: Mutt/1.5.9i

On Fri, Jan 20, 2006 at 02:37:43PM +0100, Mauro Tortonesi wrote:
> hi Richard and all,
> 
> i am writing a test suite for wget and i am planning to use 
> Net::FTPServer as a server to test FTP downloads.
> 
> what i would like to do is to setup Net::FTPServer::InMem::Server with a 
> predefined set of resources, which varies from test to test.
> 
> so, i've written a simple extension of Net::FTPServer::InMem::Server:
[...]

I suspect a better approach is going to be to modify
Net::FTPServer::InMem::* so that $dirs (in DirHandle.pm) is
initialized, perhaps from the config file.  You can read the config
file easily (see the $self->config method) and from this popular $dirs
with directories / files.

As for running the InMem server as part of a test, have a look at what
we do in the t/ subdirectory.  The test suite supplied with
Net::FTPServer does something like this already.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]