[CMake] CTest - C Unit Testing Framework

Dixon, Shane Shane.Dixon at atmel.com
Tue Oct 6 12:47:22 EDT 2009


Actually, C++ test frameworks aren't entirely useless to me.  Most of my code ends up in a DLL which C++ can call into for the testing.  However, given how much coding I have to do in C (working with hardware), I am still looking for a good C test framework.  Thanks.

--
Shane


-----Original Message-----
From: Tyler Roscoe [mailto:tyler at cryptio.net] 
Sent: Tuesday, October 06, 2009 9:46 AM
To: Dixon, Shane
Cc: cmake at cmake.org
Subject: Re: [CMake] CTest - C Unit Testing Framework

On Tue, Oct 06, 2009 at 09:42:23AM -0600, 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).  

We use googletest and it works well. Not sure if it has C support (we're
primarily a C++ shop).

tyler


More information about the CMake mailing list