Apache OpenOffice (AOO) Bugzilla – Issue 111558
installationtest.mk: allow override of tested soffice process
Last modified: 2010-06-18 08:53:46 UTC
For various reasons, it would be useful if the tests based on solenv/inc/installationtest.mk (smoketestoo_native, */qa/unoapi, etc.) would not always use the soffice program from the solver OOo installation (placed there by smoketestoo_native), but if the user could manually override that.
Created attachment 69436 [details] implementation
The attached DEV300_m77-ooo_test_soffice.patch would solve this, and reportedly works as desired on Linux (sb) and Windows (iha).
adapted DEV300_m77-ooo_test_soffice.patch applied as <http://hg.services.openoffice.org/cws/sb120/rev/7c3dbf1f2f9f>
verified on unxsoli4; both smoketestoo_native (C++ based) and configmgr/qa/unoapi (Java based) work with OOO_TEST_SOFFICE=path:... and OOO_TEST_SOFFICE=connect:...
Documentation: The OOO_TEST_SOFFICE environment variable can be used to override which soffice executable is used by the tests based on solenv/inc/installationtest.mk (smoketestoo_native, */qa/unoapi, ...). When set as OOO_TEST_SOFFICE=path:<full pathname of soffice executable> the tests do not use the soffice executable from the solver installation (installed there by smoketestoo_native), but instead the specified one. The argument must be the complete, platform native pathname of the soffice executable (i.e., on Unix it must end in ".../soffice" and on Windows in ".../soffice.exe"; on Windows it must not be a Cygwin-style "/cygdrive/..." path). The tests still start that soffice executable with a temporary user installation, and still terminate it when finished testing. When set as OOO_TEST_SOFFICE=connect:<URP connection description> the tests do not start an soffice executable at all, but instead try to connect to one via the given URP connection. The argument must be the connection string without the trailing ";urp" (e.g., "socket,host=localhost,port=12345" or "pipe,name=foo"). The tests still try to terminate the connected soffice process when finished (via com.sun.star.frame.XDesktop.terminate), but no longer notice if the soffice process crashes during termination (i.e., the tests do not wait on the soffice process). (When OOO_TEST_SOFFICE is set while building smoketestoo_native, the OOo solver installation is still created, even though it is not used for the current test. On Windows, when OOO_TEST_SOFFICE is set, no temporary OOo installation is unpacked by any of the tests.)
... additional quoting fix <http://hg.services.openoffice.org/cws/sb120/rev/d92652211cf0>
.