summaryrefslogtreecommitdiffstats
path: root/tdewallet/backend/tests/backendtest.sh
blob: d4f1ba686e680dc3b5e771f261f7abd4df133241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# create temporary home
export HOME=$PWD/test-home
mkdir $HOME
export ICEAUTHORITY=$HOME/.ICEauthority

# run dcop server
../../../dcop/dcopserver --nofork &
DCOP_SERVER_PID=$!

while ! ../../../dcop/dcopserver --serverid 2>/dev/null; do
  sleep 2
done

# perform test
./backendtest
STATE=$?

# cleanup
kill $DCOP_SERVER_PID
rm -fr test-home
exit $STATE