2005-09-25 14:42:24 -04:00
|
|
|
#!/bin/sh
|
2012-12-22 23:37:38 -05:00
|
|
|
VALGRIND_OPTIONS="$VALGRIND_OPTIONS --num-callers=50"
|
|
|
|
VALGRIND_OPTIONS="$VALGRIND_OPTIONS --error-limit=no"
|
2013-01-14 16:46:32 -05:00
|
|
|
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --leak-check=full --leak-resolution=high"
|
2012-12-22 23:37:38 -05:00
|
|
|
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --log-file=/tmp/ardour-%p.log"
|
|
|
|
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --gen-suppressions=all"
|
|
|
|
|
2014-11-29 08:42:21 -05:00
|
|
|
TOP=`dirname "$0"`/..
|
|
|
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
2015-09-12 15:47:44 -04:00
|
|
|
if uname | grep -q arwin; then
|
|
|
|
OBJSUPP="--suppressions=${TOP}/tools/objc.supp"
|
|
|
|
fi
|
2006-10-17 16:40:39 -04:00
|
|
|
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
2012-12-22 23:37:38 -05:00
|
|
|
exec valgrind --tool=memcheck \
|
|
|
|
$VALGRIND_OPTIONS \
|
2015-09-12 15:47:44 -04:00
|
|
|
--track-origins=yes \
|
|
|
|
--suppressions=${TOP}/tools/valgrind.supp \
|
|
|
|
$OBJSUPP \
|
2012-12-22 23:37:38 -05:00
|
|
|
$TOP/$EXECUTABLE --novst "$@"
|