Chris Lamb pushed to branch master at lintian / lintian
Commits:
559edf71 by Felix Lechner at 2019-02-22T01:06:37Z
Add test for untested tag should-specify-rules-requires-root.
This tag does not currently appear in the test suite. This test will
make the test suite more robust overall.
Gbp-Dch: ignore
- - - - -
ae7e96d7 by Felix Lechner at 2019-02-22T01:06:37Z
Add test for untested tag file-references-package-build-path.
This tag does not currently appear in the test suite. This test will
make the test suite more robust overall.
Gbp-Dch: ignore
- - - - -
13 changed files:
- + t/tags/checks/control-file/implicitly-requires-rrr/debian/control.in
- + t/tags/checks/control-file/implicitly-requires-rrr/debian/install
- + t/tags/checks/control-file/implicitly-requires-rrr/debian/rules
- + t/tags/checks/control-file/implicitly-requires-rrr/desc
- + t/tags/checks/control-file/implicitly-requires-rrr/orig/controlled-by-owner
- + t/tags/checks/control-file/implicitly-requires-rrr/post_test
- + t/tags/checks/control-file/implicitly-requires-rrr/tags
- + t/tags/checks/files/contains-build-path/builder.in
- + t/tags/checks/files/contains-build-path/debian/docs
- + t/tags/checks/files/contains-build-path/debian/rules
- + t/tags/checks/files/contains-build-path/desc
- + t/tags/checks/files/contains-build-path/orig/Makefile
- + t/tags/checks/files/contains-build-path/tags
Changes:
=====================================
t/tags/checks/control-file/implicitly-requires-rrr/debian/control.in
=====================================
@@ -0,0 +1,17 @@
+Source: {$source}
+Priority: {$priority}
+Section: {$section}
+Maintainer: {$author}
+Standards-Version: {$standards_version}
+Build-Depends: {$build_depends}
+Homepage: {$homepage}
+
+Package: {$source}
+Architecture: {$package_architecture}
+Pre-Depends: $\{misc:Pre-Depends\}
+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.
=====================================
t/tags/checks/control-file/implicitly-requires-rrr/debian/install
=====================================
@@ -0,0 +1 @@
+controlled-by-owner usr/share/separate
=====================================
t/tags/checks/control-file/implicitly-requires-rrr/debian/rules
=====================================
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+tmp := $(CURDIR)/debian/$(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_fixperms:
+ dh_fixperms
+ chown 1:1 $(tmp)/usr/share/separate/controlled-by-owner
=====================================
t/tags/checks/control-file/implicitly-requires-rrr/desc
=====================================
@@ -0,0 +1,6 @@
+Testname: implicitly-requires-rrr
+Skeleton: upload-native
+Version: 1.0
+Description: Test with package that requires Rules-Requires-Root but does not
mention it
+Test-Against:
+Check: control-file
=====================================
t/tags/checks/control-file/implicitly-requires-rrr/orig/controlled-by-owner
=====================================
@@ -0,0 +1 @@
+SEPARATE PROPERTY
=====================================
t/tags/checks/control-file/implicitly-requires-rrr/post_test
=====================================
@@ -0,0 +1 @@
+s/\(\S+:\S+\)$/(USER:GROUP)/
=====================================
t/tags/checks/control-file/implicitly-requires-rrr/tags
=====================================
@@ -0,0 +1 @@
+I: implicitly-requires-rrr source: should-specify-rules-requires-root
implicitly-requires-rrr usr/share/separate/controlled-by-owner (USER:GROUP)
=====================================
t/tags/checks/files/contains-build-path/builder.in
=====================================
@@ -0,0 +1,3 @@
+Build-Product: {$source}_{$no_epoch}_{$host_architecture}.changes
+Build-Command: make --trace DEFAULT_DH_COMPAT={$dh_compat_level}
DEB_BUILD_OPTIONS='buildinfo=+path'
+Default-Build-Depends: debhelper (>= {$dh_compat_level}~)
=====================================
t/tags/checks/files/contains-build-path/debian/docs
=====================================
@@ -0,0 +1 @@
+build-path
=====================================
t/tags/checks/files/contains-build-path/debian/rules
=====================================
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+tmp := $(CURDIR)/debian/$(shell dh_listpackages)
+
+%:
+ dh $@
+
+# In Ubuntu, dh does not catch this file by default.
+# They have diffed it to reduce the size of packages.
+ifneq (,$(strip $(wildcard Changes)))
+override_dh_installchangelogs:
+ dh_installchangelogs Changes
+endif
=====================================
t/tags/checks/files/contains-build-path/desc
=====================================
@@ -0,0 +1,6 @@
+Testname: contains-build-path
+Version: 1.0
+Skeleton: upload-native
+Description: Test for upload containing build path
+Test-Against:
+Check: files
=====================================
t/tags/checks/files/contains-build-path/orig/Makefile
=====================================
@@ -0,0 +1,2 @@
+all:
+ echo $(shell pwd) > build-path
=====================================
t/tags/checks/files/contains-build-path/tags
=====================================
@@ -0,0 +1 @@
+I: contains-build-path: file-references-package-build-path
usr/share/doc/contains-build-path/build-path
View it on GitLab:
https://salsa.debian.org/lintian/lintian/compare/9ad8abf477b380eef0eb4a9d02f92fafc1367416...ae7e96d7c7c9e9f3acb6aacae6db3c8385b54ec2
--
View it on GitLab:
https://salsa.debian.org/lintian/lintian/compare/9ad8abf477b380eef0eb4a9d02f92fafc1367416...ae7e96d7c7c9e9f3acb6aacae6db3c8385b54ec2
You're receiving this email because of your account on salsa.debian.org.