summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/menus/menus-doc-base-file-references-missing-file
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/menus/menus-doc-base-file-references-missing-file
parentInitial commit. (diff)
downloadlintian-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/menus/menus-doc-base-file-references-missing-file')
-rw-r--r--t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/control.in38
-rw-r--r--t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/doc-base13
-rw-r--r--t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/rules13
-rw-r--r--t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/fill-values3
-rw-r--r--t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/orig/documentation.txt1
-rw-r--r--t/recipes/checks/menus/menus-doc-base-file-references-missing-file/eval/desc2
-rw-r--r--t/recipes/checks/menus/menus-doc-base-file-references-missing-file/eval/hints3
7 files changed, 73 insertions, 0 deletions
diff --git a/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/control.in b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/control.in
new file mode 100644
index 0000000..2e815d0
--- /dev/null
+++ b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/control.in
@@ -0,0 +1,38 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, [% $source %]-dependency
+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.
+
+Package: [% $source %]-dependency
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (dependency)
+ 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.
+ .
+ This is a dependency for [% $source %]
+
+Package: [% $source %]-not-a-dependency
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (not a dependency)
+ 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.
+ .
+ This is not a dependency for [% $source %]
diff --git a/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/doc-base b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/doc-base
new file mode 100644
index 0000000..ff017e2
--- /dev/null
+++ b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/doc-base
@@ -0,0 +1,13 @@
+Document: example
+Title: An example doc-base control file
+Author: Chris Lamb
+Section: Help
+
+Format: HTML
+Index: /usr/share/doc/menus-doc-base-file-references-missing-file/documentation.txt
+Files:
+ /missing
+ /usr/share/doc/menus-doc-base-file-references-missing-file/documentation.txt
+ /usr/share/doc/menus-doc-base-file-references-missing-file/documentatio?.t*t
+ /usr/share/doc/menus-doc-base-file-references-missing-file-dependency/documentation.txt
+ /usr/share/doc/menus-doc-base-file-references-missing-file-not-a-dependency/documentation.txt
diff --git a/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/rules b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/rules
new file mode 100644
index 0000000..1383288
--- /dev/null
+++ b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+MAIN = $(shell dh_listpackages | head -n1)
+DEPENDENCY = $(MAIN)-dependency
+NOT_A_DEPENDENCY = $(MAIN)-not-a-dependency
+
+%:
+ dh $@
+
+override_dh_installdocs:
+ dh_installdocs -p$(MAIN) documentation.txt
+ dh_installdocs -p$(DEPENDENCY) documentation.txt
+ dh_installdocs -p$(NOT_A_DEPENDENCY) documentation.txt
diff --git a/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/fill-values b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/fill-values
new file mode 100644
index 0000000..11e92fe
--- /dev/null
+++ b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: menus-doc-base-file-references-missing-file
+Description: check for missing files in doc-base
diff --git a/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/orig/documentation.txt b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/orig/documentation.txt
new file mode 100644
index 0000000..82f7692
--- /dev/null
+++ b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/build-spec/orig/documentation.txt
@@ -0,0 +1 @@
+This is example documentation.
diff --git a/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/eval/desc b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/eval/desc
new file mode 100644
index 0000000..b255650
--- /dev/null
+++ b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: menus-doc-base-file-references-missing-file
+Check: menus
diff --git a/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/eval/hints b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/eval/hints
new file mode 100644
index 0000000..e5142fe
--- /dev/null
+++ b/t/recipes/checks/menus/menus-doc-base-file-references-missing-file/eval/hints
@@ -0,0 +1,3 @@
+menus-doc-base-file-references-missing-file (binary): doc-base-file-references-wrong-path /missing [usr/share/doc-base/menus-doc-base-file-references-missing-file.example:13]
+menus-doc-base-file-references-missing-file (binary): doc-base-file-references-missing-file /usr/share/doc/menus-doc-base-file-references-missing-file-not-a-dependency/documentation.txt [usr/share/doc-base/menus-doc-base-file-references-missing-file.example:13]
+menus-doc-base-file-references-missing-file (binary): doc-base-file-references-missing-file /missing [usr/share/doc-base/menus-doc-base-file-references-missing-file.example:13]