xref: /aoo4110/main/sc/source/ui/vba/testvba/README (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielskito run the tests
2*b1cdbd2cSJim Jagielski
3*b1cdbd2cSJim Jagielskibuild
4*b1cdbd2cSJim Jagielski=====
5*b1cdbd2cSJim Jagielski    dmake
6*b1cdbd2cSJim Jagielski
7*b1cdbd2cSJim Jagielskiwindows
8*b1cdbd2cSJim Jagielski=======
9*b1cdbd2cSJim Jagielski   a) you can download a cygwin bash shell environment and install perl ( http://cygwin.com/setup.exe )
10*b1cdbd2cSJim Jagielski      from the cmdline './runTests.pl $(OFFICE_PROGRAM_PATH)' should run the testclient and compare the logs
11*b1cdbd2cSJim Jagielski   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 )
12*b1cdbd2cSJim Jagielski
13*b1cdbd2cSJim Jagielski[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 )
14*b1cdbd2cSJim Jagielski
15*b1cdbd2cSJim Jagielski   to run all test cases type
16*b1cdbd2cSJim Jagielski   'perl ./runTests.pl $(OFFICE_PROGRAM_PATH)'
17*b1cdbd2cSJim Jagielski   to run a test case type
18*b1cdbd2cSJim Jagielski   'perl ./runTests.pl $(OFFICE_PROGRAM_PATH) testfilename'
19*b1cdbd2cSJim Jagielski
20*b1cdbd2cSJim Jagielskiunix
21*b1cdbd2cSJim Jagielski====
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielskiassuming perl is installed
24*b1cdbd2cSJim Jagielski      './runTests.pl $(OFFICE_PROGRAM_PATH)'
25*b1cdbd2cSJim Jagielski    or './runTests.pl $(OFFICE_PROGRAM_PATH) testfilename' for one file test.
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim JagielskiNote: For either windows or unix all of the tests should pass ( and you should get a result like )
29*b1cdbd2cSJim JagielskiNote Also: If you meat a problem that stop running test after serveral test documents have been run. please clean your .ooo-2.0 or .oooxxx first, and then re-run.
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski========>
32*b1cdbd2cSJim Jagielski
33*b1cdbd2cSJim Jagielskiskipped 0 test-cases(s)
34*b1cdbd2cSJim Jagielskicompared 9 test-case documents
35*b1cdbd2cSJim Jagielski                 9 tests passedTests
36*b1cdbd2cSJim Jagielski
37*b1cdbd2cSJim JagielskiNote 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