#!/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
