Commit 3230566f authored by ibanez's avatar ibanez
Browse files

ENH: Adding script for running Valgrind.

     The script is configured and copied to the binary directory Slicer3-build.


git-svn-id: http://svn.slicer.org/Slicer4/trunk@11386 3bd1e089-480b-0410-8dfb-8563597acbee
parent 8fdb38bd
......@@ -389,6 +389,11 @@ configure_file(
${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerConfigure.h
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/runValgrind.sh.in
${CMAKE_CURRENT_BINARY_DIR}/runValgrind.sh
)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerConfigure.h"
DESTINATION ${Slicer3_INSTALL_INCLUDE_DIR} COMPONENT Development
......
#!/bin/csh
valgrind \
--sim-hints=lax-ioctls \
--trace-children=yes \
-q \
--tool=memcheck \
--leak-check=yes \
--show-reachable=yes \
--gen-suppressions=all \
--suppressions=../Slicer3/CMake/Slicer3ValgrindSuppressions.supp \
--suppressions=../Slicer3-lib/VTK/CMake/VTKValgrindSuppressions.supp \
--suppressions=../Slicer3-lib/KWWidgets/CMake/KWWidgetsValgrindSuppressions.supp \
--suppressions=../Slicer3-lib/Insight/CMake/InsightValgrind.supp \
--suppressions=../Slicer3-lib/Insight/Utilities/gdcm/CMake/gdcmValgrind.supp \
--suppressions=../Slicer3-lib/Insight/Utilities/vxl/config/valgrind.supp \
../Slicer3-build/bin/Slicer3-real $* |& tee /tmp/slicerval
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