summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-02-08 11:52:22 +0100
committerThomas Haller <thaller@redhat.com>2015-02-09 12:10:13 +0100
commite7356ef0a6fa94b20850d6f8ca73bfac17589510 (patch)
tree48c31deb4388b2476ad3ab758412b584b7e79a16 /tools
parentbf68917ca309e8d5c0528214913f0c95c34d3c7e (diff)
downloadNetworkManager-e7356ef0a6fa94b20850d6f8ca73bfac17589510.tar.gz
libnm/tests: enable valgrind for libnm tests
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run-test-valgrind.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/run-test-valgrind.sh b/tools/run-test-valgrind.sh
index 84659fc85b..7eac4a80b7 100755
--- a/tools/run-test-valgrind.sh
+++ b/tools/run-test-valgrind.sh
@@ -3,6 +3,14 @@
LIBTOOL="$1"; shift
VALGRIND="$1"; shift
SUPPRESSIONS="$1"; shift
+if [ "$1" = "--launch-dbus" ]; then
+ # Spawn DBus if there's none
+ if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
+ eval `dbus-launch --sh-syntax`
+ trap "kill $DBUS_SESSION_BUS_PID" EXIT
+ fi
+ shift
+fi
TEST="$1"; shift
LOGFILE="valgrind-`echo "$TEST" | tr -cd '[:alpha:]-'`.log"