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/debian/copyright/copyright-file-doc-symlink | |
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/debian/copyright/copyright-file-doc-symlink')
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 |