diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/fonts | |
parent | Initial commit. (diff) | |
download | lintian-upstream.tar.xz lintian-upstream.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/fonts')
58 files changed, 299 insertions, 0 deletions
diff --git a/t/recipes/checks/fonts/files-adobe-font/build-spec/debian/control.in b/t/recipes/checks/fonts/files-adobe-font/build-spec/debian/control.in new file mode 100644 index 0000000..41d290d --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/build-spec/debian/control.in @@ -0,0 +1,19 @@ +Source: [% $source %] +Priority: optional +Section: fonts +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no +Homepage: http://lintian.debian.org/ + +Package: fonts-[% $source %] +Architecture: [% $package_architecture %] +Depends: ${misc:Depends} +Multi-Arch: foreign +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + diff --git a/t/recipes/checks/fonts/files-adobe-font/build-spec/debian/install b/t/recipes/checks/fonts/files-adobe-font/build-spec/debian/install new file mode 100644 index 0000000..f589ca9 --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/build-spec/debian/install @@ -0,0 +1 @@ +*.pfb usr/share/lintian/fonts/ diff --git a/t/recipes/checks/fonts/files-adobe-font/build-spec/fill-values b/t/recipes/checks/fonts/files-adobe-font/build-spec/fill-values new file mode 100644 index 0000000..d1f8dad --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-adobe-font +Description: Test for adobe font license issues diff --git a/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/Makefile b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/Makefile new file mode 100644 index 0000000..6b48449 --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/Makefile @@ -0,0 +1,8 @@ +all: bad.pfb good.pfb badnocredit.pfb badwithadobecode.pfb + +%.pfb: %.raw + t1asm $< > $@ + +clean: + rm -f *.pfb + diff --git a/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/bad.raw b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/bad.raw new file mode 100644 index 0000000..37b5d60 --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/bad.raw @@ -0,0 +1,16 @@ +%!PS-AdobeFont-1.0: Untitled1 001.000 +%%Title: bad +%Version: 001.000 +%%CreationDate: Mon Dec 10 21:21:58 2012 +%%Creator: nthykier,,, +%Copyright: Created by nthykier,,, hand-crafted +%%EndComments + +/RD{string currentfile exch readstring pop}executeonly def + +% The statements below are here to trick Lintian... +% Copyright (c) 1987-1990 Adobe Systems Incorporated. +% All Rights Reserved. + +2 index /CharStrings 2 dict dup begin + diff --git a/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/badnocredit.raw b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/badnocredit.raw new file mode 100644 index 0000000..1270b84 --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/badnocredit.raw @@ -0,0 +1,15 @@ +%!PS-AdobeFont-1.0: Untitled1 001.000 +%%Title: badnocredit +%Version: 001.000 +%%CreationDate: Mon Dec 10 21:21:58 2012 +%%Creator: roucaries.bastien,,, +%Copyright: Created by roucaries.bastien,,, hand-crafted +%%EndComments + +/RD{string currentfile exch readstring pop}executeonly def + +% The code below is here to trick Lintian... +trick { /startlock get exec } def + +2 index /CharStrings 2 dict dup begin + diff --git a/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/badwithadobecode.raw b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/badwithadobecode.raw new file mode 100644 index 0000000..4822d8d --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/badwithadobecode.raw @@ -0,0 +1,17 @@ +%!PS-AdobeFont-1.0: Untitled1 001.000 +%%Title: badwithadobecode +%Version: 001.000 +%%CreationDate: Mon Dec 10 21:21:58 2012 +%%Creator: roucaries.bastien,,, +%Copyright: Created by roucaries.bastien,,, hand-crafted +%%EndComments + +/RD{string currentfile exch readstring pop}executeonly def + +% The code below is here to trick Lintian... +% Copyright (c) 1987-1990 Adobe Systems Incorporated. +% All Rights Reserved. +trick { /startlock get exec } def + +2 index /CharStrings 2 dict dup begin + diff --git a/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/good.raw b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/good.raw new file mode 100644 index 0000000..fd50247 --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/build-spec/orig/good.raw @@ -0,0 +1,15 @@ +%!PS-AdobeFont-1.0: Untitled1 001.000 +%%Title: good +%Version: 001.000 +%%CreationDate: Mon Dec 10 21:21:58 2012 +%%Creator: nthykier,,, +%Copyright: Created by nthykier,,, hand-crafted +%%EndComments + +/RD{string currentfile exch readstring pop}executeonly def + +% This file has no license issues (bad.raw doesn't either, but +% we pretend it does). + +2 index /CharStrings 2 dict dup begin + diff --git a/t/recipes/checks/fonts/files-adobe-font/eval/desc b/t/recipes/checks/fonts/files-adobe-font/eval/desc new file mode 100644 index 0000000..12aa013 --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/eval/desc @@ -0,0 +1,2 @@ +Testname: files-adobe-font +Check: fonts diff --git a/t/recipes/checks/fonts/files-adobe-font/eval/hints b/t/recipes/checks/fonts/files-adobe-font/eval/hints new file mode 100644 index 0000000..6e39fb6 --- /dev/null +++ b/t/recipes/checks/fonts/files-adobe-font/eval/hints @@ -0,0 +1,4 @@ +fonts-files-adobe-font (binary): font-outside-font-dir [usr/share/lintian/fonts/good.pfb] +fonts-files-adobe-font (binary): font-outside-font-dir [usr/share/lintian/fonts/badwithadobecode.pfb] +fonts-files-adobe-font (binary): font-outside-font-dir [usr/share/lintian/fonts/badnocredit.pfb] +fonts-files-adobe-font (binary): font-outside-font-dir [usr/share/lintian/fonts/bad.pfb] diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/debian/control.in b/t/recipes/checks/fonts/files-fonts/build-spec/debian/control.in new file mode 100644 index 0000000..851be7b --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/debian/control.in @@ -0,0 +1,31 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no +Homepage: http://lintian.debian.org/ + +Package: [% $source %] +Architecture: all +Depends: ${misc:Depends} +Description: [% $description %] + Non-font package containing fonts. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: ttf-[% $source %] +Section: fonts +Architecture: all +# Due to file-conflict +Conflicts: [% $source %] +Depends: ${misc:Depends} +Description: [% $description %] (okay) + Font package containing fonts. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/debian/files-fonts.install b/t/recipes/checks/fonts/files-fonts/build-spec/debian/files-fonts.install new file mode 100644 index 0000000..f3dd053 --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/debian/files-fonts.install @@ -0,0 +1,14 @@ +font.otf usr/share/fonts/truetype +font.ttf usr/share/fonts/truetype +4shadow.ttf usr/share/fonts/truetype +foo.pcf usr/share/fonts/X11/100dpi +foo.pcf usr/share/fonts/X11/75dpi +foo.pcf usr/share/fonts/X11/misc +foo.pcf usr/share/fonts/X11/Type1 +foo.pcf usr/share/fonts/X11/encodings +foo.pcf usr/share/fonts/X11/util +foo.pcf usr/share/fonts/X11/PEX +foo.pcf usr/share/fonts/X11/CID +foo.pcf usr/share/fonts/X11/Speedo +foo.pcf usr/share/fonts/X11/cyrillic +foo.pcf usr/share/fonts/X11/other diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/debian/ttf-files-fonts.install b/t/recipes/checks/fonts/files-fonts/build-spec/debian/ttf-files-fonts.install new file mode 100644 index 0000000..95e5191 --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/debian/ttf-files-fonts.install @@ -0,0 +1,4 @@ +font.otf usr/share/fonts/truetype +font.ttf usr/share/fonts/truetype +4shadow.ttf usr/share/fonts/truetype +font.ttf usr/lib/fontpackage diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/debian/ttf-files-fonts.links b/t/recipes/checks/fonts/files-fonts/build-spec/debian/ttf-files-fonts.links new file mode 100644 index 0000000..f57bbb5 --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/debian/ttf-files-fonts.links @@ -0,0 +1 @@ +usr/share/fonts/truetype/font.ttf usr/share/fonts/truetype/dejavusans.ttf diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/fill-values b/t/recipes/checks/fonts/files-fonts/build-spec/fill-values new file mode 100644 index 0000000..1b07cd1 --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-fonts +Description: Font file checks diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/orig/4shadow.ttf b/t/recipes/checks/fonts/files-fonts/build-spec/orig/4shadow.ttf new file mode 100644 index 0000000..780ab93 --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/orig/4shadow.ttf @@ -0,0 +1,2 @@ +This isn't actually a font. The current test is based on the file +name and doesn't care. diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/orig/font.otf b/t/recipes/checks/fonts/files-fonts/build-spec/orig/font.otf new file mode 100644 index 0000000..c118d8d --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/orig/font.otf @@ -0,0 +1 @@ +This is a fake font file. diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/orig/font.ttf b/t/recipes/checks/fonts/files-fonts/build-spec/orig/font.ttf new file mode 100644 index 0000000..c118d8d --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/orig/font.ttf @@ -0,0 +1 @@ +This is a fake font file. diff --git a/t/recipes/checks/fonts/files-fonts/build-spec/orig/foo.pcf b/t/recipes/checks/fonts/files-fonts/build-spec/orig/foo.pcf new file mode 100644 index 0000000..8a7d9df --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/build-spec/orig/foo.pcf @@ -0,0 +1 @@ +I'm not really a font, but I play one on TV. diff --git a/t/recipes/checks/fonts/files-fonts/eval/desc b/t/recipes/checks/fonts/files-fonts/eval/desc new file mode 100644 index 0000000..68d9b83 --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/eval/desc @@ -0,0 +1,2 @@ +Testname: files-fonts +Check: fonts diff --git a/t/recipes/checks/fonts/files-fonts/eval/hints b/t/recipes/checks/fonts/files-fonts/eval/hints new file mode 100644 index 0000000..a6249e6 --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/eval/hints @@ -0,0 +1,5 @@ +ttf-files-fonts (binary): font-outside-font-dir [usr/lib/fontpackage/font.ttf] +ttf-files-fonts (binary): duplicate-font-file also in (FONT_PACKAGES) [usr/share/fonts/truetype/4shadow.ttf] +files-fonts (binary): font-in-non-font-package [usr/share/fonts/truetype/font.ttf] +files-fonts (binary): font-in-non-font-package [usr/share/fonts/truetype/font.otf] +files-fonts (binary): duplicate-font-file also in (FONT_PACKAGES) [usr/share/fonts/truetype/4shadow.ttf] diff --git a/t/recipes/checks/fonts/files-fonts/eval/post-test b/t/recipes/checks/fonts/files-fonts/eval/post-test new file mode 100644 index 0000000..4c76e7b --- /dev/null +++ b/t/recipes/checks/fonts/files-fonts/eval/post-test @@ -0,0 +1 @@ +s/also in [(][^)]+[)]/also in (FONT_PACKAGES)/ diff --git a/t/recipes/checks/fonts/opentype/use-restricted/build-spec/debian/install b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/debian/install new file mode 100644 index 0000000..c7427e8 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/debian/install @@ -0,0 +1 @@ +fonts/* /usr/share/fonts/ diff --git a/t/recipes/checks/fonts/opentype/use-restricted/build-spec/fill-values b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/fill-values new file mode 100644 index 0000000..2361324 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: use-restricted +Skeleton: upload-native +Description: Installs an OpenType font with a restricted license. diff --git a/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Editable.otf b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Editable.otf Binary files differnew file mode 100644 index 0000000..14e2176 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Editable.otf diff --git a/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Installable.otf b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Installable.otf Binary files differnew file mode 100644 index 0000000..097d425 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Installable.otf diff --git a/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/NeverEmbed.otf b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/NeverEmbed.otf Binary files differnew file mode 100644 index 0000000..51ad025 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/NeverEmbed.otf diff --git a/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Printable.otf b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Printable.otf Binary files differnew file mode 100644 index 0000000..ba78881 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/use-restricted/build-spec/orig/fonts/Printable.otf diff --git a/t/recipes/checks/fonts/opentype/use-restricted/eval/desc b/t/recipes/checks/fonts/opentype/use-restricted/eval/desc new file mode 100644 index 0000000..cc64d13 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/use-restricted/eval/desc @@ -0,0 +1,3 @@ +Testname: use-restricted +Check: fonts/opentype +See-Also: Debian Bug#635068 diff --git a/t/recipes/checks/fonts/opentype/use-restricted/eval/hints b/t/recipes/checks/fonts/opentype/use-restricted/eval/hints new file mode 100644 index 0000000..699ec02 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/use-restricted/eval/hints @@ -0,0 +1,3 @@ +use-restricted (binary): opentype-font-prohibits-installable-embedding (preview/print only) [usr/share/fonts/Printable.otf] +use-restricted (binary): opentype-font-prohibits-installable-embedding (never embed) [usr/share/fonts/NeverEmbed.otf] +use-restricted (binary): opentype-font-prohibits-installable-embedding (edit only) [usr/share/fonts/Editable.otf] diff --git a/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/debian/install b/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/debian/install new file mode 100644 index 0000000..c7427e8 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/debian/install @@ -0,0 +1 @@ +fonts/* /usr/share/fonts/ diff --git a/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/fill-values b/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/fill-values new file mode 100644 index 0000000..d4cbe4d --- /dev/null +++ b/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: wrong-filename +Skeleton: upload-native +Description: Installs an OpenType font with an incorrect file extension. diff --git a/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/orig/fonts/IsOTF.ttf b/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/orig/fonts/IsOTF.ttf Binary files differnew file mode 100644 index 0000000..5f02e7b --- /dev/null +++ b/t/recipes/checks/fonts/opentype/wrong-filename/build-spec/orig/fonts/IsOTF.ttf diff --git a/t/recipes/checks/fonts/opentype/wrong-filename/eval/desc b/t/recipes/checks/fonts/opentype/wrong-filename/eval/desc new file mode 100644 index 0000000..cea1815 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/wrong-filename/eval/desc @@ -0,0 +1,2 @@ +Testname: wrong-filename +Check: fonts/opentype diff --git a/t/recipes/checks/fonts/opentype/wrong-filename/eval/hints b/t/recipes/checks/fonts/opentype/wrong-filename/eval/hints new file mode 100644 index 0000000..88c3e38 --- /dev/null +++ b/t/recipes/checks/fonts/opentype/wrong-filename/eval/hints @@ -0,0 +1 @@ +wrong-filename (binary): opentype-font-wrong-filename [usr/share/fonts/IsOTF.ttf] diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/debian/control.in b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/debian/control.in new file mode 100644 index 0000000..41d290d --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/debian/control.in @@ -0,0 +1,19 @@ +Source: [% $source %] +Priority: optional +Section: fonts +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no +Homepage: http://lintian.debian.org/ + +Package: fonts-[% $source %] +Architecture: [% $package_architecture %] +Depends: ${misc:Depends} +Multi-Arch: foreign +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/debian/install b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/debian/install new file mode 100644 index 0000000..f589ca9 --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/debian/install @@ -0,0 +1 @@ +*.pfb usr/share/lintian/fonts/ diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/fill-values b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/fill-values new file mode 100644 index 0000000..d1f8dad --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-adobe-font +Description: Test for adobe font license issues diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/Makefile b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/Makefile new file mode 100644 index 0000000..6b48449 --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/Makefile @@ -0,0 +1,8 @@ +all: bad.pfb good.pfb badnocredit.pfb badwithadobecode.pfb + +%.pfb: %.raw + t1asm $< > $@ + +clean: + rm -f *.pfb + diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/bad.raw b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/bad.raw new file mode 100644 index 0000000..37b5d60 --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/bad.raw @@ -0,0 +1,16 @@ +%!PS-AdobeFont-1.0: Untitled1 001.000 +%%Title: bad +%Version: 001.000 +%%CreationDate: Mon Dec 10 21:21:58 2012 +%%Creator: nthykier,,, +%Copyright: Created by nthykier,,, hand-crafted +%%EndComments + +/RD{string currentfile exch readstring pop}executeonly def + +% The statements below are here to trick Lintian... +% Copyright (c) 1987-1990 Adobe Systems Incorporated. +% All Rights Reserved. + +2 index /CharStrings 2 dict dup begin + diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/badnocredit.raw b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/badnocredit.raw new file mode 100644 index 0000000..b7db4d3 --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/badnocredit.raw @@ -0,0 +1,15 @@ +%!PS-AdobeFont-1.0: Untitled1 001.000 +%%Title: badnocredit +%Version: 001.000 +%%CreationDate: Mon Dec 10 21:21:58 2012 +%%Creator: roucaries.bastien,,, +%Copyright: Created by roucaries.bastien,,, hand-crafted +%%EndComments + +/RD{string currentfile exch readstring pop}executeonly def + +% The code below is here to trick Lintian... +trick { /UniqueID 6859 } def + +2 index /CharStrings 2 dict dup begin + diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/badwithadobecode.raw b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/badwithadobecode.raw new file mode 100644 index 0000000..4822d8d --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/badwithadobecode.raw @@ -0,0 +1,17 @@ +%!PS-AdobeFont-1.0: Untitled1 001.000 +%%Title: badwithadobecode +%Version: 001.000 +%%CreationDate: Mon Dec 10 21:21:58 2012 +%%Creator: roucaries.bastien,,, +%Copyright: Created by roucaries.bastien,,, hand-crafted +%%EndComments + +/RD{string currentfile exch readstring pop}executeonly def + +% The code below is here to trick Lintian... +% Copyright (c) 1987-1990 Adobe Systems Incorporated. +% All Rights Reserved. +trick { /startlock get exec } def + +2 index /CharStrings 2 dict dup begin + diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/good.raw b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/good.raw new file mode 100644 index 0000000..fd50247 --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/build-spec/orig/good.raw @@ -0,0 +1,15 @@ +%!PS-AdobeFont-1.0: Untitled1 001.000 +%%Title: good +%Version: 001.000 +%%CreationDate: Mon Dec 10 21:21:58 2012 +%%Creator: nthykier,,, +%Copyright: Created by nthykier,,, hand-crafted +%%EndComments + +/RD{string currentfile exch readstring pop}executeonly def + +% This file has no license issues (bad.raw doesn't either, but +% we pretend it does). + +2 index /CharStrings 2 dict dup begin + diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/eval/desc b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/eval/desc new file mode 100644 index 0000000..a4cef90 --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/eval/desc @@ -0,0 +1,2 @@ +Testname: files-adobe-font +Check: fonts/postscript/type1 diff --git a/t/recipes/checks/fonts/postscript/type1/files-adobe-font/eval/hints b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/eval/hints new file mode 100644 index 0000000..cce5753 --- /dev/null +++ b/t/recipes/checks/fonts/postscript/type1/files-adobe-font/eval/hints @@ -0,0 +1,3 @@ +fonts-files-adobe-font (binary): license-problem-font-adobe-copyrighted-fragment-no-credit [usr/share/lintian/fonts/badnocredit.pfb] +fonts-files-adobe-font (binary): license-problem-font-adobe-copyrighted-fragment [usr/share/lintian/fonts/badwithadobecode.pfb] +fonts-files-adobe-font (binary): license-problem-font-adobe-copyrighted-fragment [usr/share/lintian/fonts/bad.pfb] diff --git a/t/recipes/checks/fonts/truetype/use-restricted/build-spec/debian/install b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/debian/install new file mode 100644 index 0000000..c7427e8 --- /dev/null +++ b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/debian/install @@ -0,0 +1 @@ +fonts/* /usr/share/fonts/ diff --git a/t/recipes/checks/fonts/truetype/use-restricted/build-spec/fill-values b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/fill-values new file mode 100644 index 0000000..6d3106c --- /dev/null +++ b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: use-restricted +Skeleton: upload-native +Description: Installs a TrueType font with a restricted license. diff --git a/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Editable.ttf b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Editable.ttf Binary files differnew file mode 100644 index 0000000..1c693cf --- /dev/null +++ b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Editable.ttf diff --git a/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Installable.ttf b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Installable.ttf Binary files differnew file mode 100644 index 0000000..7c88f0a --- /dev/null +++ b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Installable.ttf diff --git a/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/NeverEmbed.ttf b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/NeverEmbed.ttf Binary files differnew file mode 100644 index 0000000..69fcdf9 --- /dev/null +++ b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/NeverEmbed.ttf diff --git a/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Printable.ttf b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Printable.ttf Binary files differnew file mode 100644 index 0000000..0a2bdb3 --- /dev/null +++ b/t/recipes/checks/fonts/truetype/use-restricted/build-spec/orig/fonts/Printable.ttf diff --git a/t/recipes/checks/fonts/truetype/use-restricted/eval/desc b/t/recipes/checks/fonts/truetype/use-restricted/eval/desc new file mode 100644 index 0000000..75281e4 --- /dev/null +++ b/t/recipes/checks/fonts/truetype/use-restricted/eval/desc @@ -0,0 +1,3 @@ +Testname: use-restricted +Check: fonts/truetype +See-Also: Debian Bug#635068 diff --git a/t/recipes/checks/fonts/truetype/use-restricted/eval/hints b/t/recipes/checks/fonts/truetype/use-restricted/eval/hints new file mode 100644 index 0000000..27eedac --- /dev/null +++ b/t/recipes/checks/fonts/truetype/use-restricted/eval/hints @@ -0,0 +1,3 @@ +use-restricted (binary): truetype-font-prohibits-installable-embedding (preview/print only) [usr/share/fonts/Printable.ttf] +use-restricted (binary): truetype-font-prohibits-installable-embedding (never embed) [usr/share/fonts/NeverEmbed.ttf] +use-restricted (binary): truetype-font-prohibits-installable-embedding (edit only) [usr/share/fonts/Editable.ttf] diff --git a/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/debian/install b/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/debian/install new file mode 100644 index 0000000..c7427e8 --- /dev/null +++ b/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/debian/install @@ -0,0 +1 @@ +fonts/* /usr/share/fonts/ diff --git a/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/fill-values b/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/fill-values new file mode 100644 index 0000000..f0d586a --- /dev/null +++ b/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: wrong-filename +Skeleton: upload-native +Description: Installs a TrueType font with an incorrect file extension. diff --git a/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/orig/fonts/IsTTF.otf b/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/orig/fonts/IsTTF.otf Binary files differnew file mode 100644 index 0000000..da64930 --- /dev/null +++ b/t/recipes/checks/fonts/truetype/wrong-filename/build-spec/orig/fonts/IsTTF.otf diff --git a/t/recipes/checks/fonts/truetype/wrong-filename/eval/desc b/t/recipes/checks/fonts/truetype/wrong-filename/eval/desc new file mode 100644 index 0000000..44e0a57 --- /dev/null +++ b/t/recipes/checks/fonts/truetype/wrong-filename/eval/desc @@ -0,0 +1,2 @@ +Testname: wrong-filename +Check: fonts/truetype diff --git a/t/recipes/checks/fonts/truetype/wrong-filename/eval/hints b/t/recipes/checks/fonts/truetype/wrong-filename/eval/hints new file mode 100644 index 0000000..bc955c2 --- /dev/null +++ b/t/recipes/checks/fonts/truetype/wrong-filename/eval/hints @@ -0,0 +1 @@ +wrong-filename (binary): truetype-font-wrong-filename [usr/share/fonts/IsTTF.otf] |