NetWare tweaks from Guruprasad.
[p5sagit/p5-mst-13.2.git] / NetWare / t / Readme.txt
CommitLineData
2986a63f 1
2
225a5dca 3 Automated Testing of Perl5 Interpreter for NetWare.
2986a63f 4
5
6
225a5dca 7A set of Standard Unit Test Scripts to test all the functionalities of Perl5 Interpreter are available along with the CPAN download. They are all located under 't' folder. These include sub-folders under 't' such as: 'base', 'cmd', 'comp', 'io', lib', 'op', 'pod', 'pragma' and 'run'. Each of these sub-folders contain few test scripts ('.t' files) under them.
2986a63f 8
9Executing these test scripts on NetWare can be automated as per the following:
10
225a5dca 111. Generate automated scripts like 'base.pl', 'cmd.pl', 'comp.pl', 'io.pl', 'lib.pl', 'op.pl', 'pod.pl', 'pragma.pl', 'run.pl' that execute all the test scripts ('.t' files) under the corresponding folder.
12For example, 'base.pl' to test all the scripts under 'sys:\perl\scripts\t\base' folder,
13 'comp.pl' to test all the scripts under 'sys:\perl\scripts\t\comp' folder and so on.
2986a63f 14
225a5dca 152. Generate an automated script, 'nwauto.pl' that executes all the above mentioned '.pl' automated scripts, thus in turn executing all the '.t' scripts.
2986a63f 16
225a5dca 17The script, 'NWScripts.pl' available under the 'NetWare\t' folder of the CPAN download, is written to generate these automated scripts when executed on a NetWare server. It generates 'base.pl', 'cmd.pl', 'comp.pl', 'io.pl', 'lib.pl', 'op.pl', 'pod.pl', 'pragma.pl', 'run.pl' and also 'nwauto.pl' by including all the corresponding '.t' scripts in them in backtick operators.
18For example, all the scripts that are under 't\base' folder will be entered in 'base.pl' and so on. 'nwauto.pl' includes all these '.pl' scripts like 'base.pl', 'comp.pl' etc.
2986a63f 19
20
21The following steps elicits the procedure for executing the automated scripts:
22
225a5dca 231. Make sure that your NetWare server is mapped to "i:".
2986a63f 24
225a5dca 252. Execute "nmake nwinstall" (after complete build) in the 'NetWare' folder of the CPAN download. This installs all the library files, perl modules and all the 't' scripts in appropriate folders onto your server.
2986a63f 26
225a5dca 273. Copy all the files from 'NetWare\t' folder of the CPAN download into 'sys:\perl\scripts\t' folder.
28
294. Execute the command "perl t\NWModify.pl" on the console command prompt of your server. This script replaces
2986a63f 30 "@INC = " with "unshift @INC, " and
31 "push @INC, " with "unshift @INC, "
32 from all the scripts under 'sys:\perl\scripts\t' folder.
33
34This is done to include the correct path for libraries into the scripts when executed on NetWare. If this is not done, some of the scripts will not get executed since they cannot locate the corresponding libraries.
35
225a5dca 365. Execute the command "perl t\NWScripts.pl" on the console command prompt to generate the automated scripts mentioned above under the 'sys:\perl\scripts\t' folder.
37
386. Execute the command "perl t\nwauto.pl" on the server console command prompt. This runs all the standard test scripts. If you desire to redirect or save the results into a file, say 'nwauto.txt', then the console command to execute is: "perl t\nwauto.pl > nwauto.txt".
2986a63f 39
225a5dca 407. If you wish to execute only a certain set of scripts, then run the corresponding '.pl' file.
41For example, if you wish to execute only the 'lib' scripts, then execute 'lib.pl' through the server console command, "perl t\lib.pl'. To redirect the results into a file, the console command is, "perl t\lib.pl > lib.txt".
2986a63f 42
2986a63f 43
44
45Known Issues:
46
47The following scripts are commented out in the corresponding autoscript:
48
491. 'openpid.t' in 'sys:\perl\scripts\t\io.pl' script
50 Reason:
225a5dca 51 This either hangs or abends the server when executing through auto scripts. When run individually, the script execution goes through fine.
2986a63f 52
532. 'argv.t' in 'sys:\perl\scripts\t\io.pl' script
54 Reason:
225a5dca 55 This either hangs or abends the server when executing through auto scripts. When run individually, the script execution goes through fine.
2986a63f 56
225a5dca 573. 'filehandle.t' in 'sys:\perl\scripts\t\lib.pl' script
2986a63f 58 Reason:
225a5dca 59 This hangs in the last test case where it uses FileHandle::Pipe whether run individually or through an auto script.
2986a63f 60