diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-01-29 02:35:44 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-01-29 02:48:50 +0100 |
commit | 8d9229ab48e042d7b62766ff1d11b9f081c54ec9 (patch) | |
tree | a4ee003e0db121698d6904a42ddd4f57b1d0fa5b /tdeio/tests/kmimetypetest.sh.cmake | |
parent | a6615bdaaa4ff01b68c661c8eb050ffe03e3d6fb (diff) | |
download | tdelibs-8d9229ab48e042d7b62766ff1d11b9f081c54ec9.tar.gz tdelibs-8d9229ab48e042d7b62766ff1d11b9f081c54ec9.zip |
testing: run tdeio/kmimetypetest with temporary profile
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 4d3d8d865359061916b21e9ab46097e2e4c2fd2c)
Diffstat (limited to 'tdeio/tests/kmimetypetest.sh.cmake')
-rw-r--r-- | tdeio/tests/kmimetypetest.sh.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tdeio/tests/kmimetypetest.sh.cmake b/tdeio/tests/kmimetypetest.sh.cmake new file mode 100644 index 000000000..a242b8dc5 --- /dev/null +++ b/tdeio/tests/kmimetypetest.sh.cmake @@ -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 |