use Test::Needs for backend tests
[p5sagit/JSON-MaybeXS.git] / Makefile.PL
index d32e628..5ed0bbc 100644 (file)
@@ -29,6 +29,7 @@ my %META = (
     test => {
       requires => {
         'Test::More' => '0.88',
+        'Test::Needs' => '0.002006',
       },
     },
   },
@@ -102,6 +103,9 @@ $MM_ARGS{NO_MYMETA} = 1
   if $mymeta_broken;
 $MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META }
   unless -f 'META.yml';
+$MM_ARGS{PL_FILES} ||= {};
+$MM_ARGS{NORECURS} = 1
+  if not exists $MM_ARGS{NORECURS};
 
 for (qw(configure build test runtime)) {
   my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';