run.in 774 Bytes
Newer Older
1
#!/bin/sh
Guido Gunther's avatar
Guido Gunther committed
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 16
           --log-file=vgdump         \
           --suppressions=${ABS_SRCDIR}/data/valgrind.suppressions \
   "
17 18 19
elif [ "${PHOSH_GDB}" = 1 ]; then
    echo "Running phosh under gdb"
    WRAPPER="gdb"
20 21
fi

Guido Gunther's avatar
Guido Gunther committed
22
# Start up g-s-d, etc.
Guido Gunther's avatar
Guido Gunther committed
23 24
gnome-session --session=gnome-dummy --disable-acceleration-check &

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