Commit 847545cf authored by ibanez's avatar ibanez
Browse files

ENH: Adding helper script for computing code coverage locally, by using lcov.


git-svn-id: http://svn.slicer.org/Slicer4/trunk@11639 3bd1e089-480b-0410-8dfb-8563597acbee
parent 9bf50571
......@@ -394,6 +394,12 @@ configure_file(
${CMAKE_CURRENT_BINARY_DIR}/Scripts/runValgrind.sh
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Scripts/computeCodeCoverageLocally.sh.in
${CMAKE_CURRENT_BINARY_DIR}/Scripts/computeCodeCoverageLocally.sh
)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerConfigure.h"
DESTINATION ${Slicer3_INSTALL_INCLUDE_DIR} COMPONENT Development
......
#!/bin/csh
make
lcov --directory . --zerocounters
../Slicer3-lib/CMake-build/bin/ctest
lcov --directory . --capture --output-file app.info
lcov --remove app.info '*Tcl.cxx' --output-file app_noTcl.info
lcov --remove app_noTcl.info '*\/Testing\/*' --output-file app_noTcl_noTesting.info
genhtml app_noTcl_noTesting.info
firefox ./index.html
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment