[opendmarc-dev] Unit tests

Murray S. Kucherawy msk at blackops.org
Mon Jul 2 14:18:04 PDT 2012


On Mon, 2 Jul 2012, Murray S. Kucherawy wrote:
> I've added a unit test framework for opendmarc.  For the filter itself, 
> I copied the test framework from OpenDKIM.  It runs a series of shell 
> scripts which in turn invoke miltertest (an OpenDKIM milter simluator) 
> to generate various test cases and ensure opendmarc does the right 
> thing.

To invoke the tests, do "make check", either from the top directory or 
from the opendmarc directory.

We should consider adding this for all directories that contain some kind 
of code.  Clean output of "make check" ought to be mandatory before any 
releases.

I can provide the framework for doing library unit tests from OpenDKIM if 
that would be helpful.

-MSK


More information about the opendmarc-dev mailing list