NetWare port from Guruprasad S <SGURUPRASAD@novell.com>.
[p5sagit/p5-mst-13.2.git] / NetWare / t / Readme.txt
1
2
3                 Automated Testing of Perl5.6.1 Interpreter for NetWare.
4
5
6
7 A set of Standard Unit Test Scripts to test all the functionalities of Perl 5.6.1 Interpreter are available along with the CPAN download. They are all located under 't' folder. These include sub-folders under 't' folder: 'base', 'cmd', 'comp', 'io', lib', 'op', 'pod', 'pragma', 'run'. Each of these sub-folders contain few test scripts ('.t' files) under them.
8
9 Executing these test scripts on NetWare can be automated as per the following:
10
11 1. Automated scripts, 'base.pl', 'cmd.pl', 'comp.pl', 'io.pl', 'lib.pl', 'op.pl', 'pod.pl', 'pragma.pl', 'run.pl' can be generated that are used to execute all the test scripts ('.t' files) under the corresponding folder.
12 For example, 'base.pl' tests all the test scripts under 'sys:\perl\scripts\t\base' folder, 'comp.pl' test all scripts under 'sys:\perl\scripts\t\comp' folder and so on.
13
14 2. An automated script, 'auto.pl' can also be generated that executes all the above mentioned '.pl' automated scripts, thus executing all the '.t' scripts.
15
16 There is a script 'NWScripts.pl' available under the 'NetWare\t' folder of the CPAN download. This is written to generate these automated scripts when executed on a NetWare server. It generates the automated scripts, 'base.pl', 'cmd.pl', 'comp.pl', 'io.pl', 'lib.pl', 'op.pl', 'pod.pl', 'pragma.pl', 'run.pl' and also 'auto.pl' by including all the corresponding '.t' scripts in them. For example, all the scripts that are under 't\base' folder will be entered in 'base.pl' and so on. 'auto.pl will include all these '.pl' scripts like 'base.pl', 'comp.pl' etc.
17
18
19 The following steps elicits the procedure for executing the automated scripts:
20
21 1. Copy the 't' folder from the CPAN download to 'sys:\perl\scripts' folder on the NetWare server.
22
23 2. Copy all the files from 'NetWare\t' folder of the CPAN download into 'sys:\perl\scripts\t' folder.
24
25 3. Execute the command  "perl t\NWModify.pl" on the console command prompt. This script replaces 
26      "@INC = " with "unshift @INC, "  and
27      "push @INC, " with "unshift @INC, "
28    from all the scripts under 'sys:\perl\scripts\t' folder.
29
30 This 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.
31
32 4. 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.
33    (See above for details).
34
35 5. Execute 'auto.pl' script using the server console command, "perl t\auto.pl" to run all the standard test scripts. If you want the results to be redirected into a file, say 'auto.txt', then the console command is:  "perl t\auto.pl > auto.txt"
36
37 6. If you want to execute certain set of scripts, then run the corresponding '.pl' file. For example, if you want to execute only the 'lib' scripts, then execute 'run.pl' through the server console command, "perl t\run.pl'. To redirect the results into a file, the console command could be, "perl t\run.pl > run.txt".
38
39
40 Known Issues:
41
42 The following scripts are commented out in the corresponding autoscript:
43
44 1. 'openpid.t' in 'sys:\perl\scripts\t\io.pl' script
45    Reason:
46      This either hangs or abends the server when executing through auto scripts.
47      When run individually, the script execution goes through fine.
48
49 2. 'argv.t' in 'sys:\perl\scripts\t\io.pl' script
50    Reason:
51      This either hangs or abends the server when executing through auto scripts.
52      When run individually, the script execution goes through fine.
53
54 3. 'filehand.t' in 'sys:\perl\scripts\t\lib.pl' script
55    Reason:
56      This hangs in the last test case where it uses FileHandle::Pipe whether run individually
57      or through an auto script.
58