summaryrefslogtreecommitdiffstats
path: root/tdewallet/backend/tests/backendtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tdewallet/backend/tests/backendtest.sh')
-rw-r--r--tdewallet/backend/tests/backendtest.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tdewallet/backend/tests/backendtest.sh b/tdewallet/backend/tests/backendtest.sh
new file mode 100644
index 000000000..d3a6ef0e1
--- /dev/null
+++ b/tdewallet/backend/tests/backendtest.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# create temporary home
+export HOME=$PWD/test-home
+mkdir $HOME
+
+# run dcop server
+../../../dcop/dcopserver --nofork &
+DCOP_SERVER_PID=$!
+
+# perform test
+./backendtest
+STATE=$?
+
+# cleanup
+kill $DCOP_SERVER_PID
+rm -fr test-home
+exit $STATE