From df203a23f4d96fae5fbc61bb180c4db8f63e63ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 1 Feb 2017 01:57:20 +0100 Subject: testing: Run tests that use DCOP in a temporary home MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdewallet/backend/tests/backendtest.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tdewallet/backend/tests/backendtest.sh (limited to 'tdewallet/backend/tests/backendtest.sh') 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 -- cgit v1.2.1