error handling and tests therefore
[scpubgit/App-EzPz.git] / Makefile.PL
index 8860481..fdccdc6 100644 (file)
@@ -3,6 +3,14 @@ use warnings FATAL => 'all';
 use 5.008001;
 use ExtUtils::MakeMaker;
 
+my $full_test = $ENV{TEST_APP_EZPZ} ||= do {
+  prompt("Run integration tests? (y/n)", "n") eq "y"
+};
+
+if ($full_test) {
+  mkdir('test-setup');
+}
+
 WriteMakefile(
   NAME => 'App-EzPz',
   VERSION => 0,
@@ -13,6 +21,7 @@ WriteMakefile(
     'Eval::WithLexicals' => 0,
     'IPC::System::Simple' => 0,
     strictures => 0,
-    'File::Which' => 0
+    'File::Which' => 0,
+    'Capture::Tiny' => 0,
   }
 );