develooper Front page | perl.vmsperl | Postings from June 2002

[PATCH] README.vms -- updated testing instructions

Thread Next
Craig A. Berry
June 16, 2002 22:33
[PATCH] README.vms -- updated testing instructions
Message ID:
--- README.vms;-1	Sat Jun 15 11:53:23 2002
+++ README.vms	Mon Jun 17 00:21:11 2002
@@ -289,6 +289,17 @@
 At the end of all the tests, a summary of the tests, the number passed and 
 failed, and the time taken will be displayed.
+The test driver invoked via MMS TEST has a DCL wrapper ([.VMS]TEST.COM) that
+downgrades privileges to NETMBX, TMPMBX for the duration of the test run,
+and then restores them to their prior state upon completion of testing. 
+This is done to ensure that the tests run in a private sandbox and can do no
+harm to your system even in the unlikely event something goes badly wrong in
+one of the test scripts while running the tests from a privileged account. 
+A side effect of this safety precaution is that the account used to run the
+test suite must be the owner of the directory tree in which Perl has been
+built; otherwise the manipulations of temporary files and directories
+attempted by some of the tests will fail.
 If any tests fail, it means something is wrong with Perl. If the test suite
 hangs (some tests can take upwards of two or three minutes, or more if
 you're on an especially slow machine, depending on your machine speed, so
@@ -304,10 +315,18 @@
 where ".typ" is the file type of the Perl images you just built (if you
 didn't do anything special, use .EXE), and "[.subdir]test.T" is the test
 that failed. For example, with a normal Perl build, if the test indicated
-that [.op]time failed, then you'd do this:
+that t/op/time failed, then you'd do this:
     @ [.VMS]TEST .EXE "" "-v" [.OP]TIME.T
+Note that test names are reported in UNIX syntax and relative to the
+top-level build directory.  When supplying them individually to the test
+driver, you can use either UNIX or VMS syntax, but you must give the path
+relative to the [.T] directory and you must also add the .T extension to the
+filename.  So, for example if the test lib/Math/Trig fails, you would run:
+    @ [.VMS]TEST .EXE "" -"v" [-.lib.math]trig.t
 When you send in a bug report for failed tests, please include the output
 from this command, which is run from the main source directory:
[end of patch]
Craig A. Berry

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About