Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 4d3d8d8653
)
pull/16/head
parent
a6615bdaaa
commit
8d9229ab48
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# create profile for test
|
||||||
|
TDEHOME=@CMAKE_CURRENT_BINARY_DIR@/profile
|
||||||
|
mkdir $TDEHOME $TDEHOME/share
|
||||||
|
ln -s @CMAKE_SOURCE_DIR@/mimetypes $TDEHOME/share/mimelnk
|
||||||
|
export TDEHOME
|
||||||
|
|
||||||
|
# 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 $TDEHOME
|
||||||
|
exit $STATE
|
Loading…
Reference in new issue