3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 # resolve installation directory
13 while [ -h "$sd_res" ] ; do
14 cd "`dirname "$sd_res"`"
15 sd_basename
=`basename "$sd_res"`
16 sd_res
=`ls -l "$sd_basename" | sed "s/.*$sd_basename -> //g"`
18 cd "`dirname "$sd_res"`"
22 user_conf_dir
=`grep UserInstallation $sd_prog/bootstraprc | sed -e "s|UserInstallation=||" -e "s|\\$SYSUSERCONFIG|$HOME/.config|"`
27 sd_prog2
="$sd_prog/../ure/lib"
28 LD_LIBRARY_PATH
=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
29 export LD_LIBRARY_PATH
33 exec $sd_prog/cppunittester \
34 -env:UNO_SERVICES
=file://$sd_prog/..
/ure
/share
/misc
/services.rdb \
35 -env:UNO_TYPES
=file://$sd_prog/..
/ure
/share
/misc
/types.rdb\
file://$sd_prog/types
/offapi.rdb \
36 -env:arg-soffice
=path
:$sd_prog/soffice \
37 -env:arg-user
=$user_conf_dir \
38 -env:arg-env
=$LD_LIBRARY_PATH \
39 -env:arg-testarg.smoketest.doc
=$sd_prog/..
/share
/test
/smoketestdoc.sxw \
40 --protector $sd_prog/unoexceptionprotector.so unoexceptionprotector \
41 $sd_prog/libsmoketest.so