develooper Front page | perl.qpsmtpd | Postings from January 2007

Plugins and Testing

Guy Hulbert
January 9, 2007 05:56
Plugins and Testing
Message ID:

[ This is a new thread that I should have started at the link below. ]

Here are some first thoughts on some minor changes to the test
framework, that I wrote with some of the list discussions on the wiki
and plugins in mind:

Presently, the plugin tests work using a hard-coded path returned by
Test::Qpsmptd::config_dir() - ( ./config.sample/ ) see t/Test/
There are only two plugin tests so far so I am going to spend some time
today writing some more.

Above, I have proposed a way to make things more flexible.  However, I
realize now that I have not thoght about what happens in certain cases.
For example, if I put a test script into
and the plugin is not listed in ./config.sample/plugins do the tests
fail or warn (or even ignore) on the unloaded plugin.  I'm sure there
are other cases to think about.

--gh Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About