summaryrefslogtreecommitdiffstats
path: root/tdewallet/backend/tests/backendtest.sh
blob: d3a6ef0e17c31f41c61ea334e76ca524ed93a558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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