[Opendnssec-develop] Test framework

Stephen.Morris at nominet.org.uk Stephen.Morris at nominet.org.uk
Thu Feb 12 10:59:41 UTC 2009


Roland van Rijswijk <roland.vanrijswijk at surfnet.nl> wrote on 12/02/2009 
07:52:45:

> Hi Rickard,
> 
> For C++ the best test framework I know is CPPUnit:
> 
> http://cppunit.sourceforge.net
> 
> For C there is a similar framework called CUnit (I haven't tried it but
> heard good things about it...)
> 
> http://cunit.sourceforge.net

I've used CUnit and it works well.


> 
> Cheers,
> 
> Roland
> 
> Rickard Bondesson wrote:
> > Hi
> > 
> > Any suggestions on good test frameworks? So we can do automated 
> testing for both C and C++. Any reference on how the tests should be
> written to be able to work with the framework?
> > 
> > // Rickard

The documentation for both CUnit and CPPUnit give instructions on writing 
tests.  For a real example, the KSM (KASP) code available on the Nominet 
download site (http://download.nominet.org.uk/KASP/ksm_20090119.tar.gz) 
uses CUnit for its unit tests.  Please feel free to refer to it or copy 
anything you need from it.

Stephen



More information about the Opendnssec-develop mailing list