[CMake] CTest - C Unit Testing Framework

Mateusz Loskot mateusz at loskot.net
Tue Oct 6 11:54:46 EDT 2009


Dixon, Shane wrote:
> I’m using CMake for all of my building.  Currently I’m just working on 
> Windows XP, but I’d like to leave things open for Linux builds in the 
> near future.  Any suggestions on the best testing framework for a C 
> project that will be cross-platform compatible and I can use it with 
> Windows and Linux?  I’d like something that works well with CTest. (i.e. 
> a command-line interface is probably ideal). 
> 
> I looked at cfix, but that seems Windows specific.  The CUnit project 
> looks like it hasn’t been updated in a long time. 
> 
> Any suggestions?

Perhaps it's off-topic, as these are C++ test frameworks, not C,
however I can truly recommend:
- TUT: C++ Template Unit Test Framework - very lightweight and powerful
- Boost UTF - much more featured, proper framework, but big.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list