[tapx-dev] [commit][207] Build.PL - 'testruntests' target
ewilhelm at hexten.net
ewilhelm at hexten.net
Thu Aug 2 01:18:19 BST 2007
Revision: 207
Author: ewilhelm
Date: 2007-08-02 01:18:19 +0100 (Thu, 02 Aug 2007)
Log Message:
-----------
Build.PL - 'testruntests' target
(to make it easier to eat the cake we're baking)
Modified Paths:
--------------
trunk/Build.PL
Modified: trunk/Build.PL
===================================================================
--- trunk/Build.PL 2007-08-01 22:58:24 UTC (rev 206)
+++ trunk/Build.PL 2007-08-02 00:18:19 UTC (rev 207)
@@ -3,7 +3,19 @@
use Module::Build;
use 5.005;
-my $builder = Module::Build->new(
+# NOTE: make this actually be inc/MyBuilder.pm if it gets any bigger
+my $build_class = Module::Build->subclass(
+ class => 'inc::MyBuilder',
+ code => <<' SUBCLASS',
+ sub ACTION_testruntests {
+ my $self = shift;
+ $self->depends_on('code');
+ exec($^X, '-Iblib/lib', 'bin/runtests', '-Iblib/lib');
+ }
+ SUBCLASS
+);
+
+my $builder = $build_class->new(
module_name => 'TAP::Parser',
license => 'perl',
meta_merge => {
More information about the tapx-dev
mailing list