3
# Copyright (C) 2009 Nokia Corporation
4
# Copyright (C) 2009 Collabora Ltd.
6
# This library is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU Lesser General Public
8
# License as published by the Free Software Foundation; either
9
# version 2.1 of the License, or (at your option) any later version.
11
# This library is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# Lesser General Public License for more details.
16
# You should have received a copy of the GNU Lesser General Public
17
# License along with this library; if not, write to the Free Software
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21
cd "@abs_top_builddir@/test/twisted/tools"
24
exec > missioncontrol-$$.log 2>&1
25
ln -f missioncontrol-$$.log missioncontrol.log
27
if test -z "$MC_ACCOUNT_DIR"; then
28
echo "MC_ACCOUNT_DIR must be set"
32
if test -n "$MISSIONCONTROL_TEST_VALGRIND"; then
33
G_DEBUG="$G_DEBUG,gc-friendly"
37
MISSIONCONTROL_WRAPPER="valgrind --leak-check=full --num-callers=20"
38
MISSIONCONTROL_WRAPPER="$MISSIONCONTROL_WRAPPER --track-origins=yes"
39
MISSIONCONTROL_WRAPPER="$MISSIONCONTROL_WRAPPER -v"
40
MISSIONCONTROL_WRAPPER="$MISSIONCONTROL_WRAPPER --suppressions=@abs_top_srcdir@/test/twisted/tools/valgrind.supp"
41
MISSIONCONTROL_WRAPPER="$MISSIONCONTROL_WRAPPER --gen-suppressions=all"
42
MISSIONCONTROL_WRAPPER="$MISSIONCONTROL_WRAPPER --show-reachable=yes"
43
elif test -n "$MISSIONCONTROL_TEST_REFDBG"; then
44
if test -z "$REFDBG_OPTIONS" ; then
45
REFDBG_OPTIONS="btnum=10"
48
if test -z "$MISSIONCONTROL_WRAPPER" ; then
49
MISSIONCONTROL_WRAPPER="refdbg"
53
if test "z$MC_EXECUTABLE" = z; then
54
MC_EXECUTABLE=@abs_top_builddir@/test/twisted/mc-debug-server
57
if test -f "$MC_ACCOUNT_DIR/gnome-keyring-env"; then
58
cat "$MC_ACCOUNT_DIR/gnome-keyring-env"
59
. "$MC_ACCOUNT_DIR/gnome-keyring-env"
60
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID MC_KEYRING_NAME SSH_AUTH_SOCK
63
exec @abs_top_builddir@/libtool --mode=execute \
64
$MISSIONCONTROL_WRAPPER \