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/trailing-whitespace | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
17 files changed, 103 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/changelog.in b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/changelog.in new file mode 100644 index 0000000..7174e69 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/changelog.in @@ -0,0 +1,8 @@ +[% $source %] ([% $version %]) unstable; urgency=low +
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/control.in b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/control.in new file mode 100644 index 0000000..c4d5304 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/control.in @@ -0,0 +1,15 @@ +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.
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/install b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/install new file mode 100644 index 0000000..47fc6a3 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/install @@ -0,0 +1 @@ +dummy usr/share/doc/foo/ diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/fill-values b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/fill-values new file mode 100644 index 0000000..faa216c --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: cruft-crlf-eols +Package-Architecture: all +Description: Check that control files with CRLF EOLs are reported diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/orig/dummy b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/orig/dummy new file mode 100644 index 0000000..5c3118d --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/orig/dummy @@ -0,0 +1 @@ +dummy file diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/desc b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/desc new file mode 100644 index 0000000..b3c05d7 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/desc @@ -0,0 +1,2 @@ +Testname: cruft-crlf-eols +Check: debian/trailing-whitespace diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints new file mode 100644 index 0000000..5e0885f --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints @@ -0,0 +1,22 @@ +cruft-crlf-eols (source): trailing-whitespace [debian/control:9] +cruft-crlf-eols (source): trailing-whitespace [debian/control:8] +cruft-crlf-eols (source): trailing-whitespace [debian/control:7] +cruft-crlf-eols (source): trailing-whitespace [debian/control:6] +cruft-crlf-eols (source): trailing-whitespace [debian/control:5] +cruft-crlf-eols (source): trailing-whitespace [debian/control:4] +cruft-crlf-eols (source): trailing-whitespace [debian/control:3] +cruft-crlf-eols (source): trailing-whitespace [debian/control:2] +cruft-crlf-eols (source): trailing-whitespace [debian/control:1] +cruft-crlf-eols (source): trailing-whitespace [debian/control:15] +cruft-crlf-eols (source): trailing-whitespace [debian/control:14] +cruft-crlf-eols (source): trailing-whitespace [debian/control:13] +cruft-crlf-eols (source): trailing-whitespace [debian/control:12] +cruft-crlf-eols (source): trailing-whitespace [debian/control:11] +cruft-crlf-eols (source): trailing-whitespace [debian/control:10] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:8] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:7] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:6] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:5] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:4] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:3] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:2] diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/README.source b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/README.source new file mode 100644 index 0000000..11f42a1 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/README.source @@ -0,0 +1,6 @@ +cruft-file-contains-trailing-whitespace for Debian +-------------------------------------------------- + +This line does not contain any trailing whitespace. +This line contains a trailing whitespace character but is still a false-positive as we ignore README.source. + diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/changelog.in b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/changelog.in new file mode 100644 index 0000000..9c178f1 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/changelog.in @@ -0,0 +1,9 @@ +[% $source %] ([% $version %]) [% $distribution %]; urgency=low + + * This line contains trailing whitespace. + * This line does not contais trailing whitespace. + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $date %] + + diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/rules b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/rules new file mode 100755 index 0000000..c19a271 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + # The line contains a trailing tab (false-positive) + + diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/fill-values b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/fill-values new file mode 100644 index 0000000..7a95b35 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: cruft-file-contains-trailing-whitespace +Description: Check for files containing trailing whitespace characters diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/desc b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/desc new file mode 100644 index 0000000..1f35e07 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/desc @@ -0,0 +1,2 @@ +Testname: cruft-file-contains-trailing-whitespace +Check: debian/trailing-whitespace diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints new file mode 100644 index 0000000..7953403 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints @@ -0,0 +1,4 @@ +cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/rules:7] +cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:9] +cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:8] +cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:3] diff --git a/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/debian/rules b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/debian/rules new file mode 100755 index 0000000..9a82cb7 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + 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
\ No newline at end of file diff --git a/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/fill-values b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/fill-values new file mode 100644 index 0000000..90cfaae --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-without-newline-at-end +Description: d/rules lacking a newline at the end of file. diff --git a/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/desc b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/desc new file mode 100644 index 0000000..232e02f --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-without-newline-at-end +Check: debian/trailing-whitespace diff --git a/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints new file mode 100644 index 0000000..d14a8d4 --- /dev/null +++ b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints @@ -0,0 +1 @@ +rules-without-newline-at-end (source): no-newline-at-end [debian/rules] |