Perl Quality Assurance Projects (http://qa.perl.org/)
There are multiple projects in the Perl community related to * improving and testing the quality and portability of Perl modules and Perl itself, and * using Perl's QA tools for general software development. It seems there are really an “Integrated” test suites existed to test Perl itself. Who could give me a hand to find it? Thanks in advance. Elva Fu -----Original Message----- From: Fu, Elva [mailto:[EMAIL PROTECTED] Sent: 2006年4月30日 11:24 To: chromatic; perl-qa@perl.org Subject: RE: Is there an "integrated" test suite/module to test all standard modules of Perl itself? Thank you chromatic for your quick help! It seems I didn’t express my question very well:-), please let me clarify it more detail: I download Perl-5.8.6-15.i386.rpm, then install on a new platform. I want to ensure the quality of the whole package work well on the new platform (though it should be ok, I still need to run most of automatic test cases to test the source code to verify this point, something like unit test:-)). To meet the requirement, I think I can search for automatically test suite to do the job. Search-search-search---, then I found the CPAN! But after having a quick look, I found each test suite falls into each test modules, just as you said, each distribution has its own test suite. I need to download each of them and run one by one. It’s very boring, and also I maybe miss some modules to test. So I send the original mail to ask help to seek for an “integrated” test module. Another example, for Python-2.4.1-2.i386.rpm, after installing, a test directory appears under “/usr/lib/python2.4/test”, then I can run it to do the unit test. I just want to find similar “test” for Perl-5.8.6-15.i386.rpm. Hope it is clearer now:-) Well thanks again! Elva Fu -----Original Message----- From: chromatic [mailto:[EMAIL PROTECTED] Sent: 2006年4月30日 9:56 To: perl-qa@perl.org Cc: Fu, Elva Subject: Re: Is there an "integrated" test suite/module to test all standard modules of Perl itself? 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