Commit 569aa970 authored by ibanez's avatar ibanez
Browse files

ENH: Setting up configuration for automating the process of running Valgrind in the CLI Modules.


git-svn-id: http://svn.slicer.org/Slicer4/trunk@13199 3bd1e089-480b-0410-8dfb-8563597acbee
parent 4e12ec53
This diff is collapsed.
......@@ -168,6 +168,12 @@ IF(Slicer3_BUILD_TESTING)
INCLUDE(CTest)
SET(CXX_TEST_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
MARK_AS_ADVANCED(TCL_TCLSH DART_ROOT)
#-----------------------------------------------------------------------------
# Run test through valgrind: particularly useful for testing modules.
#
option(USE_VALGRIND "Run tests through valgrind." OFF)
ENDIF(Slicer3_BUILD_TESTING)
#-----------------------------------------------------------------------------
......
......@@ -3,13 +3,14 @@ valgrind \
--sim-hints=lax-ioctls \
--trace-children=yes \
--tool=memcheck \
-v \
--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 \
$* |& tee /tmp/slicerval
--suppressions=@PROJECT_SOURCE_DIR@/CMake/Slicer3ValgrindSuppressions.supp \
--suppressions=@PROJECT_BINARY_DIR@/../Slicer3-lib/VTK/CMake/VTKValgrindSuppressions.supp \
--suppressions=@PROJECT_BINARY_DIR@/../Slicer3-lib/KWWidgets/CMake/KWWidgetsValgrindSuppressions.supp \
--suppressions=@PROJECT_BINARY_DIR@/../Slicer3-lib/Insight/CMake/InsightValgrind.supp \
--suppressions=@PROJECT_BINARY_DIR@/../Slicer3-lib/Insight/Utilities/gdcm/CMake/gdcmValgrind.supp \
--suppressions=@PROJECT_BINARY_DIR@/../Slicer3-lib/Insight/Utilities/vxl/config/valgrind.supp \
$* |& tee /tmp/$1_valgrind.txt
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