office-gobmx/solenv/bin/checkapi

72 lines
1.7 KiB
Text
Raw Normal View History

#!/bin/bash
CWS-TOOLING: integrate CWS qadev34 2008-11-24 12:04:37 +0100 cn r264220 : #i96037 bugfix: remove superfluous exclamation mark 2008-11-20 20:52:21 +0100 cn r264100 : #i95964 fixes for cygwin 2008-11-20 12:10:41 +0100 cn r264040 : #i95964 replacesment for cwsquery modules 2008-11-10 10:29:48 +0100 cn r263511 : #i96037 register installoffice.oxt 2008-11-07 15:44:58 +0100 cn r263423 : #i95964# changes for 'cwstouched' wihch is a replacemant for 'cwsquery modules' 2008-10-31 14:04:47 +0100 cn r262866 : #i95303# add XDEBUG variable 2008-10-31 14:03:39 +0100 cn r262865 : #i95610# update lists 2008-10-31 09:47:27 +0100 cn r262855 : #i95303# bugfix 2008-10-31 09:47:06 +0100 cn r262854 : #i95303# bugfix 2008-10-30 21:42:14 +0100 cn r262837 : #i95204 remove -OOO_EnvSet parameter 2008-10-30 21:33:18 +0100 cn r262836 : #i95304 add -enableautomation as soffice parameter 2008-10-30 10:20:24 +0100 cn r262822 : #i95610 update lists 2008-10-27 22:00:00 +0100 cn r262691 : #i95513#: add support for -runnerini as aditional ini file 2008-10-27 21:35:17 +0100 cn r262690 : #i95513# use -runnerini instead of -ini 2008-10-23 13:41:32 +0200 cn r262621 : #i95303# changes to run cwscheckapi in cygwin environment 2008-10-22 10:18:36 +0200 cn r262581 : #i95304# disable QuckStarter while trying to dispose the office 2008-10-22 09:59:39 +0200 cn r262580 : #i95303# add cygwin related stuff 2008-10-22 09:59:10 +0200 cn r262579 : #i95303# add cygwin related stuff 2008-10-22 09:57:40 +0200 cn r262578 : #i95303# add property CYGWIN
2008-11-26 06:04:07 -06:00
PS=":"
# cygwin:
if [ "$GUI" = "WNT" ]; then
PS=";"
fi
JARFOLDER=$SOLARVERSION/$INPATH/bin$UPDMINOREXT
SOLVER_LIB=$SOLARVERSION/$INPATH/lib$UPDMINOREXT
CWS-TOOLING: integrate CWS perftest08 2009-07-02 10:03:16 +0200 lla r273621 : #159516# support systems with no JAVA_HOME 2009-07-02 10:00:25 +0200 lla r273620 : #159516# if path is null this not an error 2009-07-01 14:36:05 +0200 lla r273583 : #159516# add check for wrong cygwin path 2009-06-22 13:18:14 +0200 lla r273223 : #159516# add PipeConnectionString 2009-06-18 21:44:59 +0200 lla r273137 : #159516# cleanups 2009-06-18 21:44:17 +0200 lla r273136 : #159516# handle null 2009-06-18 21:42:56 +0200 lla r273135 : #159516# add getElementCount() function 2009-06-15 10:40:05 +0200 lla r272966 : CWS-TOOLING: rebase CWS perftest08 to trunk@272827 (milestone: DEV300:m50) 2009-06-02 09:06:22 +0200 lla r272480 : CWS-TOOLING: rebase CWS perftest08 to trunk@272291 (milestone: DEV300:m49) 2009-05-08 11:40:22 +0200 mib r271710 : #159717#: File name info for performance test (added void to hasLogFile() parameter list) 2009-05-05 14:14:25 +0200 mib r271514 : #159717#: File name info for performance test 2009-05-04 15:23:01 +0200 mib r271466 : #159717#: File name infor for performance test 2009-05-04 15:22:27 +0200 mib r271465 : #159717#: File name infor for performance test 2009-05-04 15:21:56 +0200 mib r271464 : #159717#: File name infor for performance test 2009-05-04 15:21:18 +0200 mib r271462 : #159717#: File name infor for performance test 2009-04-29 16:23:40 +0200 lla r271383 : #159516# cleanups 2009-04-29 16:23:20 +0200 lla r271382 : #159516# cleanups 2009-04-08 12:23:01 +0200 lla r270631 : #159516# typo 2009-04-07 10:30:35 +0200 lla r270580 : #159516# add prototype 2009-04-07 10:21:15 +0200 lla r270579 : #159516# cleanup 2009-04-03 09:05:26 +0200 lla r270448 : #159516# small cleanups 2009-03-30 13:22:26 +0200 lla r270221 : #159517# merge perftest07
2009-07-03 05:14:57 -05:00
# it is possible to give an other OOoRunner.jar
if [ -n "$RUNNERJAR" ]; then
myCLASSPATH=$RUNNERJAR
else
myCLASSPATH=$JARFOLDER/OOoRunner.jar
fi
myCLASSPATH=$myCLASSPATH${PS}${JARFOLDER}/ridl.jar${PS}\
${JARFOLDER}/unoil.jar${PS}\
${JARFOLDER}/jurt.jar${PS}\
${JARFOLDER}/juh.jar${PS}\
${JARFOLDER}/java_uno.jar
myCLASSPATH=$myCLASSPATH${PS}\
/net/unoapi/export/unoapi/bin/mysql.jar${PS}\
$SOLVER_LIB
if [ -n "$JAVAI" ]; then
JAVABIN=$JAVAI
elif [ -n "$JAVA_HOME" ]; then
if [ "$OS$CPUNAME$CPU" = SOLARISSPARCU ]; then
JAVABIN=$JAVA_HOME/bin/sparcv9/java
else
JAVABIN=$JAVA_HOME/bin/java
fi
else
CWS-TOOLING: integrate CWS perftest08 2009-07-02 10:03:16 +0200 lla r273621 : #159516# support systems with no JAVA_HOME 2009-07-02 10:00:25 +0200 lla r273620 : #159516# if path is null this not an error 2009-07-01 14:36:05 +0200 lla r273583 : #159516# add check for wrong cygwin path 2009-06-22 13:18:14 +0200 lla r273223 : #159516# add PipeConnectionString 2009-06-18 21:44:59 +0200 lla r273137 : #159516# cleanups 2009-06-18 21:44:17 +0200 lla r273136 : #159516# handle null 2009-06-18 21:42:56 +0200 lla r273135 : #159516# add getElementCount() function 2009-06-15 10:40:05 +0200 lla r272966 : CWS-TOOLING: rebase CWS perftest08 to trunk@272827 (milestone: DEV300:m50) 2009-06-02 09:06:22 +0200 lla r272480 : CWS-TOOLING: rebase CWS perftest08 to trunk@272291 (milestone: DEV300:m49) 2009-05-08 11:40:22 +0200 mib r271710 : #159717#: File name info for performance test (added void to hasLogFile() parameter list) 2009-05-05 14:14:25 +0200 mib r271514 : #159717#: File name info for performance test 2009-05-04 15:23:01 +0200 mib r271466 : #159717#: File name infor for performance test 2009-05-04 15:22:27 +0200 mib r271465 : #159717#: File name infor for performance test 2009-05-04 15:21:56 +0200 mib r271464 : #159717#: File name infor for performance test 2009-05-04 15:21:18 +0200 mib r271462 : #159717#: File name infor for performance test 2009-04-29 16:23:40 +0200 lla r271383 : #159516# cleanups 2009-04-29 16:23:20 +0200 lla r271382 : #159516# cleanups 2009-04-08 12:23:01 +0200 lla r270631 : #159516# typo 2009-04-07 10:30:35 +0200 lla r270580 : #159516# add prototype 2009-04-07 10:21:15 +0200 lla r270579 : #159516# cleanup 2009-04-03 09:05:26 +0200 lla r270448 : #159516# small cleanups 2009-03-30 13:22:26 +0200 lla r270221 : #159517# merge perftest07
2009-07-03 05:14:57 -05:00
# there seems to be some machines without real java
JAVABIN=$(which java)
if [ -z "$JAVABIN" ]; then
echo "please set environment variable JAVA_HOME"
exit 1
fi
fi
2008-09-30 02:44:27 -05:00
if [ x${USER}x = xx ]; then
if [ x${LOGNAME}x = xx ]; then
echo "ERROR: could not determine username. Please export variable USER" >&2
exit $EXIT_FAILURE
else
USER=$LOGNAME
export USER
fi
fi
PARAM="-cs pipe,name=$USER -SRC_ROOT $SRC_ROOT"
if [ -n "$RUNNERPROPS" ]; then
CWS-TOOLING: integrate CWS qadev34 2008-11-24 12:04:37 +0100 cn r264220 : #i96037 bugfix: remove superfluous exclamation mark 2008-11-20 20:52:21 +0100 cn r264100 : #i95964 fixes for cygwin 2008-11-20 12:10:41 +0100 cn r264040 : #i95964 replacesment for cwsquery modules 2008-11-10 10:29:48 +0100 cn r263511 : #i96037 register installoffice.oxt 2008-11-07 15:44:58 +0100 cn r263423 : #i95964# changes for 'cwstouched' wihch is a replacemant for 'cwsquery modules' 2008-10-31 14:04:47 +0100 cn r262866 : #i95303# add XDEBUG variable 2008-10-31 14:03:39 +0100 cn r262865 : #i95610# update lists 2008-10-31 09:47:27 +0100 cn r262855 : #i95303# bugfix 2008-10-31 09:47:06 +0100 cn r262854 : #i95303# bugfix 2008-10-30 21:42:14 +0100 cn r262837 : #i95204 remove -OOO_EnvSet parameter 2008-10-30 21:33:18 +0100 cn r262836 : #i95304 add -enableautomation as soffice parameter 2008-10-30 10:20:24 +0100 cn r262822 : #i95610 update lists 2008-10-27 22:00:00 +0100 cn r262691 : #i95513#: add support for -runnerini as aditional ini file 2008-10-27 21:35:17 +0100 cn r262690 : #i95513# use -runnerini instead of -ini 2008-10-23 13:41:32 +0200 cn r262621 : #i95303# changes to run cwscheckapi in cygwin environment 2008-10-22 10:18:36 +0200 cn r262581 : #i95304# disable QuckStarter while trying to dispose the office 2008-10-22 09:59:39 +0200 cn r262580 : #i95303# add cygwin related stuff 2008-10-22 09:59:10 +0200 cn r262579 : #i95303# add cygwin related stuff 2008-10-22 09:57:40 +0200 cn r262578 : #i95303# add property CYGWIN
2008-11-26 06:04:07 -06:00
PARAM="$PARAM -runnerini $RUNNERPROPS"
fi
DEBUG_THE_API=""
if [ -n "$DEBUGAPI" ]; then
export DEBUGAPI="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9002,suspend=y"
DEBUG_THE_API=$DEBUGAPI
2008-09-30 02:44:27 -05:00
fi
COMMAND="$JAVABIN -Xmx120m $DEBUG_THE_API -cp $myCLASSPATH org.openoffice.Runner $PARAM $*"
echo $COMMAND
$COMMAND
# if COMMAND fails, it returns also the exitcode