perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: cvs commit: modperl-2.0/lib/ModPerl TestRun.pm
Date Fri, 07 Nov 2003 18:07:36 GMT

> the attached patch makes it possible to use -bugreport with the 
> Apache::TestRun(Perl)->generate_script() form

sorry, I meant to include examples.  with this patch, you can use the 
following formats in your Makefile.PL

# scalars are printed in the post-error banner
Apache::TestRun(Perl)->generate_script(bugreport => 'some message');

# subroutines are eval'd when t/TEST is generated, so config-time
# variables such as Apache::TestConfig::IS_MOD_PERL_2 can be used
Apache::TestRun(Perl)->generate_script(bugreport => sub { 'some message' });

# continues to work as before (if anyone actually uses it)
Apache::TestRun->generate_script('t/TEST');

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message