Commit b8dd3899 authored by Guido Gunther's avatar Guido Gunther

run: add PHOSH_VALGRIND=1 to use valgrind

so we don't have to remember the options
parent da6fba98
_build
vgdump
*.swp
*~
\#*#
......
......@@ -2,6 +2,12 @@
set -e
EXEC="${exec:-$EXEC}"
if [ "${PHOSH_VALGRIND}" = 1 ]; then
echo "Running phosh under valgrind"
EXEC="valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 --log-file=vgdump"
fi
ABS_BUILDDIR='@ABS_BUILDDIR@'
# gnome-session wants org.gnome.Mutter.DisplayConfig
......@@ -17,4 +23,5 @@ gnome-session --session=gnome-dummy --disable-acceleration-check &
export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
export G_MESSAGES_DEBUG=all
set -x
${EXEC} "${ABS_BUILDDIR}/src/phosh" $@
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