summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/changes-file
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/changes-file')
-rw-r--r--t/recipes/checks/changes-file/changed-by-localhost/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changed-by-malformed/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changed-by-no-name/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changed-by-root-email/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changed-by-root/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-bad-ubuntu-distribution/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-distribution-mismatch/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-experimental-mismatch/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-file-bad-section/build-spec/fill-values3
-rw-r--r--t/recipes/checks/changes-file/changes-file-bad-section/build-spec/referenced-files/__some-file__1
-rw-r--r--t/recipes/checks/changes-file/changes-file-bad-section/build-spec/test.changes.in18
-rw-r--r--t/recipes/checks/changes-file/changes-file-bad-section/eval/desc2
-rw-r--r--t/recipes/checks/changes-file/changes-file-bad-section/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/fill-values3
-rw-r--r--t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/referenced-files/__some-file__1
-rw-r--r--t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/test.changes.in18
-rw-r--r--t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/eval/desc2
-rw-r--r--t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/eval/hints4
-rw-r--r--t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/debian/control.in36
-rw-r--r--t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/fill-values4
-rw-r--r--t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/desc2
-rw-r--r--t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-missing-fields/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-missing-format/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-unreleased/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/changes-upload-has-backports-version-number/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/checksum-count-mismatch/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/changes-file/checksum-count-mismatch/build-spec/post-build.in3
-rw-r--r--t/recipes/checks/changes-file/checksum-count-mismatch/eval/desc2
-rw-r--r--t/recipes/checks/changes-file/checksum-count-mismatch/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/distribution-multiple-bad/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/generic-empty/eval/hints1
-rw-r--r--t/recipes/checks/changes-file/legacy-foo++/eval/hints1
33 files changed, 120 insertions, 0 deletions
diff --git a/t/recipes/checks/changes-file/changed-by-localhost/eval/hints b/t/recipes/checks/changes-file/changed-by-localhost/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changed-by-localhost/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changed-by-malformed/eval/hints b/t/recipes/checks/changes-file/changed-by-malformed/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changed-by-malformed/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changed-by-no-name/eval/hints b/t/recipes/checks/changes-file/changed-by-no-name/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changed-by-no-name/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changed-by-root-email/eval/hints b/t/recipes/checks/changes-file/changed-by-root-email/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changed-by-root-email/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changed-by-root/eval/hints b/t/recipes/checks/changes-file/changed-by-root/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changed-by-root/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changes-bad-ubuntu-distribution/eval/hints b/t/recipes/checks/changes-file/changes-bad-ubuntu-distribution/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-bad-ubuntu-distribution/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changes-distribution-mismatch/eval/hints b/t/recipes/checks/changes-file/changes-distribution-mismatch/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-distribution-mismatch/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changes-experimental-mismatch/eval/hints b/t/recipes/checks/changes-file/changes-experimental-mismatch/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-experimental-mismatch/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changes-file-bad-section/build-spec/fill-values b/t/recipes/checks/changes-file/changes-file-bad-section/build-spec/fill-values
new file mode 100644
index 0000000..ecce948
--- /dev/null
+++ b/t/recipes/checks/changes-file/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/changes-file/changes-file-bad-section/build-spec/referenced-files/__some-file__ b/t/recipes/checks/changes-file/changes-file-bad-section/build-spec/referenced-files/__some-file__
new file mode 100644
index 0000000..336f590
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-file-bad-section/build-spec/referenced-files/__some-file__
@@ -0,0 +1 @@
+Hallo World
diff --git a/t/recipes/checks/changes-file/changes-file-bad-section/build-spec/test.changes.in b/t/recipes/checks/changes-file/changes-file-bad-section/build-spec/test.changes.in
new file mode 100644
index 0000000..721e067
--- /dev/null
+++ b/t/recipes/checks/changes-file/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/changes-file/changes-file-bad-section/eval/desc b/t/recipes/checks/changes-file/changes-file-bad-section/eval/desc
new file mode 100644
index 0000000..50b8d02
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-file-bad-section/eval/desc
@@ -0,0 +1,2 @@
+Testname: changes-file-bad-section
+Check: changes-file
diff --git a/t/recipes/checks/changes-file/changes-file-bad-section/eval/hints b/t/recipes/checks/changes-file/changes-file-bad-section/eval/hints
new file mode 100644
index 0000000..bb1591b
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-file-bad-section/eval/hints
@@ -0,0 +1 @@
+changes-file-bad-section (changes): bad-section-in-changes-file __some-file__ non-free
diff --git a/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/fill-values b/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/fill-values
new file mode 100644
index 0000000..74f84be
--- /dev/null
+++ b/t/recipes/checks/changes-file/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/changes-file/changes-file-size-checksum-mismatch/build-spec/referenced-files/__some-file__ b/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/referenced-files/__some-file__
new file mode 100644
index 0000000..336f590
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/referenced-files/__some-file__
@@ -0,0 +1 @@
+Hallo World
diff --git a/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/test.changes.in b/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/build-spec/test.changes.in
new file mode 100644
index 0000000..c61138b
--- /dev/null
+++ b/t/recipes/checks/changes-file/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/changes-file/changes-file-size-checksum-mismatch/eval/desc b/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/eval/desc
new file mode 100644
index 0000000..0a4c5d0
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/eval/desc
@@ -0,0 +1,2 @@
+Testname: changes-file-size-checksum-mismatch
+Check: changes-file
diff --git a/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/eval/hints b/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/eval/hints
new file mode 100644
index 0000000..f614fbe
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-file-size-checksum-mismatch/eval/hints
@@ -0,0 +1,4 @@
+changes-file-size-checksum-mismatch (changes): file-size-mismatch-in-changes-file __some-file__ 0 != 12
+changes-file-size-checksum-mismatch (changes): checksum-mismatch-in-changes-file Checksum-Sha256 __some-file__
+changes-file-size-checksum-mismatch (changes): checksum-mismatch-in-changes-file Checksum-Sha1 __some-file__
+changes-file-size-checksum-mismatch (changes): checksum-mismatch-in-changes-file Checksum-Md5 __some-file__
diff --git a/t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/debian/control.in b/t/recipes/checks/changes-file/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/changes-file/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/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/build-spec/fill-values b/t/recipes/checks/changes-file/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/changes-file/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/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/desc b/t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/desc
new file mode 100644
index 0000000..5f66600
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/desc
@@ -0,0 +1,2 @@
+Testname: changes-files-package-builds-dbg-and-dbgsym-variants
+Check: changes-file
diff --git a/t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints b/t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints
new file mode 100644
index 0000000..3a2ae57
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints
@@ -0,0 +1 @@
+changes-files-package-builds-dbg-and-dbgsym-variants (changes): package-builds-dbg-and-dbgsym-variants changes-files-package-builds-dbg-and-dbgsym-variants-dbg changes-files-package-builds-dbg-and-dbgsym-variants-dbgsym
diff --git a/t/recipes/checks/changes-file/changes-missing-fields/eval/hints b/t/recipes/checks/changes-file/changes-missing-fields/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-missing-fields/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changes-missing-format/eval/hints b/t/recipes/checks/changes-file/changes-missing-format/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-missing-format/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changes-unreleased/eval/hints b/t/recipes/checks/changes-file/changes-unreleased/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-unreleased/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/changes-upload-has-backports-version-number/eval/hints b/t/recipes/checks/changes-file/changes-upload-has-backports-version-number/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/changes-upload-has-backports-version-number/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/checksum-count-mismatch/build-spec/fill-values b/t/recipes/checks/changes-file/checksum-count-mismatch/build-spec/fill-values
new file mode 100644
index 0000000..3fe5f1f
--- /dev/null
+++ b/t/recipes/checks/changes-file/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/changes-file/checksum-count-mismatch/build-spec/post-build.in b/t/recipes/checks/changes-file/checksum-count-mismatch/build-spec/post-build.in
new file mode 100755
index 0000000..4665a7a
--- /dev/null
+++ b/t/recipes/checks/changes-file/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/changes-file/checksum-count-mismatch/eval/desc b/t/recipes/checks/changes-file/checksum-count-mismatch/eval/desc
new file mode 100644
index 0000000..5866afe
--- /dev/null
+++ b/t/recipes/checks/changes-file/checksum-count-mismatch/eval/desc
@@ -0,0 +1,2 @@
+Testname: checksum-count-mismatch
+Check: changes-file
diff --git a/t/recipes/checks/changes-file/checksum-count-mismatch/eval/hints b/t/recipes/checks/changes-file/checksum-count-mismatch/eval/hints
new file mode 100644
index 0000000..b493656
--- /dev/null
+++ b/t/recipes/checks/changes-file/checksum-count-mismatch/eval/hints
@@ -0,0 +1 @@
+checksum-count-mismatch (changes): checksum-count-mismatch-in-changes-file 3 Checksum-Sha256 checksums != 4 files
diff --git a/t/recipes/checks/changes-file/distribution-multiple-bad/eval/hints b/t/recipes/checks/changes-file/distribution-multiple-bad/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/distribution-multiple-bad/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/generic-empty/eval/hints b/t/recipes/checks/changes-file/generic-empty/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/generic-empty/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/changes-file/legacy-foo++/eval/hints b/t/recipes/checks/changes-file/legacy-foo++/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/changes-file/legacy-foo++/eval/hints
@@ -0,0 +1 @@
+