Credits patch
[p5sagit/p5-mst-13.2.git] / t / README
CommitLineData
a266333a 1This is the perl test library. To run the test suite, just type './TEST'
2or 'make test' from the build directory above t/. See also the section
3"Special Make Test Targets" in pod/perlhack.pod to learn about other
4specific test commands.
8d063cd8 5
6To add new tests, just look at the current tests and do likewise.
a266333a 7The library t/test.pl provides some utility functions that you can use
8in most tests, except in the most basic ones.
8d063cd8 9
10If a test fails, run it by itself to see if it prints any informative
11diagnostics. If not, modify the test to print informative diagnostics.
12If you put out extra lines with a '#' character on the front, you don't
13have to worry about removing the extra print statements later since TEST
14ignores lines beginning with '#'.
15
774d564b 16If you know that Perl is basically working but expect that some tests
17will fail, you may want to use Test::Harness thusly:
bd87065d 18 cd t
bbad3607 19 ./perl -I../lib harness
774d564b 20This method pinpoints failed tests automatically.
bbad3607 21
e22791c4 22If you come up with new tests, please send them to perlbug@perl.org.
b25e12d2 23
bd87065d 24Tests in the t/base/ directory ought to be runnable with plain miniperl.
b25e12d2 25That is, they should not require Config.pm nor should they require any
26extensions to have been built. TEST will abort if any tests in the
bd87065d 27t/base/ directory fail.
28
244d9cb7 29Tests in the t/comp/, t/cmd/, t/run/, t/io/, t/op/ and t/uni/ directories
30should also be runnable by miniperl and not require Config.pm, but
31failures to comply will not cause TEST to abort like for t/base/.