summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/fields/distribution/changelog-file-backport
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/fields/distribution/changelog-file-backport')
-rw-r--r--t/recipes/checks/fields/distribution/changelog-file-backport/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/fields/distribution/changelog-file-backport/build-spec/fill-values5
-rw-r--r--t/recipes/checks/fields/distribution/changelog-file-backport/eval/desc8
-rw-r--r--t/recipes/checks/fields/distribution/changelog-file-backport/eval/hints2
-rw-r--r--t/recipes/checks/fields/distribution/changelog-file-backport/eval/lintian-include-dir/profiles/lintian-test/main.profile2
-rw-r--r--t/recipes/checks/fields/distribution/changelog-file-backport/eval/lintian-include-dir/vendors/lintian-test/main/data/changes-file/known-dists23
6 files changed, 52 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
+