2017-10-24 18:08:40 -04:00
|
|
|
#!/bin/sh
|
2019-07-02 11:33:56 -04:00
|
|
|
VALGRIND_OPTIONS="$VALGRIND_OPTIONS --num-callers=50"
|
|
|
|
VALGRIND_OPTIONS="$VALGRIND_OPTIONS --error-limit=no"
|
|
|
|
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --leak-check=full --leak-resolution=high"
|
|
|
|
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --show-leak-kinds=all -v"
|
|
|
|
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --log-file=/tmp/hardour-%p.log"
|
2017-10-24 18:08:40 -04:00
|
|
|
|
|
|
|
TOP=`dirname "$0"`/..
|
2019-07-02 11:33:56 -04:00
|
|
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
2017-10-24 18:08:40 -04:00
|
|
|
if uname | grep -q arwin; then
|
|
|
|
OBJSUPP="--suppressions=${TOP}/tools/objc.supp"
|
|
|
|
fi
|
|
|
|
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
|
|
|
exec valgrind --tool=memcheck \
|
|
|
|
$VALGRIND_OPTIONS \
|
|
|
|
--track-origins=yes \
|
|
|
|
--suppressions=${TOP}/tools/valgrind.supp \
|
|
|
|
$OBJSUPP \
|
2019-07-02 11:33:56 -04:00
|
|
|
$TOP/build/headless/hardour-$ARDOURVERSION --novst "$@"
|