testing: run tdeio/kmimetypetest with temporary profile
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 4d3d8d8653
)
v3.5.13-sru
parent
3c559266a6
commit
6af3551328
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# create profile for test
|
||||||
|
KDEHOME=@CMAKE_CURRENT_BINARY_DIR@/profile
|
||||||
|
mkdir $KDEHOME $KDEHOME/share
|
||||||
|
ln -s @CMAKE_SOURCE_DIR@/mimetypes $KDEHOME/share/mimelnk
|
||||||
|
export KDEHOME
|
||||||
|
|
||||||
|
# run dcop server
|
||||||
|
../../dcop/dcopserver --nofork &
|
||||||
|
DCOP_SERVER_PID=$!
|
||||||
|
|
||||||
|
# update ksycoca using mime types from source
|
||||||
|
../../kded/kbuildsycoca --noincremental --nosignal
|
||||||
|
|
||||||
|
# perform test
|
||||||
|
./kmimetypetest
|
||||||
|
STATE=$?
|
||||||
|
|
||||||
|
# cleanup
|
||||||
|
kill $DCOP_SERVER_PID
|
||||||
|
rm -fr $KDEHOME
|
||||||
|
exit $STATE
|
Loading…
Reference in New Issue