fix for 'mysqlc: Use unique_ptr on C style arrays'
[LibreOffice.git] / testtools / README
blobc71e4c8b607d9eba7ba34f4a35b404b273b81cad
1 Testing tools
3 == How to check compatibility between compilers ==
5 Since the interfaces used in the cpp bridgetest are not changed often
6 one can just build the cppobj.uno.dll and the constructors.uno.dll
7 (testtools/source/bridgetest) in an
8 old environment and then use them in the new environment. That is the files
9 are copied into the testtools/wntmsciXX.pro folder which corresponds to the
10 new environment.
12 On Windows this test will typically fail because the tests use the
13 cppu::getCaughtException function, which only works when all libs are build
14 using the same runtime.
16 This part of the test can switched off. To do this go into the
17 testtools/source/bridgetest folder and call
18 dmake compcheck=1
20 This will add a new compiler define (-DCOMPCHECK) and will be used in the
21 bridgetest.cxx to switch off the code which uses the getCaughtException function.
22 However, there is still a test which causes the test component to throw
23 and IllegalArgumentException. This still works.
26 == Using source/bridgetest for stress testing ==
28 Start a modified bridgetest_server (with the final "--singleaccept" argument
29 removed from the uno executable call) or a modified bridgetest_javaserver (with
30 the final "singleaccept" argument replaced with "multi" in the java executable
31 call), then start a modified bridgetest_client (with a final "stress" argument
32 added to the uno executable call).  The client will continuously establish
33 connections to the server which are immediately destroyed again.  The test will
34 run forever, unless an error occurs.