From: Dave Rolsky Date: Fri, 31 Dec 2010 18:33:44 +0000 (-0500) Subject: Allow setting DZIL_TEST_INC env var when running dzil test X-Git-Tag: 1.9900~3^2~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aa0d8521e24304bb71e5fcd63f18078a8bb73cac;p=gitmo%2FMoose.git Allow setting DZIL_TEST_INC env var when running dzil test --- diff --git a/inc/MakeMaker.pm b/inc/MakeMaker.pm index 254b97e..4c5f55d 100644 --- a/inc/MakeMaker.pm +++ b/inc/MakeMaker.pm @@ -27,4 +27,13 @@ override _build_WriteMakefile_args => sub { }; }; +override test => sub { + my $self = shift; + + local $ENV{PERL5LIB} = join ':', + grep {defined} @ENV{ 'PERL5LIB', 'DZIL_TEST_INC' }; + + super(); +}; + 1;