On Sep 27, 2007, at 2:15 AM, Graham TerMarsch wrote:
On Wednesday 26 September 2007 4:40 pm, Michael G Schwern wrote:
Graham TerMarsch wrote:
How about I take a different approach here, and ask...
What would be the recommended way to minimize the number of
automated
CPANPLUS test failures, knowing that I -have- to have Apache::Test
installed in order for the tests to run successfully?
Write a Build.PL with a compatibility Makefile.PL and make sure that
Apache::Test is in the MakeMaker PREREQ_PM. You appear to be
doing that so
it should work. Is it not?
No.
The gotcha is, that when "perl Makefile.PL" is run, if Apache::Test
isn't
installed at -that- moment, it doesn't set up the test harness
properly.
Even if the build tool goes out and downloads and installs
Apache::Test, it'd
need to come back and re-run "perl Makefile.PL" again before
attempting to
build/test/install my package.
CPANPLUS doesn't do that.
Instead, it just goes back and runs "make" after its installed the
dependencies.
Thus, -none- of the test suites succeed, as the harness wasn't set
up properly
when "perl Makefile.PL" was run.
This is a known issue and something that afaik Adam Kennedy is
looking to
resolve with having 'configure requires' support in META.yml.
Unfortunately, there's no standard solution for this. What a lot of
people
do currently (myself included), is to bundle these prerequisites.
I'm not sure how easy this is with Apache::Test though.
Good luck,
--
Jos Boumans
"If superman is so smart, why does he wear underpants over his
trousers?"
CPANPLUS http://cpanplus.sf.net