Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jk2addict (4946)

jk2addict
  (email not shown publicly)
http://today.icantfocus.com/blog/
AOL IM: chrislaco (Add Buddy, Send Message)
Yahoo! ID: chrislaco@sbcglobal.net (Add User, Send Message)
Jabber: laco@scribblewerks.com

Journal of jk2addict (4946)

Wednesday August 09, 2006
08:56 AM

Too Many Tests

[ #30576 ]
So, I was sitting behind the laptop writing tests for the compat layer in Handel 1.0 and it happened:

   nmake test
   big list of test names.."line too long"

Well, I guess that's one problem to have, too many test files under Windows. After googling, I came upon this post about the issue, and decided to upgrade my EU::MM install. The upgrade didn't fix my problem until I removed this from my Makefile.PL:

    test  => { TESTS => join ' ', (glob("t/*.t t/*/*.t"))}

It's a good thing I decided not to use subdirectories for tests, or I would be screwed right now. Now the real question is, what happens to the testers runs when I slap a "use ExtUtils::MakeMaker 6.25" at the top of my Makefile?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • When you slap a 'use' statement in your script,
    running 'perl Makefile.PL' will just die with an error,
    and that's the end of the install process :(

    Safest bet is to bundle it in an inc/ directory. You
    could look at Module::Install to see how to do this.

    You *could* add to your Prereq_pm, but that doesn't
    save you from writing a Makefile with the old EU::MM
    that you had loaded when executing this, so you'd have
    to do clever Makefile trickery with a preamble section
    *shudder*
    • Since EU::MM 6.30 is from May of 2005, I'm terribly worried about the testers. Bundling is a PITA, and frankly, the inc/ crap that M::I pulls is just another form of disaster with versioning. Since most testers aren't win32, this shouldn't be an issue. I guess we'll find our here as soon as I chuck out another release.
  • As people find ways to avoid typing the exact number of tests they have (or at least, in your case, try), I don't quite understand why the Test modules insist on you counting them.
  • This is peculiar. By my count you have only 98 tests under t/. In ExtUtils::ModuleMaker, I have over 2000 tests arranged in the same two-tier structure you are using. Yet I have never had a problem installing it on Windows, nor have I received any complaint about such a problem. And I am using exactly the same line in my Makefile.PL that you were using.

    Jim Keenan (perplexed)