xref: /aoo4110/main/testtools/readme.txt (revision b1cdbd2c)
1*b1cdbd2cSJim JagielskiHow to check compatibility between compilers
2*b1cdbd2cSJim Jagielski============================================
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim JagielskiSince the interfaces used in the cpp bridgetest are not changed often
5*b1cdbd2cSJim Jagielskione can just build the cppobj.uno.dll and the constructors.uno.dll
6*b1cdbd2cSJim Jagielski(testtools/source/bridgetest) in an
7*b1cdbd2cSJim Jagielskiold environment and then use them in the new environment. That is the files
8*b1cdbd2cSJim Jagielskiare copied into the testtools/wntmsciXX.pro folder which corresponds to the
9*b1cdbd2cSJim Jagielskinew environment.
10*b1cdbd2cSJim Jagielski
11*b1cdbd2cSJim JagielskiOn Windows this test will typically fail because the tests use the
12*b1cdbd2cSJim Jagielskicppu::getCaughtException function, which only works when all libs are build
13*b1cdbd2cSJim Jagielskiusing the same runtime.
14*b1cdbd2cSJim Jagielski
15*b1cdbd2cSJim JagielskiThis part of the test can switched off. To do this go into the
16*b1cdbd2cSJim Jagielskitesttools/source/bridgetest folder and call
17*b1cdbd2cSJim Jagielskidmake compcheck=1
18*b1cdbd2cSJim Jagielski
19*b1cdbd2cSJim JagielskiThis will add a new compiler define (-DCOMPCHECK) and will be used in the
20*b1cdbd2cSJim Jagielskibridgetest.cxx to switch off the code which uses the getCaughtException function.
21*b1cdbd2cSJim JagielskiHowever, there is still a test which causes the test component to throw
22*b1cdbd2cSJim Jagielskiand IllegalArgumentException. This still works.
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski
25*b1cdbd2cSJim JagielskiUsing source/bridgetest for stress testing
26*b1cdbd2cSJim Jagielski==========================================
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim JagielskiStart a modified bridgetest_server (with the final "--singleaccept" argument
29*b1cdbd2cSJim Jagielskiremoved from the uno executable call) or a modified bridgetest_javaserver (with
30*b1cdbd2cSJim Jagielskithe final "singleaccept" argument replaced with "multi" in the java executable
31*b1cdbd2cSJim Jagielskicall), then start a modified bridgetest_client (with a final "stress" argument
32*b1cdbd2cSJim Jagielskiadded to the uno executable call).  The client will continuously establish
33*b1cdbd2cSJim Jagielskiconnections to the server which are immediately destroyed again.  The test will
34*b1cdbd2cSJim Jagielskirun forever, unless an error occurs.
35