diff options
Diffstat (limited to '')
41 files changed, 204 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/distribution/changelog-file-backport/build-spec/debian/changelog.in b/t/recipes/checks/fields/distribution/changelog-file-backport/build-spec/debian/changelog.in new file mode 100644 index 0000000..227f65f --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changelog-file-backport/build-spec/fill-values b/t/recipes/checks/fields/distribution/changelog-file-backport/build-spec/fill-values new file mode 100644 index 0000000..486ac79 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changelog-file-backport/eval/desc b/t/recipes/checks/fields/distribution/changelog-file-backport/eval/desc new file mode 100644 index 0000000..6da32fd --- /dev/null +++ b/t/recipes/checks/fields/distribution/changelog-file-backport/eval/desc @@ -0,0 +1,8 @@ +Testname: changelog-file-backport +Options: --include-dir ./lintian-include-dir +Profile: lintian-test +Test-Against: + upload-has-backports-version-number +Check: fields/distribution +# Overrides the "data/changes-file/known-dists" +# data file to avoid updating the test every release diff --git a/t/recipes/checks/fields/distribution/changelog-file-backport/eval/hints b/t/recipes/checks/fields/distribution/changelog-file-backport/eval/hints new file mode 100644 index 0000000..6e7a287 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changelog-file-backport/eval/hints @@ -0,0 +1,2 @@ +changelog-file-backport (changes): backports-upload-has-incorrect-version-number 1.0 squeeze-backports +changelog-file-backport (changes): backports-changes-missing diff --git a/t/recipes/checks/fields/distribution/changelog-file-backport/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/fields/distribution/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/distribution/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/distribution/changelog-file-backport/eval/lintian-include-dir/vendors/lintian-test/main/data/changes-file/known-dists b/t/recipes/checks/fields/distribution/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/distribution/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/distribution/changelog-file-stable/build-spec/debian/changelog.in b/t/recipes/checks/fields/distribution/changelog-file-stable/build-spec/debian/changelog.in new file mode 100644 index 0000000..83189f2 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changelog-file-stable/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +[% $source %] ([% $version %]) stable-proposed-updates; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/fields/distribution/changelog-file-stable/build-spec/fill-values b/t/recipes/checks/fields/distribution/changelog-file-stable/build-spec/fill-values new file mode 100644 index 0000000..e460a9c --- /dev/null +++ b/t/recipes/checks/fields/distribution/changelog-file-stable/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-file-stable +Skeleton: upload-non-native +Version: 1.0-1etch1 +Description: Test a stable-proposed-updates package diff --git a/t/recipes/checks/fields/distribution/changelog-file-stable/eval/desc b/t/recipes/checks/fields/distribution/changelog-file-stable/eval/desc new file mode 100644 index 0000000..4d8a610 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changelog-file-stable/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-stable +Test-Against: bad-distribution-in-changes-file +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/changelog-file-stable/eval/hints b/t/recipes/checks/fields/distribution/changelog-file-stable/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changelog-file-stable/eval/hints diff --git a/t/recipes/checks/fields/distribution/changes-bad-ubuntu-distribution/build-spec/fill-values b/t/recipes/checks/fields/distribution/changes-bad-ubuntu-distribution/build-spec/fill-values new file mode 100644 index 0000000..0783088 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-bad-ubuntu-distribution/build-spec/test.changes.in b/t/recipes/checks/fields/distribution/changes-bad-ubuntu-distribution/build-spec/test.changes.in new file mode 100644 index 0000000..e3f1128 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-bad-ubuntu-distribution/eval/desc b/t/recipes/checks/fields/distribution/changes-bad-ubuntu-distribution/eval/desc new file mode 100644 index 0000000..b018846 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-bad-ubuntu-distribution/eval/desc @@ -0,0 +1,3 @@ +Testname: changes-bad-ubuntu-distribution +Profile: ubuntu/main +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/changes-bad-ubuntu-distribution/eval/hints b/t/recipes/checks/fields/distribution/changes-bad-ubuntu-distribution/eval/hints new file mode 100644 index 0000000..9703828 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-bad-ubuntu-distribution/eval/hints @@ -0,0 +1 @@ +changes-bad-ubuntu-distribution (changes): bad-distribution-in-changes-file wispy diff --git a/t/recipes/checks/fields/distribution/changes-distribution-mismatch/build-spec/fill-values b/t/recipes/checks/fields/distribution/changes-distribution-mismatch/build-spec/fill-values new file mode 100644 index 0000000..7263201 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-distribution-mismatch/build-spec/test.changes.in b/t/recipes/checks/fields/distribution/changes-distribution-mismatch/build-spec/test.changes.in new file mode 100644 index 0000000..6801232 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-distribution-mismatch/eval/desc b/t/recipes/checks/fields/distribution/changes-distribution-mismatch/eval/desc new file mode 100644 index 0000000..6dc5d59 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-distribution-mismatch/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-distribution-mismatch +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/changes-distribution-mismatch/eval/hints b/t/recipes/checks/fields/distribution/changes-distribution-mismatch/eval/hints new file mode 100644 index 0000000..4bd5c58 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-distribution-mismatch/eval/hints @@ -0,0 +1 @@ +changes-distribution-mismatch (changes): distribution-and-changes-mismatch stable unstable diff --git a/t/recipes/checks/fields/distribution/changes-experimental-mismatch/build-spec/fill-values b/t/recipes/checks/fields/distribution/changes-experimental-mismatch/build-spec/fill-values new file mode 100644 index 0000000..d4d4d3d --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-experimental-mismatch/build-spec/test.changes.in b/t/recipes/checks/fields/distribution/changes-experimental-mismatch/build-spec/test.changes.in new file mode 100644 index 0000000..1476333 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-experimental-mismatch/eval/desc b/t/recipes/checks/fields/distribution/changes-experimental-mismatch/eval/desc new file mode 100644 index 0000000..5c94d81 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-experimental-mismatch/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-experimental-mismatch +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/changes-experimental-mismatch/eval/hints b/t/recipes/checks/fields/distribution/changes-experimental-mismatch/eval/hints new file mode 100644 index 0000000..3a32b36 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-experimental-mismatch/eval/hints @@ -0,0 +1 @@ +changes-experimental-mismatch (changes): distribution-and-experimental-mismatch diff --git a/t/recipes/checks/fields/distribution/changes-unreleased/build-spec/fill-values b/t/recipes/checks/fields/distribution/changes-unreleased/build-spec/fill-values new file mode 100644 index 0000000..4359e34 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-unreleased/build-spec/test.changes.in b/t/recipes/checks/fields/distribution/changes-unreleased/build-spec/test.changes.in new file mode 100644 index 0000000..4a2eb46 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-unreleased/eval/desc b/t/recipes/checks/fields/distribution/changes-unreleased/eval/desc new file mode 100644 index 0000000..f4cab4a --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-unreleased/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-unreleased +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/changes-unreleased/eval/hints b/t/recipes/checks/fields/distribution/changes-unreleased/eval/hints new file mode 100644 index 0000000..4f4f4f9 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-unreleased/eval/hints @@ -0,0 +1 @@ +changes-unreleased (changes): unreleased-changes diff --git a/t/recipes/checks/fields/distribution/changes-upload-has-backports-version-number/build-spec/fill-values b/t/recipes/checks/fields/distribution/changes-upload-has-backports-version-number/build-spec/fill-values new file mode 100644 index 0000000..cf7513a --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/changes-upload-has-backports-version-number/eval/desc b/t/recipes/checks/fields/distribution/changes-upload-has-backports-version-number/eval/desc new file mode 100644 index 0000000..fd61006 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-upload-has-backports-version-number/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-upload-has-backports-version-number +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/changes-upload-has-backports-version-number/eval/hints b/t/recipes/checks/fields/distribution/changes-upload-has-backports-version-number/eval/hints new file mode 100644 index 0000000..467b083 --- /dev/null +++ b/t/recipes/checks/fields/distribution/changes-upload-has-backports-version-number/eval/hints @@ -0,0 +1 @@ +changes-upload-has-backports-version-number (changes): upload-has-backports-version-number 1.0~bpo9+1 unstable diff --git a/t/recipes/checks/fields/distribution/distribution-multiple-bad/build-spec/debian/changelog.in b/t/recipes/checks/fields/distribution/distribution-multiple-bad/build-spec/debian/changelog.in new file mode 100644 index 0000000..c862408 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/distribution-multiple-bad/build-spec/fill-values b/t/recipes/checks/fields/distribution/distribution-multiple-bad/build-spec/fill-values new file mode 100644 index 0000000..4671982 --- /dev/null +++ b/t/recipes/checks/fields/distribution/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/distribution/distribution-multiple-bad/eval/desc b/t/recipes/checks/fields/distribution/distribution-multiple-bad/eval/desc new file mode 100644 index 0000000..0ca1362 --- /dev/null +++ b/t/recipes/checks/fields/distribution/distribution-multiple-bad/eval/desc @@ -0,0 +1,3 @@ +Testname: distribution-multiple-bad +See-Also: Debian Bug#514853 +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/distribution-multiple-bad/eval/hints b/t/recipes/checks/fields/distribution/distribution-multiple-bad/eval/hints new file mode 100644 index 0000000..84c8480 --- /dev/null +++ b/t/recipes/checks/fields/distribution/distribution-multiple-bad/eval/hints @@ -0,0 +1,6 @@ +distribution-multiple-bad (changes): multiple-distributions-in-changes-file stable foo-backportss bar foo +distribution-multiple-bad (changes): bad-distribution-in-changes-file foo-backportss +distribution-multiple-bad (changes): bad-distribution-in-changes-file foo +distribution-multiple-bad (changes): bad-distribution-in-changes-file bar +distribution-multiple-bad (changes): backports-upload-has-incorrect-version-number 1.0 foo-backportss +distribution-multiple-bad (changes): backports-changes-missing diff --git a/t/recipes/checks/fields/distribution/distribution-ubuntu-native/build-spec/debian/changelog.in b/t/recipes/checks/fields/distribution/distribution-ubuntu-native/build-spec/debian/changelog.in new file mode 100644 index 0000000..0f4a7b6 --- /dev/null +++ b/t/recipes/checks/fields/distribution/distribution-ubuntu-native/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +[% $source %] ([% $version %]) lucid; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/fields/distribution/distribution-ubuntu-native/build-spec/fill-values b/t/recipes/checks/fields/distribution/distribution-ubuntu-native/build-spec/fill-values new file mode 100644 index 0000000..47644cb --- /dev/null +++ b/t/recipes/checks/fields/distribution/distribution-ubuntu-native/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: distribution-ubuntu-native +Description: Check *.changes distribution checking for Ubuntu diff --git a/t/recipes/checks/fields/distribution/distribution-ubuntu-native/eval/desc b/t/recipes/checks/fields/distribution/distribution-ubuntu-native/eval/desc new file mode 100644 index 0000000..50ff62b --- /dev/null +++ b/t/recipes/checks/fields/distribution/distribution-ubuntu-native/eval/desc @@ -0,0 +1,5 @@ +Testname: distribution-ubuntu-native +Test-Against: bad-distribution-in-changes-file +Profile: ubuntu/main +See-Also: Debian Bug#507740 +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/distribution-ubuntu-native/eval/hints b/t/recipes/checks/fields/distribution/distribution-ubuntu-native/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/fields/distribution/distribution-ubuntu-native/eval/hints diff --git a/t/recipes/checks/fields/distribution/nmu-ubuntu-native/build-spec/debian/changelog.in b/t/recipes/checks/fields/distribution/nmu-ubuntu-native/build-spec/debian/changelog.in new file mode 100644 index 0000000..b673fbc --- /dev/null +++ b/t/recipes/checks/fields/distribution/nmu-ubuntu-native/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +[% $source %] ([% $version %]) lucid; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- Russ Allbery <rra@debian.org> [% $date %] diff --git a/t/recipes/checks/fields/distribution/nmu-ubuntu-native/build-spec/fill-values b/t/recipes/checks/fields/distribution/nmu-ubuntu-native/build-spec/fill-values new file mode 100644 index 0000000..3803ec6 --- /dev/null +++ b/t/recipes/checks/fields/distribution/nmu-ubuntu-native/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: nmu-ubuntu-native +Description: Test NMU tag suppression for Ubuntu native packages diff --git a/t/recipes/checks/fields/distribution/nmu-ubuntu-native/eval/desc b/t/recipes/checks/fields/distribution/nmu-ubuntu-native/eval/desc new file mode 100644 index 0000000..2c7f7b7 --- /dev/null +++ b/t/recipes/checks/fields/distribution/nmu-ubuntu-native/eval/desc @@ -0,0 +1,5 @@ +Testname: nmu-ubuntu-native +Profile: ubuntu/main +Test-Against: bad-distribution-in-changes-file +See-Also: Debian Bug #507740 +Check: fields/distribution diff --git a/t/recipes/checks/fields/distribution/nmu-ubuntu-native/eval/hints b/t/recipes/checks/fields/distribution/nmu-ubuntu-native/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/fields/distribution/nmu-ubuntu-native/eval/hints |