summaryrefslogtreecommitdiffstats
path: root/tdeio/tests/kmimetypetest.sh.cmake
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-12-06 10:50:13 +0100
committerSlávek Banko <[email protected]>2020-12-06 10:50:13 +0100
commit19f44e5ff3756172540e768fc0d08d761f0c374e (patch)
tree962f74609254b68bdf67dbd25e91421fbaedfbce /tdeio/tests/kmimetypetest.sh.cmake
parent1f1bd93ca8a699e5acae0b9dc7d9ee25189954d9 (diff)
downloadtdelibs-19f44e5ff3756172540e768fc0d08d761f0c374e.tar.gz
tdelibs-19f44e5ff3756172540e768fc0d08d761f0c374e.zip
tests: Wait for the dcop server to be ready.
Use a separate ICEAUTHORITY for tests. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdeio/tests/kmimetypetest.sh.cmake')
-rw-r--r--tdeio/tests/kmimetypetest.sh.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/tdeio/tests/kmimetypetest.sh.cmake b/tdeio/tests/kmimetypetest.sh.cmake
index 3bcd98669..55a0ffbc6 100644
--- a/tdeio/tests/kmimetypetest.sh.cmake
+++ b/tdeio/tests/kmimetypetest.sh.cmake
@@ -5,11 +5,16 @@ 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
+export ICEAUTHORITY=$HOME/.ICEauthority
# run dcop server
../../dcop/dcopserver --nofork &
DCOP_SERVER_PID=$!
+while ! ../../dcop/dcopserver --serverid 2>/dev/null; do
+ sleep 2
+done
+
# update tdesycoca using mime types from source
../../kded/tdebuildsycoca --noincremental --nosignal