run.in 875 Bytes
Newer Older
1
#!/bin/sh
2 3
set -e

4 5
ABS_BUILDDIR='@ABS_BUILDDIR@'
ABS_SRCDIR='@ABS_SRCDIR@'
6 7 8

if [ "${PHOSH_VALGRIND}" = 1 ]; then
   echo "Running phosh under valgrind"
9 10 11 12
   WRAPPER="valgrind -v              \
           --tool=memcheck           \
           --leak-check=full         \
           --leak-resolution=high    \
13
           --num-callers=40          \
14 15
           --log-file=vgdump         \
           --suppressions=${ABS_SRCDIR}/data/valgrind.suppressions \
16
           --suppressions=/usr/share/glib-2.0/valgrind/glib.supp \
17
   "
18 19 20
elif [ "${PHOSH_GDB}" = 1 ]; then
    echo "Running phosh under gdb"
    WRAPPER="gdb"
21 22
fi

23
# Start up g-s-d, etc.
24
[ -n "${SKIP_GNOME_SESSION}" ] || gnome-session --session=gnome-dummy --disable-acceleration-check &
Guido Gunther's avatar
Guido Gunther committed
25

26
export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
27
export G_MESSAGES_DEBUG=all
28
set -x
Guido Gunther's avatar
Guido Gunther committed
29
exec ${WRAPPER} "${ABS_BUILDDIR}/src/phosh" $@