summaryrefslogtreecommitdiff
path: root/tests/twisted/tools/exec-with-log.sh.in
blob: 6f37ef814c428fb2efa279832b62251019f72c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

cd "@abs_top_builddir@/tests/twisted/tools"

export RAKIA_DEBUG=all
export TPORT_LOG=1
G_MESSAGES_DEBUG=all
export G_MESSAGES_DEBUG
ulimit -c unlimited
exec > rakia-testing.log 2>&1

if test -n "$RAKIA_TEST_VALGRIND"; then
	export G_DEBUG=gc-friendly
	export G_SLICE=always-malloc
	RAKIA_WRAPPER="valgrind --leak-check=full"
#	RAKIA_WRAPPER="$RAKIA_WRAPPER --gen-suppressions=all"
	RAKIA_WRAPPER="$RAKIA_WRAPPER --suppressions=@abs_top_srcdir@/tests/suppressions/tp-glib.supp"
	RAKIA_WRAPPER="$RAKIA_WRAPPER --suppressions=@abs_top_srcdir@/tests/suppressions/rakia.supp"
fi

exec $RAKIA_WRAPPER @abs_top_builddir@/src/telepathy-rakia