On Saturday 29 April 2006 18:36, Fu, Elva wrote:

> Hi all, I am a newbie for Perl. I found there are many test modules on
> CPAN. It seems some of these test modules are test frameworks, and you
> can add new test cases to test your code. Some of these test modules are
> used to test Perl itself such as Test::Benchmark, Test::AutoLoader etc,
> (maybe they are called "Perl core test" ? ). The question is:
>
> *       We know Perl consists of many standard modules: AutoLoader,
> AutoSplit, Benchmark, CGI, CPAN, Cwd etc, which are distributed with
> Perl itself. 

> (refer to 
> http://www.unix.org.ua/orelly/perl/perlnut/ch08_01.htm
> <http://www.unix.org.ua/orelly/perl/perlnut/ch08_01.htm> ),

Er, please don't refer to that site.  It redistributes copyrighted works 
without the permission of the copyright holder.  (I'm a copyright holder 
myself and have the ability to donate my time and code to the community in 
part because of earnings from my books.)

> So is there an "integrated" test suite/module to test these standard
> modules?

Yes.  It's part of the core source code distribution.  See the t/ directories 
under the root of the distribution as well as those under lib/.

All of the core modules that have distributions on the CPAN as well have their 
own t/ directories containing the same code.

> I also find several test modules to test these standard modules, for
> Test::Benchmark is used to test Benchmark module.  But it is very boring
> to find all of them one by one and download then testing all of the
> standard modules:-(

That's not actually the purpose of Test::Benchmark.

> I would really appreciate if anybody could tell me if there is such an
> "integrated" test suite/module to test all of them at one time.

Not really, not in the sense that you're looking for.  Every distribution has 
its own tests.  If you get a binary distribution, you probably won't get the 
tests.  If you get the source distribution (usually from 
http://www.cpan.org/), the tests are almost always in t/*.

-- c

Reply via email to