Skip to content
Snippets Groups Projects
Commit b8dd3899 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

run: add PHOSH_VALGRIND=1 to use valgrind

so we don't have to remember the options
parent da6fba98
No related branches found
No related tags found
No related merge requests found
_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" $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment