[vtk-developers] Coverage Script
Andrew Maclean
andrew.amaclean at gmail.com
Tue Sep 11 16:46:26 EDT 2012
Thanks for this
Andrew
Sent from an Android tablet.
On Sep 12, 2012 6:39 AM, "Bill Lorensen" <bill.lorensen at gmail.com> wrote:
> Andrew,
>
> To compute the coverage for your unit tests, (assuming a linux build),
> 0) Use Linux
> - install lcov
> - use the gcc compiler
>
> 1) Add the CMake flags:
>
> CMAKE_CXX_FLAGS:STRING=-g -O0 -fprofile-arcs -ftest-coverage
> CMAKE_C_FLAGS:STRING= -g -O0 -fprofile-arcs -ftest-coverage
>
> 2) Compile VTK for Debug
>
> CMAKE_BUILD_TYPE Debug
>
> ../VTK/Utilities/Maintenance/computeCodeCoverageLocallyForOneTest.sh
> Common/Color -R CommonColor
>
> I'll be adding a wiki page soon to document this process.
>
> Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120912/9aceb132/attachment.html>
More information about the vtk-developers
mailing list