Add author/test-externals.pl to test external distributions that depend on Mouse
[gitmo/Mouse.git] / author / munge-tests-for-moose.pl
index 4bbfa36..96ec4da 100755 (executable)
@@ -3,10 +3,13 @@ use strict;
 use warnings;
 
 BEGIN {
-    @ARGV = glob('t/*.t t/*/*.t');
+    @ARGV = glob('t/*.t t/*/*.t') if !@ARGV;
     $^I = '';
 }
 
-s/Mouse/Moose/g;
+next if $ARGV =~ /squirrel/i; # Squirrel tests are for both Moose and Mouse
+
+s/Mouse(?!::Tiny)/Moose/g;
+
 s/Moose::(load_class|is_class_loaded)/Class::MOP::$1/g;