File: nonfree_tests.patch

package info (click to toggle)
libimager-perl 1.005%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,308 kB
  • ctags: 4,067
  • sloc: perl: 30,915; ansic: 27,680; makefile: 55; cpp: 4
file content (58 lines) | stat: -rw-r--r-- 1,732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Subject: Skipping tests dependent on removed files
Forwarded: not-needed
Author: Nicholas Bamber <nicholas@periapt.co.uk>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2016-11-28

--- a/FT2/t/t10ft2.t
+++ b/FT2/t/t10ft2.t
@@ -352,6 +352,8 @@
          "and returns correct error when we ask");
 
   # try a MM font now - test font only has A defined
+  SKIP: {
+    skip "MMOne.pfb file removed for copyright reasons", 11;
   print "# Try a multiple master font\n";
   my $mmfont = Imager::Font->new(file=>"fontfiles/MMOne.pfb", type=>"ft2", 
                                  color=>"white", aa=>1, size=>60);
@@ -384,6 +386,7 @@
 
   push @test_output, "t38mm.ppm";
   ok($mmim->write(file=>"testout/t38mm.ppm"), "save MM output");
+ }
 
  SKIP:
   { print "# alignment tests\n";
--- a/README
+++ b/README
@@ -5,7 +5,8 @@
 modify it under the same terms as Perl itself.
 
 A test font, FT2/fontfiles/MMOne.pfb contains Postscript code
-copyrighted by Adobe.  See adobe.txt for license information.
+copyrighted by Adobe.  However for the Debian system
+this has been removed for copyright reasons.
 ================================================================
 
 >> THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY WHATSOEVER <<
--- a/T1/t/t10type1.t
+++ b/T1/t/t10type1.t
@@ -1,6 +1,6 @@
 #!perl -w
 use strict;
-use Test::More;
+use Test::More qw(skip_all);
 use Imager ':all';
 use Imager::Test qw(diff_text_with_nul is_color3 is_image isnt_image);
 use Imager::Font::T1;
--- a/T1/t/t20oo.t
+++ b/T1/t/t20oo.t
@@ -2,7 +2,7 @@
 use strict;
 use Imager;
 use Imager::Test qw(isnt_image);
-use Test::More tests => 14;
+use Test::More skip_all => 'removed non-DFSG material';
 
 # extracted from t/t36oofont.t