summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2012-05-16 07:31:58 -0400
committerAndy Dougherty <doughera@lafayette.edu>2012-05-16 07:31:58 -0400
commit36bded947b191af9d49762ac9409f96f0d5905d7 (patch)
tree7e51fb9de1fc0f23d25faf74d6e4487050195408 /INSTALL
parentc43ca372962ed8b6058df231649647686874e1fe (diff)
downloadperl-36bded947b191af9d49762ac9409f96f0d5905d7.tar.gz
[perl #112924] [PATCH] Clarify test instructions in INSTALL
While trying to track down a failed test, I found the instructions in the INSTALL file to be less than optimal. This patch re-orders the suggestions to put the ones most likely to work first, clarifies which directory you should be in, and moves a "see-also" type reference to where it is more likely to be useful. The catalyst for this was that ./perl -MTestInit cpan/Archive-Extract/t/01_Archive-Extract.t fails because it can't find strict.pm. (See [perl #1122926].) Since it's probably not the only such case, I thought it useful and prudent to advise using t/harness instead as a first recourse.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL19
1 files changed, 12 insertions, 7 deletions
diff --git a/INSTALL b/INSTALL
index ea9345e3cb..17707c97c3 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1865,7 +1865,7 @@ F</usr/local/arm/2.95.5>:
This will run the regression tests on the perl you just made. If
'make test' doesn't say "All tests successful" then something went
-wrong. See the file t/README in the t subdirectory.
+wrong.
Note that you can't run the tests in background if this disables
opening of /dev/tty. You can use 'make test-notty' in that case but
@@ -1874,13 +1874,10 @@ a few tty tests will be skipped.
=head2 What if make test doesn't work?
If make test bombs out, just cd to the t directory and run ./TEST
-by hand to see if it makes any difference. If individual tests
-bomb, you can run them by hand, e.g.,
+by hand to see if it makes any difference.
- ./perl -MTestInit t/op/groups.t
-
-Another way to get more detailed information about failed tests and
-individual subtests is to cd to the t directory and run
+One way to get more detailed information about failed tests and
+individual subtests is to run the harness from the t directory:
cd t ; ./perl harness <list of tests>
@@ -1888,12 +1885,20 @@ individual subtests is to cd to the t directory and run
complicated constructs). If no list of tests is provided, harness
will run all tests.
+If individual tests fail, you can often run them by hand (from the main
+perl directory), e.g.,
+
+ ./perl -MTestInit t/op/groups.t
+
You should also read the individual tests to see if there are any helpful
comments that apply to your system. You may also need to setup your
shared library path if you get errors like:
/sbin/loader: Fatal Error: cannot map libperl.so
+The file t/README in the t subdirectory contains more information about
+running and modifying tests.
+
See L</"Building a shared Perl library"> earlier in this document.
=over 4