Skip some tests for Moose
[gitmo/Mouse.git] / Makefile.PL
index 39b0fe7..f9c1517 100755 (executable)
@@ -2,6 +2,9 @@ use strict;
 use warnings;
 use inc::Module::Install;
 
+system($^X, 'author/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0
+    or warn "Cannot generate Mouse::Tiny: $!";
+
 name     'Mouse';
 all_from 'lib/Mouse.pm';
 
@@ -19,8 +22,6 @@ include 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wr
 
 recommends 'MRO::Compat' if $] < 5.010;
 
-makemaker_args PL_FILES => { 'author/generate-mouse-tiny.pl' => 'lib/Mouse/Tiny.pm' };
-
 if ($Module::Install::AUTHOR) {
     local @INC = ('lib', @INC);
     require 'lib/Mouse/Spec.pm';
@@ -73,7 +74,8 @@ sub create_moose_compatibility_test {
 
                 return if /failing/; # skip tests in failing/ directories which  are Moose specific
 
-                return if /100_with_moose/; # tests with Moose
+                return if /with_moose/; # tests with Moose
+                return if /100_bugs/;   # some tests require Mouse specific files
                 return if /deprecated/;
 
                 my $basename = File::Basename::basename($_);