summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/fonts/files-fonts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/fonts/files-fonts
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.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/files-fonts')
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/debian/control.in31
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/debian/files-fonts.install14
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/debian/ttf-files-fonts.install4
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/debian/ttf-files-fonts.links1
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/orig/4shadow.ttf2
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/orig/font.otf1
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/orig/font.ttf1
-rw-r--r--t/recipes/checks/fonts/files-fonts/build-spec/orig/foo.pcf1
-rw-r--r--t/recipes/checks/fonts/files-fonts/eval/desc2
-rw-r--r--t/recipes/checks/fonts/files-fonts/eval/hints5
-rw-r--r--t/recipes/checks/fonts/files-fonts/eval/post-test1
12 files changed, 66 insertions, 0 deletions
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)/