no_test_requires.diff 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. diff -Naur LWP-UserAgent-Cached-0.06/Makefile.PL LWP-UserAgent-Cached-0.06.patched/Makefile.PL
  2. --- LWP-UserAgent-Cached-0.06/Makefile.PL 2014-06-27 13:32:55.000000000 -0400
  3. +++ LWP-UserAgent-Cached-0.06.patched/Makefile.PL 2015-05-12 18:40:40.000000000 -0400
  4. @@ -4,33 +4,7 @@
  5. # See lib/ExtUtils/MakeMaker.pm for details of how to influence
  6. # the contents of the Makefile that is written.
  7. -my %test_requires = (
  8. - 'Test::Mock::LWP::Dispatch' => 0.02,
  9. - 'File::Temp' => 0
  10. -);
  11. -
  12. -my $not_installed_test_modules = '';
  13. -while (my ($module, $ver) = each %test_requires) {
  14. -
  15. - eval "use $module $ver";
  16. - if ($@) {
  17. - $not_installed_test_modules .= "\t$module $ver\n";
  18. - }
  19. -}
  20. -
  21. -if ($not_installed_test_modules) {
  22. - my $choose = prompt(
  23. - "We need few optional additional modules to test this package on your system:\n".
  24. - $not_installed_test_modules.
  25. - "If you'll choose `n' this tests will be skipped.\n".
  26. - "Append this modules to installation queue?",
  27. - "y"
  28. - );
  29. -
  30. - if ($choose =~ /n/) {
  31. - %test_requires = ();
  32. - }
  33. -}
  34. +my %test_requires = ();
  35. $test_requires{'Test::More'} = 0.88;