blob: 3bcd98669274c6779a07bbb2f8242c529ba20093 (
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
HOME=@CMAKE_CURRENT_BINARY_DIR@/test-home
mkdir $HOME $HOME/.trinity $HOME/.trinity/share
ln -s @CMAKE_SOURCE_DIR@/mimetypes $HOME/.trinity/share/mimelnk
export HOME
# run dcop server
../../dcop/dcopserver --nofork &
DCOP_SERVER_PID=$!
# update tdesycoca using mime types from source
../../kded/tdebuildsycoca --noincremental --nosignal
# perform test
./kmimetypetest
STATE=$?
# cleanup
kill $DCOP_SERVER_PID
rm -fr test-home
exit $STATE
|