xref: /AOO42X/main/sc/source/ui/vba/testvba/README (revision 9ab950247f3795555bc3aad16cf36637f403a18e)
1cdf0e10cSrcweirto run the tests
2cdf0e10cSrcweir
3cdf0e10cSrcweirbuild
4cdf0e10cSrcweir=====
5cdf0e10cSrcweir    dmake
6cdf0e10cSrcweir
7cdf0e10cSrcweirwindows
8cdf0e10cSrcweir=======
9cdf0e10cSrcweir   a) you can download a cygwin bash shell environment and install perl ( http://cygwin.com/setup.exe )
10cdf0e10cSrcweir      from the cmdline './runTests.pl $(OFFICE_PROGRAM_PATH)' should run the testclient and compare the logs
11cdf0e10cSrcweir   b) use ordinary windows perl [1], but additionally you will need the 'diff' program for window ( download from http://gnuwin32.sourceforge.net/packages/diffutils.htm )
12cdf0e10cSrcweir
13cdf0e10cSrcweir[1] for the testclient the perl ( all inclusive ) bundle from ActivePerl is mor e than adeqate ( download from http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.8.822-MSWin32-x86-280952.msi )
14cdf0e10cSrcweir
15cdf0e10cSrcweir   to run all test cases type
16cdf0e10cSrcweir   'perl ./runTests.pl $(OFFICE_PROGRAM_PATH)'
17cdf0e10cSrcweir   to run a test case type
18cdf0e10cSrcweir   'perl ./runTests.pl $(OFFICE_PROGRAM_PATH) testfilename'
19cdf0e10cSrcweir
20cdf0e10cSrcweirunix
21cdf0e10cSrcweir====
22cdf0e10cSrcweir
23cdf0e10cSrcweirassuming perl is installed
24cdf0e10cSrcweir      './runTests.pl $(OFFICE_PROGRAM_PATH)'
25cdf0e10cSrcweir    or './runTests.pl $(OFFICE_PROGRAM_PATH) testfilename' for one file test.
26cdf0e10cSrcweir
27cdf0e10cSrcweir
28cdf0e10cSrcweirNote: For either windows or unix all of the tests should pass ( and you should get a result like )
29*9ab95024SJohn BamptonNote Also: If you meat a problem that stop running test after several test documents have been run. please clean your .ooo-2.0 or .oooxxx first, and then re-run.
30cdf0e10cSrcweir
31cdf0e10cSrcweir========>
32cdf0e10cSrcweir
33cdf0e10cSrcweirskipped 0 test-cases(s)
34cdf0e10cSrcweircompared 9 test-case documents
35cdf0e10cSrcweir                 9 tests passedTests
36cdf0e10cSrcweir
37cdf0e10cSrcweirNote also: the testclient will attempt to connect to an existing instance of open-office, when the testClient exits the soffice process may still be running, if you wish to repeat tests you may want to kill the office instance before re-running.
38