summaryrefslogtreecommitdiff
path: root/tests/test-resource-engine
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-22 15:26:12 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-22 15:26:12 +0200
commit5e3a7106ceddff2afc573607a707b0a2e1fa5624 (patch)
treed858894a78a0fcde1ef83bb2653b36347e6399e3 /tests/test-resource-engine
parent8dc1ae12517f4ddd7752b62aa56b64c01b04a6af (diff)
Added wrapper for test-resource-engine
Diffstat (limited to 'tests/test-resource-engine')
-rwxr-xr-xtests/test-resource-engine/test-resource-engine-wrapper9
-rw-r--r--tests/test-resource-engine/test-resource-engine.pro5
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/test-resource-engine/test-resource-engine-wrapper b/tests/test-resource-engine/test-resource-engine-wrapper
new file mode 100755
index 0000000..d894409
--- /dev/null
+++ b/tests/test-resource-engine/test-resource-engine-wrapper
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Source and export D-Bus session info
+. /tmp/dbus-info
+export DBUS_SESSION_BUS_ADDRESS
+export DBUS_SESSION_BUS_PID
+export DBUS_SESSION_BUS_WINDOWID
+
+/usr/lib/libresourceqt-tests/test-resource-engine "$@"
diff --git a/tests/test-resource-engine/test-resource-engine.pro b/tests/test-resource-engine/test-resource-engine.pro
index 6084df7..d976536 100644
--- a/tests/test-resource-engine/test-resource-engine.pro
+++ b/tests/test-resource-engine/test-resource-engine.pro
@@ -32,5 +32,8 @@ PKGCONFIG += dbus-1
# Install directives
INSTALLBASE = /usr
target.path = $${INSTALLBASE}/lib/libresourceqt-tests/
-INSTALLS = target
+wrapper.path = $${INSTALLBASE}/lib/libresourceqt-tests/
+wrapper.files = test-resource-engine-wrapper
+
+INSTALLS = target wrapper