How to fix "command line too long" with "make test" (when you have vast numbers of tests)

As described here:

http://www.nntp.perl.org/group/perl.perl6.compiler/413

'nmake test' on the latest release of Pugs blew up under Windows with
"command line too long" (using ActiveState perl-5.8.6).

Is there a "standard" way to fix this? What do other distributions with
vast numbers of tests do? BTW, "prove -r" does not have this command
line limit because it builds @tests and invokes T::H runtests @tests.

/-\


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
0
ajsavige
3/21/2005 10:24:24 PM
perl.qa 2168 articles. 0 followers. Follow

1 Replies
617 Views

Similar Articles

[PageSpeed] 34
Get it on Google Play
Get it on Apple App Store

On Tue, Mar 22, 2005 at 09:24:24AM +1100, Andrew Savige wrote:
> http://www.nntp.perl.org/group/perl.perl6.compiler/413
> 
> 'nmake test' on the latest release of Pugs blew up under Windows with
> "command line too long" (using ActiveState perl-5.8.6).
> 
> Is there a "standard" way to fix this? What do other distributions with
> vast numbers of tests do? BTW, "prove -r" does not have this command
> line limit because it builds @tests and invokes T::H runtests @tests.

You use globbing instead of spelling each test out on the command line.
That's a Module::Install/autrijusism.

If you want to see how MakeMaker specifically deals with it see
test_harness() in 
http://search.cpan.org/src/MSCHWERN/ExtUtils-MakeMaker-6.25_12/lib/ExtUtils/Command/MM.pm

0
schwern
3/21/2005 10:51:13 PM
Reply: