Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On 12/02/2011 11:39 AM, Bjoern Michaelsen wrote:
On Fri, Dec 02, 2011 at 10:14:59AM +0000, Michael Meeks wrote:
        Cool. Please lets do that by having some magic parameter to
soffice.bin: eg. --load-run-test=/foo/baa/test.py or somesuch, so that
it is all executed in the same process: rather than doing this
hard-to-debug remote-control-ness :-)

Doesnt smoketest do something like that? IIRC it injects the testcode with a
document that is loaded.

It loads the document and executes the contained BASIC code via a remote css.frame.XComponentLoader.loadComponentFromURL/css.frame.XNotifyingDispatch.dispatchWithNotification sequence. Might actually also work for Python scripts. Is a bit cumbersome, though, as the BASIC testcode is actually XML already (see smoketestoo_native/data/*.xml) and returning test status information is more of a hack than anything, passing some string that the remote code checks for being empty (and if it is not empty, it should indicate what went wrong; but debugging in this BASCI scenario is rather a catastrophe).

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.