On Mon, Apr 01, 2002 at 10:56:14AM -0600, Dave Rolsky wrote:
> > Hmmm.  This can't be preserved.  Wouldn't it be a lot less magical to
> > just put the %ENV logic into your tests, or a library in t/lib which
> > your tests use?
> 
> I'm not sure what you mean about putting it _in_ the tests.  We have to
> set the variables somewhere.  But yes, I could write out a file to t/lib.

Oh, you want arguments passed into Makefile.PL to be passed through to
your tests.  errmmm... generate a config file.  Sorry I can't think of
anything more imaginative.


> > Setting $ENV{MASON_VERBOSE} off TEST_VERBOSE, OTOH, is tricky.  How
> > does one do it in Module::Build?
> 
>   sub ACTION_test
>   {
>     my $self = shift;
> 
>     $ENV{APACHE_DIR}    = $self->{args}{apache_dir};
>     $ENV{PORT}          = $self->{args}{port};
>     $ENV{MASON_VERBOSE} = $self->{args}{mason_verbose};
> 
>     $self->SUPER::ACTION_test;
>   }

Not having to indirectly call a subprocess to do your bidding has its
advantages.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
You're smoother than a tunnel of shining sorrow.

Reply via email to