Commit 1b148029 by Chris Lamb

Add a passing testcase for ensuring /usr/share/doc/$pkg/examples can be a…

Add a passing testcase for ensuring /usr/share/doc/$pkg/examples can be a symlink for package-does-not-install-examples. (re. #897157)
parent 7a2338a8
Pipeline #5865 pending with stage
......@@ -37,6 +37,9 @@ lintian (2.5.85) UNRELEASED; urgency=medium
+ [CL] Add support for derivative-specific "Changed-By" validation to
enforce additional restrictions on the uploader.
* t/tests/cruft-package-does-not-install-examples-symlink/*:
+ [CL] Add a passing testcase for ensuring /usr/share/doc/$pkg/examples
can be a symlink for package-does-not-install-examples. (re. #897157)
* t/tests/{binaries-libc-link,legacy-libbaz}/desc:
+ [CL] Mark currently-failing tests as requiring file (<= 5.33) to
ensure the testsuite passes whilst we wait for a resolution on the
......
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: $\{misc:Depends\}
Description: Has a symlink to examples
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 package has a symlink to examples.
Package: {$source}-common
Architecture: all
Depends: $\{misc:Depends\}
Description: Has the examples
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 package ships the examples.
#!/usr/bin/make -f
PKG = $(shell dh_listpackages | sort | head -n1)
%:
dh $@
override_dh_installexamples:
dh_installexamples -p $(PKG)-common examples/*
override_dh_link:
dh_link /usr/share/doc/$(PKG)-common/examples /usr/share/doc/$(PKG)/examples
Testname: cruft-package-does-not-install-examples-symlink
Version: 1.0
Description: Detect installed examples (symlink)
Options: -I --pedantic
Skeleton: pedantic
Test-Against:
package-does-not-install-examples
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment