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/fields/mail-address | |
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 '')
167 files changed, 1546 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/mail-address/alioth-list/build-spec/fill-values b/t/recipes/checks/fields/mail-address/alioth-list/build-spec/fill-values new file mode 100644 index 0000000..49c606a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/alioth-list/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: source-native +Testname: alioth-list +Author: Packaging Team <pkg-team@lists.alioth.debian.org> +Description: Package with alioth list in maintainer field diff --git a/t/recipes/checks/fields/mail-address/alioth-list/eval/desc b/t/recipes/checks/fields/mail-address/alioth-list/eval/desc new file mode 100644 index 0000000..2b28f4c --- /dev/null +++ b/t/recipes/checks/fields/mail-address/alioth-list/eval/desc @@ -0,0 +1,2 @@ +Testname: alioth-list +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/alioth-list/eval/hints b/t/recipes/checks/fields/mail-address/alioth-list/eval/hints new file mode 100644 index 0000000..37f9202 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/alioth-list/eval/hints @@ -0,0 +1,2 @@ +alioth-list (source): mailing-list-on-alioth Maintainer pkg-team@lists.alioth.debian.org +alioth-list (source): mail-contact Maintainer "Packaging Team" <pkg-team@lists.alioth.debian.org> diff --git a/t/recipes/checks/fields/mail-address/changed-by-localhost/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changed-by-localhost/build-spec/fill-values new file mode 100644 index 0000000..b56d57a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-localhost/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changed-by-localhost +Description: Test Changed-By field with localhost address diff --git a/t/recipes/checks/fields/mail-address/changed-by-localhost/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changed-by-localhost/build-spec/test.changes.in new file mode 100644 index 0000000..efffd8b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-localhost/build-spec/test.changes.in @@ -0,0 +1,12 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: Someone <someone@localhost.localdomain> +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changed-by-localhost/eval/desc b/t/recipes/checks/fields/mail-address/changed-by-localhost/eval/desc new file mode 100644 index 0000000..7eee22e --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-localhost/eval/desc @@ -0,0 +1,2 @@ +Testname: changed-by-localhost +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changed-by-localhost/eval/hints b/t/recipes/checks/fields/mail-address/changed-by-localhost/eval/hints new file mode 100644 index 0000000..0b00bd4 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-localhost/eval/hints @@ -0,0 +1,3 @@ +changed-by-localhost (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changed-by-localhost (changes): mail-contact Changed-By Someone <someone@localhost.localdomain> +changed-by-localhost (changes): bogus-mail-host Changed-By someone@localhost.localdomain diff --git a/t/recipes/checks/fields/mail-address/changed-by-malformed/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changed-by-malformed/build-spec/fill-values new file mode 100644 index 0000000..53a6789 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-malformed/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changed-by-malformed +Description: Test malformed Changed-By field diff --git a/t/recipes/checks/fields/mail-address/changed-by-malformed/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changed-by-malformed/build-spec/test.changes.in new file mode 100644 index 0000000..b5be7b7 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-malformed/build-spec/test.changes.in @@ -0,0 +1,12 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: Foo<bar> Baz +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changed-by-malformed/eval/desc b/t/recipes/checks/fields/mail-address/changed-by-malformed/eval/desc new file mode 100644 index 0000000..09f2ccc --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-malformed/eval/desc @@ -0,0 +1,2 @@ +Testname: changed-by-malformed +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changed-by-malformed/eval/hints b/t/recipes/checks/fields/mail-address/changed-by-malformed/eval/hints new file mode 100644 index 0000000..1446169 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-malformed/eval/hints @@ -0,0 +1,2 @@ +changed-by-malformed (changes): malformed-contact Changed-By Foo<bar> +changed-by-malformed (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changed-by-no-name/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changed-by-no-name/build-spec/fill-values new file mode 100644 index 0000000..8cdb321 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-no-name/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changed-by-no-name +Description: Test Changed-By field with missing name diff --git a/t/recipes/checks/fields/mail-address/changed-by-no-name/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changed-by-no-name/build-spec/test.changes.in new file mode 100644 index 0000000..80cee42 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-no-name/build-spec/test.changes.in @@ -0,0 +1,12 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: someone@example.com +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changed-by-no-name/eval/desc b/t/recipes/checks/fields/mail-address/changed-by-no-name/eval/desc new file mode 100644 index 0000000..3d4100d --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-no-name/eval/desc @@ -0,0 +1,2 @@ +Testname: changed-by-no-name +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changed-by-no-name/eval/hints b/t/recipes/checks/fields/mail-address/changed-by-no-name/eval/hints new file mode 100644 index 0000000..4d7838c --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-no-name/eval/hints @@ -0,0 +1,3 @@ +changed-by-no-name (changes): no-phrase Changed-By someone@example.com +changed-by-no-name (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changed-by-no-name (changes): mail-contact Changed-By someone@example.com diff --git a/t/recipes/checks/fields/mail-address/changed-by-root-email/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changed-by-root-email/build-spec/fill-values new file mode 100644 index 0000000..03b2a46 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-root-email/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changed-by-root-email +Description: Test Changed-By field with root user diff --git a/t/recipes/checks/fields/mail-address/changed-by-root-email/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changed-by-root-email/build-spec/test.changes.in new file mode 100644 index 0000000..2dd3fbc --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-root-email/build-spec/test.changes.in @@ -0,0 +1,12 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: someone <root@debian.org> +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changed-by-root-email/eval/desc b/t/recipes/checks/fields/mail-address/changed-by-root-email/eval/desc new file mode 100644 index 0000000..3b579ce --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-root-email/eval/desc @@ -0,0 +1,2 @@ +Testname: changed-by-root-email +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changed-by-root-email/eval/hints b/t/recipes/checks/fields/mail-address/changed-by-root-email/eval/hints new file mode 100644 index 0000000..2137fec --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-root-email/eval/hints @@ -0,0 +1,3 @@ +changed-by-root-email (changes): root-in-contact Changed-By someone <root@debian.org> +changed-by-root-email (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changed-by-root-email (changes): mail-contact Changed-By someone <root@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changed-by-root/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changed-by-root/build-spec/fill-values new file mode 100644 index 0000000..c50862a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-root/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changed-by-root +Description: Test Changed-By field with root user diff --git a/t/recipes/checks/fields/mail-address/changed-by-root/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changed-by-root/build-spec/test.changes.in new file mode 100644 index 0000000..0968226 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-root/build-spec/test.changes.in @@ -0,0 +1,12 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: root <someone@debian.org> +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changed-by-root/eval/desc b/t/recipes/checks/fields/mail-address/changed-by-root/eval/desc new file mode 100644 index 0000000..2d55c56 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-root/eval/desc @@ -0,0 +1,2 @@ +Testname: changed-by-root +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changed-by-root/eval/hints b/t/recipes/checks/fields/mail-address/changed-by-root/eval/hints new file mode 100644 index 0000000..3dea25c --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changed-by-root/eval/hints @@ -0,0 +1,3 @@ +changed-by-root (changes): root-in-contact Changed-By root <someone@debian.org> +changed-by-root (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changed-by-root (changes): mail-contact Changed-By root <someone@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changelog-file-backport/build-spec/debian/changelog.in b/t/recipes/checks/fields/mail-address/changelog-file-backport/build-spec/debian/changelog.in new file mode 100644 index 0000000..227f65f --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changelog-file-backport/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] ([% $version %]) squeeze-backports; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + +[% $source %] (0.1) experimental; urgency=low + + * First upload to experimental. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/fields/mail-address/changelog-file-backport/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changelog-file-backport/build-spec/fill-values new file mode 100644 index 0000000..486ac79 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changelog-file-backport/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: changelog-file-backport +Description: Check backport +# Overrides the "data/changes-file/known-dists" +# data file to avoid updating the test every release diff --git a/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/desc b/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/desc new file mode 100644 index 0000000..5a915d6 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/desc @@ -0,0 +1,6 @@ +Testname: changelog-file-backport +Options: --include-dir ./lintian-include-dir +Profile: lintian-test +Check: fields/mail-address +# Overrides the "data/changes-file/known-dists" +# data file to avoid updating the test every release diff --git a/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/hints b/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/hints new file mode 100644 index 0000000..575f53d --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/hints @@ -0,0 +1,4 @@ +changelog-file-backport (source): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changelog-file-backport (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changelog-file-backport (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +changelog-file-backport (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/lintian-include-dir/profiles/lintian-test/main.profile new file mode 100644 index 0000000..f0e27cf --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/lintian-include-dir/profiles/lintian-test/main.profile @@ -0,0 +1,2 @@ +Profile: lintian-test/main +Extends: debian/main diff --git a/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/lintian-include-dir/vendors/lintian-test/main/data/changes-file/known-dists b/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/lintian-include-dir/vendors/lintian-test/main/data/changes-file/known-dists new file mode 100644 index 0000000..ebbedbd --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changelog-file-backport/eval/lintian-include-dir/vendors/lintian-test/main/data/changes-file/known-dists @@ -0,0 +1,23 @@ +# A list of Debian distributions, both code names and their aliases +# - Note that common "extensions"[1] are stripped before checking for the +# distribution name (except for "sid", "unstable" and "experimental"). +# +# [1] -backports, -security, -proposed-updates etc. See checks/changes-file +# for the complete list. + + +# Codenames +squeeze +wheezy +jessie +stretch +buster +sid + +# Aliases +oldstable +stable +testing +unstable +experimental + diff --git a/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/build-spec/fill-values new file mode 100644 index 0000000..0783088 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: changes +Testname: changes-bad-ubuntu-distribution +Version: 1.0+ubuntu2 +Description: Test for invalid Ubuntu distribution diff --git a/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/build-spec/test.changes.in new file mode 100644 index 0000000..e3f1128 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/build-spec/test.changes.in @@ -0,0 +1,12 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: wispy +Urgency: low +Maintainer: [% $author %] +Changed-By: [% $author %] +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/eval/desc b/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/eval/desc new file mode 100644 index 0000000..714dddf --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/eval/desc @@ -0,0 +1,3 @@ +Testname: changes-bad-ubuntu-distribution +Profile: ubuntu/main +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/eval/hints b/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/eval/hints new file mode 100644 index 0000000..149bc21 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-bad-ubuntu-distribution/eval/hints @@ -0,0 +1,2 @@ +changes-bad-ubuntu-distribution (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-bad-ubuntu-distribution (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/build-spec/fill-values new file mode 100644 index 0000000..7263201 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changes-distribution-mismatch +Description: Test for unstable package to be installed in stable diff --git a/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/build-spec/test.changes.in new file mode 100644 index 0000000..6801232 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/build-spec/test.changes.in @@ -0,0 +1,16 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: stable +Urgency: low +Maintainer: [% $author %] +Changed-By: [% $author %] +Description: + [% $source %] - [% $description %] +Changes: + [% $source %] ([% $version %]) unstable; urgency=low + . + * I used the wrong argument to `sbuild -d`. diff --git a/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/eval/desc b/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/eval/desc new file mode 100644 index 0000000..d4cb7cb --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-distribution-mismatch +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/eval/hints b/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/eval/hints new file mode 100644 index 0000000..78784c0 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-distribution-mismatch/eval/hints @@ -0,0 +1,2 @@ +changes-distribution-mismatch (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-distribution-mismatch (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/build-spec/fill-values new file mode 100644 index 0000000..d4d4d3d --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changes-experimental-mismatch +Description: Test for experimental package to be installed in unstable diff --git a/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/build-spec/test.changes.in new file mode 100644 index 0000000..1476333 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/build-spec/test.changes.in @@ -0,0 +1,16 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: [% $author %] +Description: + [% $source %] - [% $description %] +Changes: + [% $source %] ([% $version %]) experimental; urgency=low + . + * I used the wrong argument to `sbuild -d`. diff --git a/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/eval/desc b/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/eval/desc new file mode 100644 index 0000000..4ed6d8b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-experimental-mismatch +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/eval/hints b/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/eval/hints new file mode 100644 index 0000000..d8727dc --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-experimental-mismatch/eval/hints @@ -0,0 +1,2 @@ +changes-experimental-mismatch (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-experimental-mismatch (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/fill-values new file mode 100644 index 0000000..ecce948 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changes-file-bad-section +Description: Test for bad section in changes file diff --git a/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/referenced-files/__some-file__ b/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/referenced-files/__some-file__ new file mode 100644 index 0000000..336f590 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/referenced-files/__some-file__ @@ -0,0 +1 @@ +Hallo World diff --git a/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/test.changes.in new file mode 100644 index 0000000..721e067 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-bad-section/build-spec/test.changes.in @@ -0,0 +1,18 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: [% $author %] +Files: + 8de2b87704ef0a11144b57d243db88ec 12 non-free optional __some-file__ +Checksums-Sha1: + c54c65218154f15c32ca252946786e0ad09aa99b 12 __some-file__ +Checksums-Sha256: + e6c1396639c0b79bebc94e4448cfe2700b871d45d0d38d98df6ee9da3f09d35c 12 __some-file__ +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changes-file-bad-section/eval/desc b/t/recipes/checks/fields/mail-address/changes-file-bad-section/eval/desc new file mode 100644 index 0000000..229c550 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-bad-section/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-file-bad-section +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-file-bad-section/eval/hints b/t/recipes/checks/fields/mail-address/changes-file-bad-section/eval/hints new file mode 100644 index 0000000..f19975a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-bad-section/eval/hints @@ -0,0 +1,2 @@ +changes-file-bad-section (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-file-bad-section (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/fill-values new file mode 100644 index 0000000..74f84be --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changes-file-size-checksum-mismatch +Description: Test for file size and checksums check diff --git a/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/referenced-files/__some-file__ b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/referenced-files/__some-file__ new file mode 100644 index 0000000..336f590 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/referenced-files/__some-file__ @@ -0,0 +1 @@ +Hallo World diff --git a/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/test.changes.in new file mode 100644 index 0000000..c61138b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/build-spec/test.changes.in @@ -0,0 +1,18 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: [% $author %] +Files: + d41d8cd98f00b204e9800998ecf8427e 0 devel optional __some-file__ +Checksums-Sha1: + da39a3ee5e6b4b0d3255bfef95601890afd80709 0 __some-file__ +Checksums-Sha256: + e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 __some-file__ +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/eval/desc b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/eval/desc new file mode 100644 index 0000000..de01a65 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-file-size-checksum-mismatch +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/eval/hints b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/eval/hints new file mode 100644 index 0000000..615b8af --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-file-size-checksum-mismatch/eval/hints @@ -0,0 +1,2 @@ +changes-file-size-checksum-mismatch (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-file-size-checksum-mismatch (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/debian/control.in new file mode 100644 index 0000000..0312410 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/debian/control.in @@ -0,0 +1,36 @@ +Source: [% $source %] +Section: [% $section %] +Priority: optional +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 %]-dbg +Section: debug +Architecture: all +Depends: [% $source %], ${shlibs:Depends}, ${misc:Depends} +Description: Manual dbg package + 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 %]-dbgsym +Section: debug +Architecture: all +Depends: [% $source %], ${shlibs:Depends}, ${misc:Depends} +Description: Manual dbgsym package + 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 + even be an empty package. diff --git a/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/fill-values new file mode 100644 index 0000000..4d83180 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: changes-files-package-builds-dbg-and-dbgsym-variants +Package-Architecture: any +Description: Package builds -dbg and -dbgsym diff --git a/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/eval/desc b/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/eval/desc new file mode 100644 index 0000000..19caa6d --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-files-package-builds-dbg-and-dbgsym-variants +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints b/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints new file mode 100644 index 0000000..cc52ce4 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints @@ -0,0 +1,6 @@ +changes-files-package-builds-dbg-and-dbgsym-variants (source): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-files-package-builds-dbg-and-dbgsym-variants (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-files-package-builds-dbg-and-dbgsym-variants (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-files-package-builds-dbg-and-dbgsym-variants-dbgsym (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-files-package-builds-dbg-and-dbgsym-variants-dbg (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-files-package-builds-dbg-and-dbgsym-variants (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-missing-fields/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-missing-fields/build-spec/fill-values new file mode 100644 index 0000000..6a6b7f8 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-missing-fields/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changes-missing-fields +Description: Test for changes missing fields diff --git a/t/recipes/checks/fields/mail-address/changes-missing-fields/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changes-missing-fields/build-spec/test.changes.in new file mode 100644 index 0000000..49c165a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-missing-fields/build-spec/test.changes.in @@ -0,0 +1,9 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Maintainer: [% $author %] +Changed-By: [% $author %] diff --git a/t/recipes/checks/fields/mail-address/changes-missing-fields/eval/desc b/t/recipes/checks/fields/mail-address/changes-missing-fields/eval/desc new file mode 100644 index 0000000..a0ec87b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-missing-fields/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-missing-fields +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-missing-fields/eval/hints b/t/recipes/checks/fields/mail-address/changes-missing-fields/eval/hints new file mode 100644 index 0000000..c0cd300 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-missing-fields/eval/hints @@ -0,0 +1,2 @@ +changes-missing-fields (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-missing-fields (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-missing-format/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-missing-format/build-spec/fill-values new file mode 100644 index 0000000..b6a6f14 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-missing-format/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changes-missing-format +Description: Test for missing format field diff --git a/t/recipes/checks/fields/mail-address/changes-missing-format/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changes-missing-format/build-spec/test.changes.in new file mode 100644 index 0000000..e571bbc --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-missing-format/build-spec/test.changes.in @@ -0,0 +1,11 @@ +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: [% $author %] +Description: + [% $source %] - [% $description %] diff --git a/t/recipes/checks/fields/mail-address/changes-missing-format/eval/desc b/t/recipes/checks/fields/mail-address/changes-missing-format/eval/desc new file mode 100644 index 0000000..7255507 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-missing-format/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-missing-format +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-missing-format/eval/hints b/t/recipes/checks/fields/mail-address/changes-missing-format/eval/hints new file mode 100644 index 0000000..3422268 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-missing-format/eval/hints @@ -0,0 +1,2 @@ +changes-missing-format (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-missing-format (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-unreleased/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-unreleased/build-spec/fill-values new file mode 100644 index 0000000..4359e34 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-unreleased/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: changes +Testname: changes-unreleased +Description: Test for UNRELEASED package uploaded to unstable diff --git a/t/recipes/checks/fields/mail-address/changes-unreleased/build-spec/test.changes.in b/t/recipes/checks/fields/mail-address/changes-unreleased/build-spec/test.changes.in new file mode 100644 index 0000000..4a2eb46 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-unreleased/build-spec/test.changes.in @@ -0,0 +1,16 @@ +Format: 1.8 +Date: [% $date %] +Source: [% $source %] +Binary: [% $source %] +Architecture: source all +Version: [% $version %] +Distribution: unstable +Urgency: low +Maintainer: [% $author %] +Changed-By: [% $author %] +Description: + [% $source %] - [% $description %] +Changes: + [% $source %] ([% $version %]) UNRELEASED; urgency=low + . + * I'm still working on this package, do not upload. diff --git a/t/recipes/checks/fields/mail-address/changes-unreleased/eval/desc b/t/recipes/checks/fields/mail-address/changes-unreleased/eval/desc new file mode 100644 index 0000000..37c8043 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-unreleased/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-unreleased +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-unreleased/eval/hints b/t/recipes/checks/fields/mail-address/changes-unreleased/eval/hints new file mode 100644 index 0000000..95db75b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-unreleased/eval/hints @@ -0,0 +1,2 @@ +changes-unreleased (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-unreleased (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/build-spec/fill-values b/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/build-spec/fill-values new file mode 100644 index 0000000..cf7513a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: changes-upload-has-backports-version-number +Version: 1.0~bpo9+1 +Description: Check for backports that have an incorrect Distribution diff --git a/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/eval/desc b/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/eval/desc new file mode 100644 index 0000000..be2530e --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-upload-has-backports-version-number +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/eval/hints b/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/eval/hints new file mode 100644 index 0000000..cd58ef8 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/changes-upload-has-backports-version-number/eval/hints @@ -0,0 +1,4 @@ +changes-upload-has-backports-version-number (source): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-upload-has-backports-version-number (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-upload-has-backports-version-number (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +changes-upload-has-backports-version-number (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/checksum-count-mismatch/build-spec/fill-values b/t/recipes/checks/fields/mail-address/checksum-count-mismatch/build-spec/fill-values new file mode 100644 index 0000000..3fe5f1f --- /dev/null +++ b/t/recipes/checks/fields/mail-address/checksum-count-mismatch/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: checksum-count-mismatch +Skeleton: upload-native +Description: Check for changes file with missing checksum entry diff --git a/t/recipes/checks/fields/mail-address/checksum-count-mismatch/build-spec/post-build.in b/t/recipes/checks/fields/mail-address/checksum-count-mismatch/build-spec/post-build.in new file mode 100755 index 0000000..4665a7a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/checksum-count-mismatch/build-spec/post-build.in @@ -0,0 +1,3 @@ +#!/bin/sh + +perl -0777 -pi -e 's/(\nChecksums-Sha256:\n)[^\n]*\n/$1/' [% $build_product %] diff --git a/t/recipes/checks/fields/mail-address/checksum-count-mismatch/eval/desc b/t/recipes/checks/fields/mail-address/checksum-count-mismatch/eval/desc new file mode 100644 index 0000000..c8de938 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/checksum-count-mismatch/eval/desc @@ -0,0 +1,2 @@ +Testname: checksum-count-mismatch +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/checksum-count-mismatch/eval/hints b/t/recipes/checks/fields/mail-address/checksum-count-mismatch/eval/hints new file mode 100644 index 0000000..017bfd9 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/checksum-count-mismatch/eval/hints @@ -0,0 +1,4 @@ +checksum-count-mismatch (source): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +checksum-count-mismatch (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +checksum-count-mismatch (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +checksum-count-mismatch (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/distribution-multiple-bad/build-spec/debian/changelog.in b/t/recipes/checks/fields/mail-address/distribution-multiple-bad/build-spec/debian/changelog.in new file mode 100644 index 0000000..c862408 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/distribution-multiple-bad/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +[% $source %] ([% $version %]) stable foo-backportss bar foo; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/fields/mail-address/distribution-multiple-bad/build-spec/fill-values b/t/recipes/checks/fields/mail-address/distribution-multiple-bad/build-spec/fill-values new file mode 100644 index 0000000..4671982 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/distribution-multiple-bad/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: distribution-multiple-bad +Description: Multiple distributions with at least one bad one diff --git a/t/recipes/checks/fields/mail-address/distribution-multiple-bad/eval/desc b/t/recipes/checks/fields/mail-address/distribution-multiple-bad/eval/desc new file mode 100644 index 0000000..70c11c1 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/distribution-multiple-bad/eval/desc @@ -0,0 +1,3 @@ +Testname: distribution-multiple-bad +See-Also: Debian Bug#514853 +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/distribution-multiple-bad/eval/hints b/t/recipes/checks/fields/mail-address/distribution-multiple-bad/eval/hints new file mode 100644 index 0000000..5adc4b6 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/distribution-multiple-bad/eval/hints @@ -0,0 +1,4 @@ +distribution-multiple-bad (source): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +distribution-multiple-bad (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +distribution-multiple-bad (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +distribution-multiple-bad (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/build-spec/debian/control.in new file mode 100644 index 0000000..d80f756 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/build-spec/debian/control.in @@ -0,0 +1,19 @@ +Source: [% $source %] +Priority: optional +Section: devel +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +Uploaders: I Will Loop <fields-maintainer-bounces@packages.debian.org>, + I Will Loop Too <fields-maintainer-bounces@PACKAGES.QA.DEBIAN.ORG> +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. + diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/build-spec/fill-values b/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/build-spec/fill-values new file mode 100644 index 0000000..710a7bd --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: fields-maintainer-bounces +Description: test e-mail addresses which are known to bounce e-mails +Author: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +# To avoid NMU warnings / having a changelog.in diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/eval/desc b/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/eval/desc new file mode 100644 index 0000000..e428087 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/eval/desc @@ -0,0 +1,5 @@ +Testname: fields-maintainer-bounces +Test-Against: + mail-address-loops-or-bounces +Check: fields/mail-address +# To avoid NMU warnings / having a changelog.in diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/eval/hints b/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/eval/hints new file mode 100644 index 0000000..4b6e939 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer-bounces/eval/hints @@ -0,0 +1,10 @@ +fields-maintainer-bounces (source): mail-contact Uploaders "I Will Loop" <fields-maintainer-bounces@packages.debian.org> +fields-maintainer-bounces (source): mail-contact Uploaders "I Will Loop Too" <fields-maintainer-bounces@PACKAGES.QA.DEBIAN.ORG> +fields-maintainer-bounces (source): mail-contact Maintainer "Ubuntu Developers" <ubuntu-devel-discuss@lists.ubuntu.com> +fields-maintainer-bounces (source): mail-address-loops-or-bounces Maintainer ubuntu-devel-discuss@lists.ubuntu.com +fields-maintainer-bounces (changes): mail-contact Maintainer "Ubuntu Developers" <ubuntu-devel-discuss@lists.ubuntu.com> +fields-maintainer-bounces (changes): mail-contact Changed-By "Ubuntu Developers" <ubuntu-devel-discuss@lists.ubuntu.com> +fields-maintainer-bounces (changes): mail-address-loops-or-bounces Maintainer ubuntu-devel-discuss@lists.ubuntu.com +fields-maintainer-bounces (changes): mail-address-loops-or-bounces Changed-By ubuntu-devel-discuss@lists.ubuntu.com +fields-maintainer-bounces (binary): mail-contact Maintainer "Ubuntu Developers" <ubuntu-devel-discuss@lists.ubuntu.com> +fields-maintainer-bounces (binary): mail-address-loops-or-bounces Maintainer ubuntu-devel-discuss@lists.ubuntu.com diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer-general/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/fields-maintainer-general/build-spec/debian/control.in new file mode 100644 index 0000000..00f2799 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer-general/build-spec/debian/control.in @@ -0,0 +1,22 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: lintian-maint@debian.org +Uploaders: <lintian-maint@debian.org>, Russ Allbery <rra@debian.org>, + Russ Allbery <rra@debian.org>, + Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>, + Double comma <double@comma.com>, , + Mr. Missing Comma <mrmc@comma.com> + Mrs. Missing Comma <mrsmc@comma.com> +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. diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer-general/build-spec/fill-values b/t/recipes/checks/fields/mail-address/fields-maintainer-general/build-spec/fill-values new file mode 100644 index 0000000..d6a4051 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: fields-maintainer-general +Description: Tests of various maintainer and uploader tags diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer-general/eval/desc b/t/recipes/checks/fields/mail-address/fields-maintainer-general/eval/desc new file mode 100644 index 0000000..51ea5a2 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer-general/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-maintainer-general +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer-general/eval/hints b/t/recipes/checks/fields/mail-address/fields-maintainer-general/eval/hints new file mode 100644 index 0000000..4e30932 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer-general/eval/hints @@ -0,0 +1,16 @@ +fields-maintainer-general (source): no-phrase Uploaders lintian-maint@debian.org +fields-maintainer-general (source): no-phrase Maintainer lintian-maint@debian.org +fields-maintainer-general (source): malformed-contact Uploaders Mr. Missing Comma <mrmc@comma.com> +fields-maintainer-general (source): malformed-contact Uploaders +fields-maintainer-general (source): mail-contact Uploaders lintian-maint@debian.org +fields-maintainer-general (source): mail-contact Uploaders "Ubuntu Developers" <ubuntu-devel-discuss@lists.ubuntu.com> +fields-maintainer-general (source): mail-contact Uploaders "Russ Allbery" <rra@debian.org> +fields-maintainer-general (source): mail-contact Uploaders "Double comma" <double@comma.com> +fields-maintainer-general (source): mail-contact Maintainer lintian-maint@debian.org +fields-maintainer-general (source): mail-address-loops-or-bounces Uploaders ubuntu-devel-discuss@lists.ubuntu.com +fields-maintainer-general (source): duplicate-contact Uploaders rra@debian.org +fields-maintainer-general (changes): no-phrase Maintainer lintian-maint@debian.org +fields-maintainer-general (changes): mail-contact Maintainer lintian-maint@debian.org +fields-maintainer-general (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +fields-maintainer-general (binary): no-phrase Maintainer lintian-maint@debian.org +fields-maintainer-general (binary): mail-contact Maintainer lintian-maint@debian.org diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/fields-maintainer/build-spec/debian/control.in new file mode 100644 index 0000000..a2a865b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: [% $source %] +Priority: optional +Section: devel +Maintainer: Mrs. Localhost<user@localhost> +Uploaders: [% $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. + diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer/build-spec/fill-values b/t/recipes/checks/fields/mail-address/fields-maintainer/build-spec/fill-values new file mode 100644 index 0000000..76428de --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: fields-maintainer +Description: General tests of the maintainer field diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer/eval/desc b/t/recipes/checks/fields/mail-address/fields-maintainer/eval/desc new file mode 100644 index 0000000..6d0e902 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-maintainer +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/fields-maintainer/eval/hints b/t/recipes/checks/fields/mail-address/fields-maintainer/eval/hints new file mode 100644 index 0000000..af1b6d4 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-maintainer/eval/hints @@ -0,0 +1,8 @@ +fields-maintainer (source): mail-contact Uploaders "Debian Lintian Maintainers" <lintian-maint@debian.org> +fields-maintainer (source): mail-contact Maintainer "Mrs. Localhost" <user@localhost> +fields-maintainer (source): bogus-mail-host Maintainer user@localhost +fields-maintainer (changes): mail-contact Maintainer "Mrs. Localhost" <user@localhost> +fields-maintainer (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +fields-maintainer (changes): bogus-mail-host Maintainer user@localhost +fields-maintainer (binary): mail-contact Maintainer "Mrs. Localhost" <user@localhost> +fields-maintainer (binary): bogus-mail-host Maintainer user@localhost diff --git a/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/build-spec/fill-values b/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/build-spec/fill-values new file mode 100644 index 0000000..e64711d --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: fields-no-human-maintainer +Description: Checks for a package maintained only by a list +Author: Lintian Maintainers <debian-lint-maint@lists.debian.org> diff --git a/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/eval/desc b/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/eval/desc new file mode 100644 index 0000000..9ca88c2 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-no-human-maintainer +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/eval/hints b/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/eval/hints new file mode 100644 index 0000000..266558a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-no-human-maintainer/eval/hints @@ -0,0 +1,4 @@ +fields-no-human-maintainer (source): mail-contact Maintainer "Lintian Maintainers" <debian-lint-maint@lists.debian.org> +fields-no-human-maintainer (changes): mail-contact Maintainer "Lintian Maintainers" <debian-lint-maint@lists.debian.org> +fields-no-human-maintainer (changes): mail-contact Changed-By "Lintian Maintainers" <debian-lint-maint@lists.debian.org> +fields-no-human-maintainer (binary): mail-contact Maintainer "Lintian Maintainers" <debian-lint-maint@lists.debian.org> diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/debian/changelog.in b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/debian/changelog.in new file mode 100644 index 0000000..23a7dae --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Orphaned. + * Lintian Test Suite. + * Test: [% $testname %] + + -- Debian QA Group <debian-qa@lists.debian.org> [% $date %] diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/debian/control.in new file mode 100644 index 0000000..5255485 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: devel +Maintainer: Debian QA Group <debian-qa@lists.debian.org> +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +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. diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/fill-values b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/fill-values new file mode 100644 index 0000000..dbfe492 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: fields-qa-maint-address +Description: Test for the QA in Maintainer field diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-address/eval/desc b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/eval/desc new file mode 100644 index 0000000..f5a860b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-qa-maint-address +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-address/eval/hints b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/eval/hints new file mode 100644 index 0000000..0bbb7fc --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-address/eval/hints @@ -0,0 +1,8 @@ +fields-qa-maint-address (source): mail-contact Maintainer "Debian QA Group" <debian-qa@lists.debian.org> +fields-qa-maint-address (source): faulty-debian-qa-group-address Maintainer debian-qa@lists.debian.org -> packages@qa.debian.org +fields-qa-maint-address (changes): mail-contact Maintainer "Debian QA Group" <debian-qa@lists.debian.org> +fields-qa-maint-address (changes): mail-contact Changed-By "Debian QA Group" <debian-qa@lists.debian.org> +fields-qa-maint-address (changes): faulty-debian-qa-group-address Maintainer debian-qa@lists.debian.org -> packages@qa.debian.org +fields-qa-maint-address (changes): faulty-debian-qa-group-address Changed-By debian-qa@lists.debian.org -> packages@qa.debian.org +fields-qa-maint-address (binary): mail-contact Maintainer "Debian QA Group" <debian-qa@lists.debian.org> +fields-qa-maint-address (binary): faulty-debian-qa-group-address Maintainer debian-qa@lists.debian.org -> packages@qa.debian.org diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/debian/changelog.in b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/debian/changelog.in new file mode 100644 index 0000000..d545fc7 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Orphaned. + * Lintian Test Suite. + * Test: [% $testname %] + + -- Debian QA <packages@qa.debian.org> [% $date %] diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/debian/control.in new file mode 100644 index 0000000..88bbdfb --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: devel +Maintainer: Debian QA <packages@qa.debian.org> +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +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. diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/fill-values b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/fill-values new file mode 100644 index 0000000..bb4b82b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: fields-qa-maint-name +Description: Test for the QA in Maintainer field diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-name/eval/desc b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/eval/desc new file mode 100644 index 0000000..c9d8f0d --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-qa-maint-name +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/fields-qa-maint-name/eval/hints b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/eval/hints new file mode 100644 index 0000000..d7bfa21 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-qa-maint-name/eval/hints @@ -0,0 +1,8 @@ +fields-qa-maint-name (source): mail-contact Maintainer "Debian QA" <packages@qa.debian.org> +fields-qa-maint-name (source): faulty-debian-qa-group-phrase Maintainer Debian QA -> Debian QA Group +fields-qa-maint-name (changes): mail-contact Maintainer "Debian QA" <packages@qa.debian.org> +fields-qa-maint-name (changes): mail-contact Changed-By "Debian QA" <packages@qa.debian.org> +fields-qa-maint-name (changes): faulty-debian-qa-group-phrase Maintainer Debian QA -> Debian QA Group +fields-qa-maint-name (changes): faulty-debian-qa-group-phrase Changed-By Debian QA -> Debian QA Group +fields-qa-maint-name (binary): mail-contact Maintainer "Debian QA" <packages@qa.debian.org> +fields-qa-maint-name (binary): faulty-debian-qa-group-phrase Maintainer Debian QA -> Debian QA Group diff --git a/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/debian/changelog.in b/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/debian/changelog.in new file mode 100644 index 0000000..440e3cd --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Orphaned. + * Lintian Test Suite. + * Test: [% $testname %] + + -- root <someone@debian.org> [% $date %] diff --git a/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/debian/control.in new file mode 100644 index 0000000..005e664 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/debian/control.in @@ -0,0 +1,17 @@ +Source: [% $source %] +Priority: optional +Section: devel +Maintainer: root <someone@debian.org> +Uploaders: John Doe <root@debian.org> +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +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. diff --git a/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/fill-values b/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/fill-values new file mode 100644 index 0000000..8938c72 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-root-maint-address/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: fields-root-maint-address +Description: Test for root in Maintainer field diff --git a/t/recipes/checks/fields/mail-address/fields-root-maint-address/eval/desc b/t/recipes/checks/fields/mail-address/fields-root-maint-address/eval/desc new file mode 100644 index 0000000..ab6b6a2 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-root-maint-address/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-root-maint-address +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/fields-root-maint-address/eval/hints b/t/recipes/checks/fields/mail-address/fields-root-maint-address/eval/hints new file mode 100644 index 0000000..41e6d65 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-root-maint-address/eval/hints @@ -0,0 +1,10 @@ +fields-root-maint-address (source): root-in-contact Uploaders "John Doe" <root@debian.org> +fields-root-maint-address (source): root-in-contact Maintainer root <someone@debian.org> +fields-root-maint-address (source): mail-contact Uploaders "John Doe" <root@debian.org> +fields-root-maint-address (source): mail-contact Maintainer root <someone@debian.org> +fields-root-maint-address (changes): root-in-contact Maintainer root <someone@debian.org> +fields-root-maint-address (changes): root-in-contact Changed-By root <someone@debian.org> +fields-root-maint-address (changes): mail-contact Maintainer root <someone@debian.org> +fields-root-maint-address (changes): mail-contact Changed-By root <someone@debian.org> +fields-root-maint-address (binary): root-in-contact Maintainer root <someone@debian.org> +fields-root-maint-address (binary): mail-contact Maintainer root <someone@debian.org> diff --git a/t/recipes/checks/fields/mail-address/fields-uploaders/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/fields-uploaders/build-spec/debian/control.in new file mode 100644 index 0000000..8a5812a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-uploaders/build-spec/debian/control.in @@ -0,0 +1,23 @@ +Source: [% $source %] +Priority: optional +Section: devel +Maintainer: [% $author %] +Uploaders: Mrs. Localhost <user@localhost>, + Mr. Weird<no-space@somewhere.com>, + Malformed Email <@ddress@myspace.com>, + John A. J. Doe <i.am.ok@somewhere.com>, + Doris Double-Email <Doris Double-Email <doris@demail.com>>, + Valid email <0@somewhere.com> +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. + diff --git a/t/recipes/checks/fields/mail-address/fields-uploaders/build-spec/fill-values b/t/recipes/checks/fields/mail-address/fields-uploaders/build-spec/fill-values new file mode 100644 index 0000000..56aa76e --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-uploaders/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: fields-uploaders +Description: General tests of the uploaders field diff --git a/t/recipes/checks/fields/mail-address/fields-uploaders/eval/desc b/t/recipes/checks/fields/mail-address/fields-uploaders/eval/desc new file mode 100644 index 0000000..6e7a347 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-uploaders/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-uploaders +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/fields-uploaders/eval/hints b/t/recipes/checks/fields/mail-address/fields-uploaders/eval/hints new file mode 100644 index 0000000..4e0c55e --- /dev/null +++ b/t/recipes/checks/fields/mail-address/fields-uploaders/eval/hints @@ -0,0 +1,10 @@ +fields-uploaders (source): malformed-contact Uploaders Malformed Email <@ddress@myspace.com> +fields-uploaders (source): malformed-contact Uploaders Doris Double-Email <Doris +fields-uploaders (source): mail-contact Uploaders "Mrs. Localhost" <user@localhost> +fields-uploaders (source): mail-contact Uploaders "Mr. Weird" <no-space@somewhere.com> +fields-uploaders (source): mail-contact Uploaders "John A. J. Doe" <i.am.ok@somewhere.com> +fields-uploaders (source): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +fields-uploaders (source): bogus-mail-host Uploaders user@localhost +fields-uploaders (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +fields-uploaders (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +fields-uploaders (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/changelog.in b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/changelog.in new file mode 100644 index 0000000..7a4298d --- /dev/null +++ b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/changelog.in @@ -0,0 +1,2 @@ +[% $source %] ([% $version %]) unstable; + -- a <> Tue, 30 Dec 2008 17:34:02 -0800 diff --git a/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/control.in new file mode 100644 index 0000000..575773e --- /dev/null +++ b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/control.in @@ -0,0 +1,5 @@ +Source: [% $source %] +Maintainer: a + +Package: [% $source %] +Architecture: [% $package_architecture %] diff --git a/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/rules b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/rules new file mode 100755 index 0000000..62da96d --- /dev/null +++ b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +build: +binary: + install -d debian/generic-empty debian/generic-empty/DEBIAN + dpkg-gencontrol -pgeneric-empty -Pdebian/generic-empty + dpkg --build debian/generic-empty .. + +clean: + rm -rf debian/generic-empty diff --git a/t/recipes/checks/fields/mail-address/generic-empty/build-spec/fill-values b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/fill-values new file mode 100644 index 0000000..26d9bdc --- /dev/null +++ b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: generic-empty +Package-Architecture: all +Description: Pathological empty package diff --git a/t/recipes/checks/fields/mail-address/generic-empty/build-spec/orig/README b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/orig/README new file mode 100644 index 0000000..ed1b149 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/orig/README @@ -0,0 +1,4 @@ +This is the smallest possible Debian package that I can get +dpkg-buildpackage to build (with the exception of this documentation). +It tests Lintian handling of packages that are missing everything one +would normally expect to have. diff --git a/t/recipes/checks/fields/mail-address/generic-empty/build-spec/pre-build b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/pre-build new file mode 100755 index 0000000..1a3929a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/generic-empty/build-spec/pre-build @@ -0,0 +1,6 @@ +#!/bin/sh +# +# Remove as many files from the package as possible. + +rm -f "$1/debian/compat" +rm -f "$1/debian/copyright" diff --git a/t/recipes/checks/fields/mail-address/generic-empty/eval/desc b/t/recipes/checks/fields/mail-address/generic-empty/eval/desc new file mode 100644 index 0000000..acf9e92 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/generic-empty/eval/desc @@ -0,0 +1,2 @@ +Testname: generic-empty +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/generic-empty/eval/hints b/t/recipes/checks/fields/mail-address/generic-empty/eval/hints new file mode 100644 index 0000000..88e582a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/generic-empty/eval/hints @@ -0,0 +1,4 @@ +generic-empty (source): malformed-contact Maintainer a +generic-empty (changes): malformed-contact Maintainer a +generic-empty (changes): malformed-contact Changed-By a <> +generic-empty (binary): malformed-contact Maintainer a diff --git a/t/recipes/checks/fields/mail-address/java-team-fp/build-spec/fill-values b/t/recipes/checks/fields/mail-address/java-team-fp/build-spec/fill-values new file mode 100644 index 0000000..f21d0dd --- /dev/null +++ b/t/recipes/checks/fields/mail-address/java-team-fp/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: source-native +Testname: java-team-fp +Author: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Description: Java team plans to use lists.alioth.d.o diff --git a/t/recipes/checks/fields/mail-address/java-team-fp/eval/desc b/t/recipes/checks/fields/mail-address/java-team-fp/eval/desc new file mode 100644 index 0000000..955e571 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/java-team-fp/eval/desc @@ -0,0 +1,3 @@ +Testname: java-team-fp +Check: fields/mail-address +See-Also: Bug#962448 diff --git a/t/recipes/checks/fields/mail-address/java-team-fp/eval/hints b/t/recipes/checks/fields/mail-address/java-team-fp/eval/hints new file mode 100644 index 0000000..58ab4e5 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/java-team-fp/eval/hints @@ -0,0 +1,2 @@ +java-team-fp (source): mailing-list-on-alioth Maintainer pkg-java-maintainers@lists.alioth.debian.org +java-team-fp (source): mail-contact Maintainer "Debian Java Maintainers" <pkg-java-maintainers@lists.alioth.debian.org> diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/README.Debian new file mode 100644 index 0000000..87bfcdf --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/changelog.in new file mode 100644 index 0000000..f838939 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/changelog.in @@ -0,0 +1,31 @@ +foo++ ([% $version %]) [% $distribution %]; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: 'ä' + + -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/control b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/control new file mode 100644 index 0000000..57a489c --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/control @@ -0,0 +1,30 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer <debian-qa@lists.debian.org> +Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>, + Frank <djpig@debian.org>, Yama@gotchi, Josip, + I am afraid of spam and think this helps <no_spam_please AT debian.org> +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description uses only UTF-8 high bytes chars. + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + 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/fields/mail-address/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/copyright new file mode 100644 index 0000000..e2d6d93 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/rules new file mode 100755 index 0000000..63bb4db --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/watch new file mode 100644 index 0000000..26f9a3c --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/fill-values b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/fill-values new file mode 100644 index 0000000..86d43bc --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: legacy-foo++ +Source: foo++ +Version: 5 +Description: Legacy test "foo++" diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/eval/desc b/t/recipes/checks/fields/mail-address/legacy-foo++/eval/desc new file mode 100644 index 0000000..3173f50 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-foo++ +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/eval/hints b/t/recipes/checks/fields/mail-address/legacy-foo++/eval/hints new file mode 100644 index 0000000..2b778ce --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/eval/hints @@ -0,0 +1,20 @@ +foo++ (source): no-phrase Uploaders Yama@gotchi +foo++ (source): malformed-contact Uploaders Josip +foo++ (source): malformed-contact Uploaders I am afraid of spam and think this helps <no_spam_please +foo++ (source): mail-contact Uploaders Yama@gotchi +foo++ (source): mail-contact Uploaders Frank <djpig@debian.org> +foo++ (source): mail-contact Uploaders "Marc 'HE' Brockschmidt" <he@unknown> +foo++ (source): mail-contact Uploaders "Jeroen van Wolffelaar" <jeroen@localhost.localdomain> +foo++ (source): mail-contact Maintainer "Lintian Maintainer" <debian-qa@lists.debian.org> +foo++ (source): faulty-debian-qa-group-address Maintainer debian-qa@lists.debian.org -> packages@qa.debian.org +foo++ (source): bogus-mail-host Uploaders jeroen@localhost.localdomain +foo++ (source): bogus-mail-host Uploaders he@unknown +foo++ (source): bogus-mail-host Uploaders Yama@gotchi +foo++ (changes): mail-contact Maintainer "Lintian Maintainer" <debian-qa@lists.debian.org> +foo++ (changes): mail-contact Changed-By "Marc 'HE' Brockschmidt" <he@unknown> +foo++ (changes): faulty-debian-qa-group-address Maintainer debian-qa@lists.debian.org -> packages@qa.debian.org +foo++ (changes): bogus-mail-host Changed-By he@unknown +foo++-helper (binary): mail-contact Maintainer "Lintian Maintainer" <debian-qa@lists.debian.org> +foo++-helper (binary): faulty-debian-qa-group-address Maintainer debian-qa@lists.debian.org -> packages@qa.debian.org +foo++ (binary): mail-contact Maintainer "Lintian Maintainer" <debian-qa@lists.debian.org> +foo++ (binary): faulty-debian-qa-group-address Maintainer debian-qa@lists.debian.org -> packages@qa.debian.org diff --git a/t/recipes/checks/fields/mail-address/legacy-foo++/eval/post-test b/t/recipes/checks/fields/mail-address/legacy-foo++/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-foo++/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/changelog.in b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..a12fc8c --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/changelog.in @@ -0,0 +1,57 @@ +maintainer-scripts ([% $version %]) [% $distribution %]; urgency=low + + * Doing an upload for QA but I fail to give it a correct version number, + have some uploaders, and also fail to mention it... Bad me ;) + + -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:05:29 +0200 + +maintainer-scripts (6.1) unstable; urgency=low + + * I made this entry on my local PC, oops ;) + + -- Jeroen van Wolffelaar <jeroen@mordor> Sat, 21 Feb 2004 18:29:37 +0100 + +maintainer-scripts (6) unstable; urgency=low + + * added ldconfig calls to postrm to check test the postrm tests + from shared-libs + + -- Frank Lichtenheld <djpig@debian.org> Sat, 21 Feb 2004 18:29:36 +0100 + +maintainer-scripts (5) unstable; urgency=low + + * added bash style arrays to postinst, this one is for you Torsten (-: + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Fri, 30 Mar 2001 23:27:06 -0800 + +maintainer-scripts (4) unstable; urgency=low + + * added a here document to the prerm, along with two more bashisms + * made postrm a bash script to check that bash scripts are not searched + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Mon, 26 Feb 2001 13:02:57 -0800 + +maintainer-scripts (3) unstable; urgency=low + + * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this + thinking the '||' was a argument. + * also added an invalid call to '. foo bar' + * postinst now has a space between the #! and /bin/sh to test the interpreter + checking code. + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 9 Jan 2001 23:06:25 -0800 + +maintainer-scripts (2) unstable; urgency=low + + * Fix location of changelog. + * prerm and postrm do 'update-alternatives --remove'; should only complain + about postrm. + + -- Colin Watson <cjw44@flatline.org.uk> Fri, 29 Dec 2000 06:01:24 +0000 + +maintainer-scripts (1) unstable; urgency=low + + * Initial version + * postinst and prerm set the usr/doc symlink + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/control.in b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..63dd2db --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: maintainer-scripts +Section: misc +Priority: optional +Maintainer: QA group <packages@qa.debian.org> +Uploaders: Anyone but Jeroen <jeroen@wolffelaar.nl> +Build-Depends: [% $build_depends %] +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets +XS-Dm-Upload-Allowed: Yes + +Package: maintainer-scripts +Architecture: [% $package_architecture %] +Depends: test +Description: test lintian's maintainer script checks + 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/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/postinst b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..e56ed3b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/postinst @@ -0,0 +1,181 @@ +#! /bin/sh -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then + ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts + fi +fi + +# valid +. /usr/share/lintian/shell || exit 0 +. /usr/share/lintian/shell >/dev/null +. /usr/share/lintian/shell 2>/dev/null +. /usr/share/lintian/shell </dev/null +. "$(dirname $0)/shell" ; bar +# invalid +. /usr/share/lintian/shell foo +. "$(dirname $0)/shell" bar + +print "Hit enter to continue" +read + +H[0]='this is a string' +echo ${H[0]} +echo "Index 0's length is ${#H[0]}" +echo "All of the array is: ${H[@]}" + +install-info /usr/share/info/foo \ + --quiet \ # make it so + --section foo + +echo Please use update-rc.d or invoke-rc.d to set up blah blah. + +chown root.root /usr/share/doc/maintainer-scripts/changelog +chown root:root /usr/share/doc/maintainer-scripts/changelog + +$FOO=bar +update-rc.d foo defaults >/dev/null +update-rc.d $FOO defaults +update-rc.d foo remove + +# valid +FOO=/tmp +FOO=/var/tmp +: ${FOO:=/tmp} +FOO=`mktemp /tmp/scripts.XXXXXX` +rm "$FOO" +FOO=`tempfile -n/tmp/scripts.tmp` +mkdir /var/tmp/scripts +FOO="/tmp/false.positive.XXXXXX" +# invalid +echo foo >>/tmp/scripts.tmp +rm /tmp/scripts.tmp +rmdir /var/tmp/scripts + +# invalid, maintainer-script-hides-init-failure +invoke-rc.d foo start || exit 0 + +# The right way to invoke an rc script +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d package start +else + /etc/init.d/package start +fi + +# Example ucf invocation. +ucf /usr/share/foo/configuration /etc/foo.conf + +# Calling gconftool directly. +gconftool-2 --makefile-install-rule foo.schema + +# Calling gconf-schemas with no dependency. +gconf-schemas --register foo.schema + +# Calling update-xmlcatalog with no dependency. +update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \ + --package maintainer-scripts --root + +# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old +# recipe from the dpkg wiki that should be replaced with dpkg-query. +sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \ + /var/lib/dpkg/status + +# Don't modify these files. +echo 'broken 6714/tcp' >> /etc/services +cp /nonexistent /etc/protocols +mv /usr/share/doc/rpc /etc/rpc + +# But this is okay. +cp /etc/protocols /etc/protocols.new + +# This is also wrong. +echo 'broken' > /etc/inetd.conf +cp /etc/inetd.conf.new /etc/inetd.conf + +# But this is fine. +cp /etc/inetd.conf /srv/chroot/etc/inetd.conf + +# Deprecated +install-sgmlcatalog --install package +install-sgmlcatalog --remove package + +# This too is a heredoc. +some-program > /etc/config-file <<'EOF' +echo "All of the array is: ${H[@]}" +EOF + +# But this isn't. +cat '<<EOF' +echo "All of the array is: ${H[@]}" +EOF + +# This is a heredoc +cat <<-EOF +echo "All of the array is ${H[@]}" +EOF + +# As is this +cat <<';' +echo "All of the array is ${H[@]}" +; + +# and this +cat <<foo +echo "All of the array is ${H[@]}" +foobar +echo $HOSTNAME +foo + +# and again +cat <<\bar +echo "All of the array is ${H[@]}" +bar + +# yet another +cat <<"x++" +echo "All of the array is ${H[@]}" +x++ + +# Recognize single quotes even if they start at the beginning of a line. +echo not a bashism \ +'/{ptex,tex}/{amstex,plain,generic,}' + +# More bashisms. +echo -e 'foo\n' +echo "${!foo}" +cat $(\< file) +select foo in a b ; do echo $foo ; done +cnt=$((cnt + 1)) +if false ; then + exec -l /bin/sh + exec -c /bin/sh + exec -a foo /bin/sh +fi +let cnt++ +if test -a /etc/default ; then + echo "$RANDOM|stuff" +fi + +# Calling start-stop-daemon directly in an init script. +start-stop-daemon --start --quiet --name foo --startas /usr/bin/foo + +# But stopping it is fine -- we may be working around something else. +start-stop-daemon --stop --quiet --name foo --startas /usr/bin/foo + +# Deprecated chown use with flags. +chown -R root.root /usr/share/doc/maintainer-scripts + +case $mainscript in + /usr/bin/foo) foobarbaz;; +esac + +/usr/bin/baz; echo bar + +# Some comment checking +# This should flag $RANDOM +test $# -gt 2 && echo $RANDOM +# But these shouldn't +test 1=1 # echo $RANDOM +(test 1=1)# echo $RANDOM +test 1=1;# echo $RANDOM +backgroundtask &#echo $RA diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/postrm b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/postrm new file mode 100644 index 0000000..c0aaf19 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/postrm @@ -0,0 +1,47 @@ +#!/bin/bash +#set -e + +update-alternatives --remove dummy /usr/bin/dummy-alternative + +# Normally read in a maintainer script is not kosher, but here we're going +# to do it only if debconf doesn't exist. +if ! test -f /usr/share/debconf/confmodule ; then + echo "Hit enter" + read +fi + +# neither of the following should be detected as postrm-unsafe-ldconfig +# intended, without quotes + if [ "$1" = remove ]; then + ldconfig + fi +# reversed, many whitespace +if [ 'remove' = "$1" ] +then + + ldconfig +fi + +[ "remove" ="$1" ] && ldconfig + +update-rc.d bar remove + +# Shouldn't provoke an error despite no invoke-rc.d. +echo "/etc/init.d/package stop to stop something" + +# Shouldn't require a ucf dependency. Unfortunately, right now that's +# just because postrm isn't checked, not because we ensure that the +# invocation is conditional. +if which ucf >/dev/null; then + ucf --purge /etc/foo.conf +fi + +# This isn't allowed. +rm /tmp/foo /dev/device +rm /dev/device1 + +# But this is okay. +rm /tmp/foo > /dev/null + +# Not allowed here even with remove. +install-sgmlcatalog --remove package diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/preinst b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..6058978 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/preinst @@ -0,0 +1,18 @@ +#!/bin/sh + +update-rc.d foo remove +update-rc.d bar defaults + +# Obsolete dpkg assertions. +dpkg --assert-support-predepends || exit 1 +dpkg --assert-working-epoch || exit 1 +dpkg --assert-long-filenames || exit 1 +dpkg --assert-multi-conrep || exit 1 + +/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status + +# continuation lines +update-alternatives --install /usr/bin/fakeroot fakeroot \ + /usr/bin/fakeroot-ng 5 \ + --slave /usr/share/man/man1/fakeroot.1.gz \ + fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/prerm b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/prerm new file mode 100644 index 0000000..076ecaf --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/prerm @@ -0,0 +1,188 @@ +#!/bin/sh + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove dummy /usr/bin/dummy-alternative +fi + +if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the +n + rm -f /usr/doc/maintainer-scripts +fi + +cat <<EOF +This is all really bad bash specific code!!! +read +source /bar/baz/bat foo +EOF + +# ok, back to checking +if [ "$2" == "purge" ]; then + rm -r /bar/baz +fi + +function foo( ) { + # but not here: local + local bar + echo "foo" &>/dev/null +} + +source $FOO + +trap "echo hi" EXIT HUP 3 + +if [[ "$2" = "purge" ]]; then + kill -HUP $$ +fi + +#this is ok though +if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then + echo 1 +fi + +update-rc.d foo remove + +# More false positives for bashism checks. None of these are errors. +echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//' +echo "$line" | grep -q "${fonts},${foo}" +echo '$[1+2]' +printf "foo |& bar" +perl -e "print q( kill -HUP $? )" + +# Still catch disallowed expansions in double-quotes, though. +echo "${line:3:1}" + +# The wrong way to run an init script (no invoke-rc.d). +/etc/init.d/package stop + +# This is the only install-sgmlcatalog call that's allowed. +install-sgmlcatalog --quiet --remove package + +# More bashisms checks + +read -x foo +read -x +read -r foo +read foo +read + +echo "a\\b" +echo 'a\nb' + +echo "${UID}" +echo "$EUID" +echo "$SHLVL" +echo "$DIRSTACK" +echo "$SECONDS" +echo "$BASH" +echo "$BASH_FOO" +echo "$SHELLOPTS" +echo "$PIPESTATUS" + +bar="$(cut '-d|' -f2 <<< "$foo")" + +VAR=1 +VAR+=a + +echos() { + echo -n -e "bar" + echo -e -n "bar" + echo -en "bar" + echo -ne "bar" + echo "bar" + echo "echo -e foo" +} + +ech.os() { + echo foo >& 2 + echo foo >&bar + echo foo >& bar +} + +echoes() { + echo "abc\nxyz" + echo 'xyz\rabc' + echo foo\cbar + + echo -e "abc\nxyz" + echo -net 'xyz\rabc' + echo -e foo\cbar +} + +foobar.() { + suspend x + suspended x + caller x + complete x + compgen x + declare -a foo +} + +.foobar() { + typeset -x bar + disown 1 + builtin foo + set -B + alias -p + unalias -a +} + +IFS="()" + +ulimit +shopt +type -v bar +time ls +dirs +diff <(tac a) <(tac b) + +pushd + +local foo=bar +local -x foo + +popd + +readonly -f + +echo bar > /dev/tcp +export x +export -x x +export -p x + +sh -x +sh -D +sh --foo +sh +O + +# Brace expansion checks +echo {a,b} +echo {abc},{bcd} + +foobar() +{ + # This is a function +} + + foo.bar() +( + # This is a function with a bad name +) + +foobar@() +{ + # As is this +} + +# This is ok +read -r foo +# but these aren't +read -r +read -p "Would you like to restart the service?" foo bar +read --fish + +set -e + +source "$BAR" +source '$BAR' +source ~/bar +source a diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/rules b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/rules new file mode 100755 index 0000000..5fcef00 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + install -m 0755 debian/preinst debian/tmp/DEBIAN + install -m 0755 debian/postinst debian/tmp/DEBIAN + install -m 0755 debian/prerm debian/tmp/DEBIAN + install -m 0755 debian/postrm debian/tmp/DEBIAN + install -m 0644 debian/triggers debian/tmp/DEBIAN + install -d debian/tmp/usr/share/doc/maintainer-scripts + install -m 0644 debian/changelog \ + debian/tmp/usr/share/doc/maintainer-scripts/changelog + gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-arch binary-indep + +# Make sure we see dh_clean even in a rule clean depends on. Not the point of +# this test suite, but a convenient place to put it. +clean: clean1 clean2 clean3 +clean1: +clean2: + dh_clean +clean3: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/triggers b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/triggers new file mode 100644 index 0000000..f627094 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/triggers @@ -0,0 +1,4 @@ +# Example triggers file +activate foo + +interest bar diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/watch b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/watch new file mode 100644 index 0000000..430eea3 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/debian/watch @@ -0,0 +1,11 @@ +# A whitespace is fine for uscan: + version=5 + +# Following line should not be matched: +#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \ +# Following one is incorrect, there's a missing backslash at the end +opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ + +# 'active' is useless here, but it works anyway +options=active \ +http://domain.tld/foo-(.+)\.tar\.gz
\ No newline at end of file diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/fill-values b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/fill-values new file mode 100644 index 0000000..c281e87 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-non-native +Testname: legacy-maintainer-scripts +Source: maintainer-scripts +Version: 7+dfsg-0.1 +Description: Legacy test "maintainer-scripts" +Extra-Build-Depends: dash (>= 0.5.10.2) diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/desc b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/desc new file mode 100644 index 0000000..1d850e3 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-maintainer-scripts +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/hints b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/hints new file mode 100644 index 0000000..1ac448c --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/hints @@ -0,0 +1,8 @@ +maintainer-scripts (source): mail-contact Uploaders "Anyone but Jeroen" <jeroen@wolffelaar.nl> +maintainer-scripts (source): mail-contact Maintainer "QA group" <packages@qa.debian.org> +maintainer-scripts (source): faulty-debian-qa-group-phrase Maintainer QA group -> Debian QA Group +maintainer-scripts (changes): mail-contact Maintainer "QA group" <packages@qa.debian.org> +maintainer-scripts (changes): mail-contact Changed-By "Jeroen van Wolffelaar" <jeroen@wolffelaar.nl> +maintainer-scripts (changes): faulty-debian-qa-group-phrase Maintainer QA group -> Debian QA Group +maintainer-scripts (binary): mail-contact Maintainer "QA group" <packages@qa.debian.org> +maintainer-scripts (binary): faulty-debian-qa-group-phrase Maintainer QA group -> Debian QA Group diff --git a/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/post-test b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/legacy-maintainer-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/build-spec/fill-values b/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/build-spec/fill-values new file mode 100644 index 0000000..c21a8af --- /dev/null +++ b/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: mismatch-between-changes-and-source +Description: Maintainer in changes files is different from source diff --git a/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/build-spec/post-build.in b/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/build-spec/post-build.in new file mode 100755 index 0000000..123b424 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/build-spec/post-build.in @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +product="[% $build_product %]" + +sed -i 's/^Maintainer:.*$/Maintainer: Unknown <never@heard.of>/' "$product" diff --git a/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/eval/desc b/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/eval/desc new file mode 100644 index 0000000..d41c78a --- /dev/null +++ b/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/eval/desc @@ -0,0 +1,2 @@ +Testname: mismatch-between-changes-and-source +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/eval/hints b/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/eval/hints new file mode 100644 index 0000000..c013454 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/mismatch-between-changes-and-source/eval/hints @@ -0,0 +1,5 @@ +mismatch-between-changes-and-source (source): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +mismatch-between-changes-and-source (changes): mail-contact Maintainer Unknown <never@heard.of> +mismatch-between-changes-and-source (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +mismatch-between-changes-and-source (changes): bogus-mail-host Maintainer never@heard.of +mismatch-between-changes-and-source (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> diff --git a/t/recipes/checks/fields/mail-address/missing-closing-bracket/build-spec/fill-values b/t/recipes/checks/fields/mail-address/missing-closing-bracket/build-spec/fill-values new file mode 100644 index 0000000..6a687cd --- /dev/null +++ b/t/recipes/checks/fields/mail-address/missing-closing-bracket/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: missing-closing-bracket +Author: Work <me@work.com +Description: Missing closing bracket in maintainer email address (false positive) diff --git a/t/recipes/checks/fields/mail-address/missing-closing-bracket/eval/desc b/t/recipes/checks/fields/mail-address/missing-closing-bracket/eval/desc new file mode 100644 index 0000000..d4f124b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/missing-closing-bracket/eval/desc @@ -0,0 +1,5 @@ +Testname: missing-closing-bracket +Check: fields/mail-address +Test-Against: + malformed-contact +See-Also: Bug#965335 diff --git a/t/recipes/checks/fields/mail-address/missing-closing-bracket/eval/hints b/t/recipes/checks/fields/mail-address/missing-closing-bracket/eval/hints new file mode 100644 index 0000000..db204a7 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/missing-closing-bracket/eval/hints @@ -0,0 +1,3 @@ +missing-closing-bracket (source): malformed-contact Maintainer Work <me@work.com +missing-closing-bracket (changes): malformed-contact Maintainer Work <me@work.com +missing-closing-bracket (binary): malformed-contact Maintainer Work <me@work.com diff --git a/t/recipes/checks/fields/mail-address/qa-group-fp/build-spec/fill-values b/t/recipes/checks/fields/mail-address/qa-group-fp/build-spec/fill-values new file mode 100644 index 0000000..e17b5d1 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/qa-group-fp/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: qa-group-fp +Author: Debian QA Group <packages@qa.debian.org> +Description: QA in Maintainer field (false positive) diff --git a/t/recipes/checks/fields/mail-address/qa-group-fp/eval/desc b/t/recipes/checks/fields/mail-address/qa-group-fp/eval/desc new file mode 100644 index 0000000..1bca3a7 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/qa-group-fp/eval/desc @@ -0,0 +1,4 @@ +Testname: qa-group-fp +Check: fields/mail-address +Test-Against: + faulty-debian-qa-group-phrase diff --git a/t/recipes/checks/fields/mail-address/qa-group-fp/eval/hints b/t/recipes/checks/fields/mail-address/qa-group-fp/eval/hints new file mode 100644 index 0000000..a088aad --- /dev/null +++ b/t/recipes/checks/fields/mail-address/qa-group-fp/eval/hints @@ -0,0 +1,4 @@ +qa-group-fp (source): mail-contact Maintainer "Debian QA Group" <packages@qa.debian.org> +qa-group-fp (changes): mail-contact Maintainer "Debian QA Group" <packages@qa.debian.org> +qa-group-fp (changes): mail-contact Changed-By "Debian QA Group" <packages@qa.debian.org> +qa-group-fp (binary): mail-contact Maintainer "Debian QA Group" <packages@qa.debian.org> diff --git a/t/recipes/checks/fields/mail-address/right-to-left-override/build-spec/fill-values b/t/recipes/checks/fields/mail-address/right-to-left-override/build-spec/fill-values new file mode 100644 index 0000000..0bb1549 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/right-to-left-override/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: right-to-left-override +Author: Ansgar <"‮ansgar"@43-1.org> +Description: Maintainer with UTF-8 RIGHT-TO-LEFT OVERRIDE from Ansgar's 'colorful' test package (false positive) diff --git a/t/recipes/checks/fields/mail-address/right-to-left-override/eval/desc b/t/recipes/checks/fields/mail-address/right-to-left-override/eval/desc new file mode 100644 index 0000000..e2c8d32 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/right-to-left-override/eval/desc @@ -0,0 +1,3 @@ +Testname: right-to-left-override +Check: fields/mail-address +See-Also: Bug#962277 diff --git a/t/recipes/checks/fields/mail-address/right-to-left-override/eval/hints b/t/recipes/checks/fields/mail-address/right-to-left-override/eval/hints new file mode 100644 index 0000000..a990983 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/right-to-left-override/eval/hints @@ -0,0 +1,4 @@ +right-to-left-override (source): mail-contact Maintainer Ansgar <‮ansgar@43-1.org> +right-to-left-override (changes): mail-contact Maintainer Ansgar <‮ansgar@43-1.org> +right-to-left-override (changes): mail-contact Changed-By Ansgar <‮ansgar@43-1.org> +right-to-left-override (binary): mail-contact Maintainer Ansgar <‮ansgar@43-1.org> diff --git a/t/recipes/checks/fields/mail-address/two-maintainers/build-spec/fill-values b/t/recipes/checks/fields/mail-address/two-maintainers/build-spec/fill-values new file mode 100644 index 0000000..20af99e --- /dev/null +++ b/t/recipes/checks/fields/mail-address/two-maintainers/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: two-maintainers +Author: Work <me@work.com>, Home <me@debian.org> +Description: Two contacts listed as maintainers diff --git a/t/recipes/checks/fields/mail-address/two-maintainers/eval/desc b/t/recipes/checks/fields/mail-address/two-maintainers/eval/desc new file mode 100644 index 0000000..ed8b807 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/two-maintainers/eval/desc @@ -0,0 +1,2 @@ +Testname: two-maintainers +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/two-maintainers/eval/hints b/t/recipes/checks/fields/mail-address/two-maintainers/eval/hints new file mode 100644 index 0000000..db8c7eb --- /dev/null +++ b/t/recipes/checks/fields/mail-address/two-maintainers/eval/hints @@ -0,0 +1,12 @@ +two-maintainers (source): too-many-contacts Maintainer Work <me@work.com>, Home <me@debian.org> +two-maintainers (source): mail-contact Maintainer Work <me@work.com> +two-maintainers (source): mail-contact Maintainer Home <me@debian.org> +two-maintainers (changes): too-many-contacts Maintainer Work <me@work.com>, Home <me@debian.org> +two-maintainers (changes): too-many-contacts Changed-By Work <me@work.com>, Home <me@debian.org> +two-maintainers (changes): mail-contact Maintainer Work <me@work.com> +two-maintainers (changes): mail-contact Maintainer Home <me@debian.org> +two-maintainers (changes): mail-contact Changed-By Work <me@work.com> +two-maintainers (changes): mail-contact Changed-By Home <me@debian.org> +two-maintainers (binary): too-many-contacts Maintainer Work <me@work.com>, Home <me@debian.org> +two-maintainers (binary): mail-contact Maintainer Work <me@work.com> +two-maintainers (binary): mail-contact Maintainer Home <me@debian.org> diff --git a/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/debian/upstream/signing-key.asc new file mode 100644 index 0000000..bd03c4e --- /dev/null +++ b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/debian/upstream/signing-key.asc @@ -0,0 +1 @@ +Too lazy to fake this file diff --git a/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/debian/watch b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/debian/watch new file mode 100644 index 0000000..139bc40 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/debian/watch @@ -0,0 +1,5 @@ +version=4 +opts="pgpmode=next" https://alioth.debian.org/frs/?group_id=30928 \ + (?:.*)/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian +opts="pgpmode=previous" https://alioth.debian.org/frs/?group_id=30928 \ + (?:.*)/@PACKAGE@@ANY_VERSION@@SIGNATURE_EXT@ previous diff --git a/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/fill-values b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/fill-values new file mode 100644 index 0000000..061e5ae --- /dev/null +++ b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: watch-file-pgpmode-next +Skeleton: upload-non-native +Version: 2.0-1 +Description: Watch file with pgpmode=next diff --git a/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/eval/desc b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/eval/desc new file mode 100644 index 0000000..28bb0a6 --- /dev/null +++ b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/eval/desc @@ -0,0 +1,3 @@ +Testname: watch-file-pgpmode-next +See-Also: #841000 +Check: fields/mail-address diff --git a/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/eval/hints b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/eval/hints new file mode 100644 index 0000000..3c6ea0b --- /dev/null +++ b/t/recipes/checks/fields/mail-address/watch-file-pgpmode-next/eval/hints @@ -0,0 +1,4 @@ +watch-file-pgpmode-next (source): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +watch-file-pgpmode-next (changes): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> +watch-file-pgpmode-next (changes): mail-contact Changed-By "Debian Lintian Maintainers" <lintian-maint@debian.org> +watch-file-pgpmode-next (binary): mail-contact Maintainer "Debian Lintian Maintainers" <lintian-maint@debian.org> |