bump product version to 4.1.6.2
[LibreOffice.git] / smoketest / losmoketest
blobd43a178731fa66fee261605a7237c07039a43d22
1 #!/bin/sh
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
11 sd_cwd=`pwd`
12 sd_res=$0
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"`
17 done
18 cd "`dirname "$sd_res"`"
19 sd_prog=`pwd`
20 cd "$sd_cwd"
22 user_conf_dir=`grep UserInstallation $sd_prog/bootstraprc | sed -e "s|UserInstallation=||" -e "s|\\$SYSUSERCONFIG|$HOME/.config|"`
24 case "`uname -s`" in
25 Linux)
26 sd_prog1="$sd_prog"
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
31 esac
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