xref: /trunk/main/ure/source/uretest/README (revision cdf0e10c)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir
29*cdf0e10cSrcweirThis directory contains test files for the UNO Runtime Environment (URE) as well
30*cdf0e10cSrcweiras the Makefile and Makefile.pln makefiles.  To execute the makefiles, you need
31*cdf0e10cSrcweirGNU make 3.80 or later.
32*cdf0e10cSrcweir
33*cdf0e10cSrcweir
34*cdf0e10cSrcweirMakefile
35*cdf0e10cSrcweir--------
36*cdf0e10cSrcweir
37*cdf0e10cSrcweirBefore you execute Makefile, you need to configure the Software Development Kit
38*cdf0e10cSrcweir(SDK) environment to work with a URE installation, a C++ compiler, and a JDK.
39*cdf0e10cSrcweirFor more information, read the .../docs/install.html file in the SDK
40*cdf0e10cSrcweirinstallation.
41*cdf0e10cSrcweir
42*cdf0e10cSrcweirNOTE: On Linux x86, if the Makefile accesses a GCC that is incompatible with the
43*cdf0e10cSrcweirGCC that was used to build the URE, use the GCCS_COMPAT environment variable as
44*cdf0e10cSrcweira workaround.  For more details, see the UDK README file.
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir
47*cdf0e10cSrcweirMakefile.pln
48*cdf0e10cSrcweir------------
49*cdf0e10cSrcweir
50*cdf0e10cSrcweirYou can only run Makefile.pln on Linux x86.  You do not need to configure your
51*cdf0e10cSrcweirSDK environment to use this makefile, however, you do need to set the following
52*cdf0e10cSrcweirenvironment variables:
53*cdf0e10cSrcweir
54*cdf0e10cSrcweir- SDK_HOME
55*cdf0e10cSrcweirPoints to the base directory of an OpenOffice.org SDK so that you can access UNO
56*cdf0e10cSrcweirprogramming tools and files that are not part of the URE.  For example, idlc,
57*cdf0e10cSrcweircppumaker, javamaker, UNOIDL files, and C++ headers.
58*cdf0e10cSrcweir
59*cdf0e10cSrcweir- PATH
60*cdf0e10cSrcweirPoints to a GCC installation (including g++) as well as a JDK installation that
61*cdf0e10cSrcweircontains the java, javac, and jar executables.  For the minimum version
62*cdf0e10cSrcweirrequirements, see the SDK Installation Guide ($SDK_HOME/docs/install.html).
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir- URE_HOME (optional)
65*cdf0e10cSrcweirOverwrites the default URE location, that is, /opt/openoffice.org/ure.
66*cdf0e10cSrcweir
67*cdf0e10cSrcweir- GXX_INCLUDE_PATH (optional)
68*cdf0e10cSrcweirOverwrites the default location of the GCC C++ headers (/usr/include/g++).  This
69*cdf0e10cSrcweirinformation is needed by the STLport included in the URE.
70*cdf0e10cSrcweir
71*cdf0e10cSrcweir- GCCS_COMPAT (optional)
72*cdf0e10cSrcweirFixes incompatibility issues between the GCC that was used to build the URE and
73*cdf0e10cSrcweirthe GCC that Makefile.pln accesses.  For more details, see the UDK README file.
74*cdf0e10cSrcweir
75*cdf0e10cSrcweir
76*cdf0e10cSrcweirTests
77*cdf0e10cSrcweir-----
78*cdf0e10cSrcweir
79*cdf0e10cSrcweirMakefile and Makefile.pln can execute the following tests:
80*cdf0e10cSrcweir
81*cdf0e10cSrcweir- test-cpptest
82*cdf0e10cSrcweirBuilds a C++ UNO component, cppmain.uno, and runs the component with the uno
83*cdf0e10cSrcweirexecutable.  The component first attempts to instantiate all the UNO services
84*cdf0e10cSrcweirand singletons that are part of the URE installation.  The component then tries
85*cdf0e10cSrcweirto instantiate and to call another C++ UNO component (ccptest.uno) as well as a
86*cdf0e10cSrcweirJava UNO component (javatest.uno).  The test completes when these components
87*cdf0e10cSrcweirthrow a special exception that is caught by cppmain.uno.
88*cdf0e10cSrcweir
89*cdf0e10cSrcweir- test-javatest
90*cdf0e10cSrcweirBuilds a Java UNO component, javamain.uno, and runs the component with the uno
91*cdf0e10cSrcweirexecutable.  The component tries to instantiate and to call a C++ UNO component
92*cdf0e10cSrcweir(cpptest.uno) as well as a Java UNO component (javatest.uno).  The test
93*cdf0e10cSrcweircompletes when these components throw a special exception that is caught by
94*cdf0e10cSrcweirjavamain.uno.
95*cdf0e10cSrcweir
96*cdf0e10cSrcweir- test-javanative
97*cdf0e10cSrcweirBuilds a Java UNO application, javanative.jar, and runs the application with the
98*cdf0e10cSrcweirjava executable.  The application bootstraps a native UNO environment, and then
99*cdf0e10cSrcweirtries to instantiate and to call a C++ UNO component (cpptest.uno) as well as a
100*cdf0e10cSrcweirJava UNO component( javatest.uno).  The test completes when these components
101*cdf0e10cSrcweirthrow a special exception that is caught by javanative.jar.
102*cdf0e10cSrcweir
103*cdf0e10cSrcweir- test-clientserver
104*cdf0e10cSrcweirBuilds a server C++ UNO component, cppserver.uno, and a Java UNO application,
105*cdf0e10cSrcweirjavaclient.uno.  The uno executable runs the cppserver.uno component which
106*cdf0e10cSrcweirlistens on a pipe connection.  The java executable runs the javaclient.uno
107*cdf0e10cSrcweircomponent which connects to the server after a five second pause so that the
108*cdf0e10cSrcweirserver has enough time to start.
109*cdf0e10cSrcweir
110*cdf0e10cSrcweir- test-regview (Makefile.pln only)
111*cdf0e10cSrcweirChecks that the regview executable of the URE installation works reliably.
112*cdf0e10cSrcweir
113*cdf0e10cSrcweirNOTE: The files that are generated when Makefile and Makefile.pln execute are
114*cdf0e10cSrcweirsaved to different local directories.  Makefile outputs the generated files to
115*cdf0e10cSrcweir./out.sdk whereas Makefile.pln outputs the files to ./out.pln.
116