On Tue, 29 Jul 2008, Jose Luis Martinez wrote:

BTW: any comment on how to elaborate a testing framework. Comments from the QP-gurus would be helpful.

For some in house code here that's similar to Qpsmtpd we basically have a data driven test system. You specify in a config file what plugins to load, and any other config file contents (supports CDB files too), and it generates the right config, and starts the daemon. Then you specify things like HELO, IP, full email contents, etc and it talks to the daemon using those details, and checks for the expected outcome.

Obviously not all that is possible with qpsmtpd (e.g. you can't spoof the IP easily), but most of it is. And it makes developing tests much easier.

I can probably share a bit of the code if it helps.

Matt.

Reply via email to