xref: /aoo42x/main/ure/source/uretest/README (revision 81e6fec9)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23This directory contains test files for the UNO Runtime Environment (URE) as well
24as the Makefile and Makefile.pln makefiles.  To execute the makefiles, you need
25GNU make 3.80 or later.
26
27
28Makefile
29--------
30
31Before you execute Makefile, you need to configure the Software Development Kit
32(SDK) environment to work with a URE installation, a C++ compiler, and a JDK.
33For more information, read the .../docs/install.html file in the SDK
34installation.
35
36Makefile.pln
37------------
38
39You can only run Makefile.pln on Linux x86.  You do not need to configure your
40SDK environment to use this makefile, however, you do need to set the following
41environment variables:
42
43- SDK_HOME
44Points to the base directory of an OpenOffice.org SDK so that you can access UNO
45programming tools and files that are not part of the URE.  For example, idlc,
46cppumaker, javamaker, UNOIDL files, and C++ headers.
47
48- PATH
49Points to a GCC installation (including g++) as well as a JDK installation that
50contains the java, javac, and jar executables.  For the minimum version
51requirements, see the SDK Installation Guide ($SDK_HOME/docs/install.html).
52
53- URE_HOME (optional)
54Overwrites the default URE location, that is, /opt/openoffice.org/ure.
55
56- GXX_INCLUDE_PATH (optional)
57Overwrites the default location of the GCC C++ headers (/usr/include/g++).  This
58information is needed by the STLport included in the URE.
59
60Tests
61-----
62
63Makefile and Makefile.pln can execute the following tests:
64
65- test-cpptest
66Builds a C++ UNO component, cppmain.uno, and runs the component with the uno
67executable.  The component first attempts to instantiate all the UNO services
68and singletons that are part of the URE installation.  The component then tries
69to instantiate and to call another C++ UNO component (ccptest.uno) as well as a
70Java UNO component (javatest.uno).  The test completes when these components
71throw a special exception that is caught by cppmain.uno.
72
73- test-javatest
74Builds a Java UNO component, javamain.uno, and runs the component with the uno
75executable.  The component tries to instantiate and to call a C++ UNO component
76(cpptest.uno) as well as a Java UNO component (javatest.uno).  The test
77completes when these components throw a special exception that is caught by
78javamain.uno.
79
80- test-javanative
81Builds a Java UNO application, javanative.jar, and runs the application with the
82java executable.  The application bootstraps a native UNO environment, and then
83tries to instantiate and to call a C++ UNO component (cpptest.uno) as well as a
84Java UNO component( javatest.uno).  The test completes when these components
85throw a special exception that is caught by javanative.jar.
86
87- test-clientserver
88Builds a server C++ UNO component, cppserver.uno, and a Java UNO application,
89javaclient.uno.  The uno executable runs the cppserver.uno component which
90listens on a pipe connection.  The java executable runs the javaclient.uno
91component which connects to the server after a five second pause so that the
92server has enough time to start.
93
94- test-regview (Makefile.pln only)
95Checks that the regview executable of the URE installation works reliably.
96
97NOTE: The files that are generated when Makefile and Makefile.pln execute are
98saved to different local directories.  Makefile outputs the generated files to
99./out.sdk whereas Makefile.pln outputs the files to ./out.pln.
100