TDE core libraries
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

kmimetypetest.sh.cmake 477B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. # create temporary home
  3. HOME=@CMAKE_CURRENT_BINARY_DIR@/test-home
  4. mkdir $HOME $HOME/.trinity $HOME/.trinity/share
  5. ln -s @CMAKE_SOURCE_DIR@/mimetypes $HOME/.trinity/share/mimelnk
  6. export HOME
  7. # run dcop server
  8. ../../dcop/dcopserver --nofork &
  9. DCOP_SERVER_PID=$!
  10. # update tdesycoca using mime types from source
  11. ../../kded/tdebuildsycoca --noincremental --nosignal
  12. # perform test
  13. ./kmimetypetest
  14. STATE=$?
  15. # cleanup
  16. kill $DCOP_SERVER_PID
  17. rm -fr test-home
  18. exit $STATE