summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/copyright/copyright-file-doc-symlink
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/debian/copyright/copyright-file-doc-symlink')
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/control.in39
-rwxr-xr-xt/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/rules12
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/desc3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/hints0
5 files changed, 57 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..324f170
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/control.in
@@ -0,0 +1,39 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+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 %]-helper
+Architecture: [% $package_architecture %]
+Depends: [% $source %] (= [% $version %]), ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (symlink)
+ Helper package with a legitimate /usr/share/doc symlink.
+ .
+ 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 %]-weak
+Architecture: [% $package_architecture %]
+Depends: [% $source %], ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (weak)
+ Helper package with a /usr/share/doc symlink but an insufficiently
+ strong dependency. Lintian intentionally doesn't diagnose this.
+ .
+ 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/debian/copyright/copyright-file-doc-symlink/build-spec/debian/rules b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/rules
new file mode 100755
index 0000000..32f23a0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+pkg := copyright-file-doc-symlink
+
+%:
+ dh $@
+
+override_dh_prep:
+ mkdir -p debian/$(pkg)-helper/usr/share/doc
+ ln -s $(pkg) debian/$(pkg)-helper/usr/share/doc/$(pkg)-helper
+ mkdir -p debian/$(pkg)-weak/usr/share/doc
+ ln -s $(pkg) debian/$(pkg)-weak/usr/share/doc/$(pkg)-weak
diff --git a/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/fill-values b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/fill-values
new file mode 100644
index 0000000..77a06bf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: copyright-file-doc-symlink
+Description: Test a symlinked /usr/share/doc
diff --git a/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/desc b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/desc
new file mode 100644
index 0000000..d56438f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/desc
@@ -0,0 +1,3 @@
+Testname: copyright-file-doc-symlink
+Test-Against: usr-share-doc-symlink-without-dependency
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/hints b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/hints