On Fri, Jul 02, 2004 at 09:51:32AM -0700, David Wheeler wrote:
> Oh, quite right. My fault. This patch fixes the docs:
>
> --- TestMB.pm.~1.2.~ Fri Jun 25 18:55:53 2004
> +++ TestMB.pm Fri Jul 2 09:49:40 2004
> @@ -180,7 +180,7 @@
> my $build_pkg = eval { require Apache::TestMB }
> ? 'Apache::TestMB' : 'Module::Build';
>
> - my $build = $build_pkg->new(
> + $build_pkg->new(
> module_name => 'My::Module',
> )->create_build_script;
Actually I'd prefer the following format:
my $build = $build_pkg->new (...);
$build->create_build_script;
The reason is that this shows how to work with a build object. This is
necessary if you want to use methods such as generate_script.
> I don't know what's in the SMOKE script, since I never used it.
I copied it verbatim from the testing page[1] on the mod_perl website.
It's a handy utility!
> You can use Apache::TestMB->generate_script, however; will that work?
When I try running generate_smoke, I get the following output:
Can't locate object method "generate_script" via package "Apache::TestMB" at
Build.PL line 62.
> It should do pretty much the same things as
> Apache::TestMM::generate_smoke().
Should that be Apache::TestMM::generate_script()?
Regards,
William
[1]
http://perl.apache.org/docs/general/testing/testing.html#C_Apache__TestSmoke__Solution
--
Knowmad Services Inc.
http://www.knowmad.com