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
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to