On Mon, 1 Apr 2002, Michael G Schwern 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.

> 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;
  }

Except that doesn't quite work yet cause Ken hasn't created a good way to
set mason_verbose, though it could just be:

  perl Build.PL --mason-verbose=1


-dave

/*==================
www.urth.org
we await the New Sun
==================*/

Reply via email to