[CMake] "unit" testing your CMakeLists.txt

Bill Hoffman bill.hoffman at kitware.com
Wed Feb 11 10:12:17 EST 2009


Mike Arthur wrote:
> On Monday 09 February 2009 20:15:33 Tyler Roscoe wrote:
>> Does anyone do anything like this? Are there tools around to help? Is
>> this a worthwhile thing to think about?
> I think this shouldn't be separate from the rest of your other TDD stuff that 
> the non-buildsystem developers are doing. 
>
> 
You should look at CDash www.cdash.org, and CTest which is bundled with 
CMake.  Combined they make a very good continuous integration system. If 
you created some custom targets that ran ctest with each build you could 
easily have a TDD system built on CMake.  See add_test command.

Here are some links:

http://www.cmake.org/Wiki/CMake_Testing_With_CTest
http://www.kitware.com/solutions/softwareprocess.html
http://www.cmake.org/cmake/img/software-process.png


-Bill



More information about the CMake mailing list