From: Dave Rolsky Date: Wed, 18 Feb 2009 20:20:34 +0000 (+0000) Subject: Extract inline tests when Makefile.PL is run, if we're not an end X-Git-Tag: 0.71~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=de341d84178df1be85a7b284d1edcd2f1fb46cf2;p=gitmo%2FMoose.git Extract inline tests when Makefile.PL is run, if we're not an end user. --- diff --git a/Makefile.PL b/Makefile.PL index 9e90f74..382564e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -20,6 +20,10 @@ requires 'Task::Weaken' => '0'; test_requires 'Test::More' => '0.77'; test_requires 'Test::Exception' => '0.21'; +if ( -d '.svn' || -d '.git' || $ENV{IS_MAINTAINER} ) { + system( $^X, 'extract-inline-tests' ); +} + tests_recursive(); WriteAll();