in reply to Configuring Catalyst's Makefile.PL?

I hate to have to answer my own question, but I figured it out.

The default Makefile.PL that is supplied uses inc::Module::Install which is just a thin wrapper around Module::Install. There was some promising-looking but highly misleading code in Module::Install::Makefile. When I got past that, it turns out that I seem to be getting the default behaviour from ExtUtils::MakeMaker. Which is to run everything of the form t/*.t, and to also execute a file called test.pl if one exists.

My solution was therefore to create a file called test.pl that looks like this:

# Run all of the tests below the lib directory. exec(qw(prove --lib lib --recurse lib));
Ugly and hackish, but it works.

Replies are listed 'Best First'.
Re^2: Configuring Catalyst's Makefile.PL?
by ysth (Canon) on Mar 23, 2009 at 03:12 UTC
      No problems with that here.

      I tested that by editing the Makefile to have a new option that depended on test running, and found that this option properly stopped at the failing test and did not do any further actions.

      But thanks for making me concerned enough to test it.

Re^2: Configuring Catalyst's Makefile.PL?
by Your Mother (Archbishop) on Mar 23, 2009 at 03:13 UTC

    I love to not have to answer your question and still get the benefits though. :) Nice going.