Here's some links to tutorials about how Perl's testing system works. Test::Tutorial. Enough to get you going. perldoc Test::Tutorial http://search.cpan.org/dist/Test-Simple/lib/Test/Tutorial.pod
Test::Simple. The simplest possible testing library. One function. Good place to start. Forward compatible with Test::More. perldoc Test::Simple http://search.cpan.org/dist/Test-Simple/lib/Test/Simple.pm Test::More. The standard issue Perl testing module. All the fink tests are written using this so far. perldoc Test::More http://search.cpan.org/dist/Test-Simple/lib/Test/More.pm Slides of the Testing Tutorial given at OSCON last year. Basically an expanded version of Test::Tutorial. http://wgz.org/chromatic/talks/TestTutorial/index.html [EMAIL PROTECTED] Perl mailing list for testing issues. http://nntp.x.perl.org/group/perl.qa To run the test suite: make test To run a single test: cd t && perl -I../perlmod directory/thattest.t The tests expect to be run from t/. You can also run the tests in the debugger, just like any other program. In the end, tests are just another small Perl program. What makes it a test is that it prints out "ok" when things pass and "not ok" when they fail. Other than that, its just a normal program. If you're experiencing a failure and can't figure out why or how to fix it, at the very least post the failure to fink-devel. If you're not sure how much to post, just trap the whole output of "make test" and post that. Too much information is better than not enough. The failing tests contain diagnostic information that's often enough to figure out what's gone wrong. PS Write O'Reilly and tell them a perl testing book would be a GREAT IDEA! ;) -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ I need a SHOWER a BURGER and some ROBOTS, STAT! -- http://www.angryflower.com/allrigh.gif ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel