summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/fields/required
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/fields/required')
-rw-r--r--t/recipes/checks/fields/required/changes-missing-fields/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/required/changes-missing-fields/build-spec/test.changes.in9
-rw-r--r--t/recipes/checks/fields/required/changes-missing-fields/eval/desc2
-rw-r--r--t/recipes/checks/fields/required/changes-missing-fields/eval/hints4
-rw-r--r--t/recipes/checks/fields/required/fields-general-missing/build-spec/DEBIAN/control.in8
-rw-r--r--t/recipes/checks/fields/required/fields-general-missing/build-spec/fill-values4
-rw-r--r--t/recipes/checks/fields/required/fields-general-missing/build-spec/root/usr/lib/lintian/some-file1
-rw-r--r--t/recipes/checks/fields/required/fields-general-missing/eval/desc2
-rw-r--r--t/recipes/checks/fields/required/fields-general-missing/eval/hints4
-rw-r--r--t/recipes/checks/fields/required/generic-empty/build-spec/debian/changelog.in2
-rw-r--r--t/recipes/checks/fields/required/generic-empty/build-spec/debian/control.in5
-rwxr-xr-xt/recipes/checks/fields/required/generic-empty/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/fields/required/generic-empty/build-spec/fill-values4
-rw-r--r--t/recipes/checks/fields/required/generic-empty/build-spec/orig/README4
-rwxr-xr-xt/recipes/checks/fields/required/generic-empty/build-spec/pre-build6
-rw-r--r--t/recipes/checks/fields/required/generic-empty/eval/desc2
-rw-r--r--t/recipes/checks/fields/required/generic-empty/eval/hints4
17 files changed, 73 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/required/changes-missing-fields/build-spec/fill-values b/t/recipes/checks/fields/required/changes-missing-fields/build-spec/fill-values
new file mode 100644
index 0000000..6a6b7f8
--- /dev/null
+++ b/t/recipes/checks/fields/required/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/required/changes-missing-fields/build-spec/test.changes.in b/t/recipes/checks/fields/required/changes-missing-fields/build-spec/test.changes.in
new file mode 100644
index 0000000..49c165a
--- /dev/null
+++ b/t/recipes/checks/fields/required/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/required/changes-missing-fields/eval/desc b/t/recipes/checks/fields/required/changes-missing-fields/eval/desc
new file mode 100644
index 0000000..2a7722e
--- /dev/null
+++ b/t/recipes/checks/fields/required/changes-missing-fields/eval/desc
@@ -0,0 +1,2 @@
+Testname: changes-missing-fields
+Check: fields/required
diff --git a/t/recipes/checks/fields/required/changes-missing-fields/eval/hints b/t/recipes/checks/fields/required/changes-missing-fields/eval/hints
new file mode 100644
index 0000000..a180763
--- /dev/null
+++ b/t/recipes/checks/fields/required/changes-missing-fields/eval/hints
@@ -0,0 +1,4 @@
+changes-missing-fields (changes): required-field test.changes Files
+changes-missing-fields (changes): required-field test.changes Checksums-Sha256
+changes-missing-fields (changes): required-field test.changes Checksums-Sha1
+changes-missing-fields (changes): required-field test.changes Changes
diff --git a/t/recipes/checks/fields/required/fields-general-missing/build-spec/DEBIAN/control.in b/t/recipes/checks/fields/required/fields-general-missing/build-spec/DEBIAN/control.in
new file mode 100644
index 0000000..cfbac73
--- /dev/null
+++ b/t/recipes/checks/fields/required/fields-general-missing/build-spec/DEBIAN/control.in
@@ -0,0 +1,8 @@
+Section: [% $section %]
+Priority: optional
+Depends: some-pkg
+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/required/fields-general-missing/build-spec/fill-values b/t/recipes/checks/fields/required/fields-general-missing/build-spec/fill-values
new file mode 100644
index 0000000..91e093a
--- /dev/null
+++ b/t/recipes/checks/fields/required/fields-general-missing/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: deb
+Testname: fields-general-missing
+Version: 1.0-1
+Description: Test for missing control fields
diff --git a/t/recipes/checks/fields/required/fields-general-missing/build-spec/root/usr/lib/lintian/some-file b/t/recipes/checks/fields/required/fields-general-missing/build-spec/root/usr/lib/lintian/some-file
new file mode 100644
index 0000000..02c9d2d
--- /dev/null
+++ b/t/recipes/checks/fields/required/fields-general-missing/build-spec/root/usr/lib/lintian/some-file
@@ -0,0 +1 @@
+Hi, I could totally be architecture dependent.
diff --git a/t/recipes/checks/fields/required/fields-general-missing/eval/desc b/t/recipes/checks/fields/required/fields-general-missing/eval/desc
new file mode 100644
index 0000000..a52fa00
--- /dev/null
+++ b/t/recipes/checks/fields/required/fields-general-missing/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-general-missing
+Check: fields/required
diff --git a/t/recipes/checks/fields/required/fields-general-missing/eval/hints b/t/recipes/checks/fields/required/fields-general-missing/eval/hints
new file mode 100644
index 0000000..6e17eb5
--- /dev/null
+++ b/t/recipes/checks/fields/required/fields-general-missing/eval/hints
@@ -0,0 +1,4 @@
+fields-general-missing (binary): required-field fields-general-missing.deb Version
+fields-general-missing (binary): required-field fields-general-missing.deb Package
+fields-general-missing (binary): required-field fields-general-missing.deb Maintainer
+fields-general-missing (binary): required-field fields-general-missing.deb Architecture
diff --git a/t/recipes/checks/fields/required/generic-empty/build-spec/debian/changelog.in b/t/recipes/checks/fields/required/generic-empty/build-spec/debian/changelog.in
new file mode 100644
index 0000000..7a4298d
--- /dev/null
+++ b/t/recipes/checks/fields/required/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/required/generic-empty/build-spec/debian/control.in b/t/recipes/checks/fields/required/generic-empty/build-spec/debian/control.in
new file mode 100644
index 0000000..575773e
--- /dev/null
+++ b/t/recipes/checks/fields/required/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/required/generic-empty/build-spec/debian/rules b/t/recipes/checks/fields/required/generic-empty/build-spec/debian/rules
new file mode 100755
index 0000000..62da96d
--- /dev/null
+++ b/t/recipes/checks/fields/required/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/required/generic-empty/build-spec/fill-values b/t/recipes/checks/fields/required/generic-empty/build-spec/fill-values
new file mode 100644
index 0000000..26d9bdc
--- /dev/null
+++ b/t/recipes/checks/fields/required/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/required/generic-empty/build-spec/orig/README b/t/recipes/checks/fields/required/generic-empty/build-spec/orig/README
new file mode 100644
index 0000000..ed1b149
--- /dev/null
+++ b/t/recipes/checks/fields/required/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/required/generic-empty/build-spec/pre-build b/t/recipes/checks/fields/required/generic-empty/build-spec/pre-build
new file mode 100755
index 0000000..1a3929a
--- /dev/null
+++ b/t/recipes/checks/fields/required/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/required/generic-empty/eval/desc b/t/recipes/checks/fields/required/generic-empty/eval/desc
new file mode 100644
index 0000000..0d83817
--- /dev/null
+++ b/t/recipes/checks/fields/required/generic-empty/eval/desc
@@ -0,0 +1,2 @@
+Testname: generic-empty
+Check: fields/required
diff --git a/t/recipes/checks/fields/required/generic-empty/eval/hints b/t/recipes/checks/fields/required/generic-empty/eval/hints
new file mode 100644
index 0000000..40c0929
--- /dev/null
+++ b/t/recipes/checks/fields/required/generic-empty/eval/hints
@@ -0,0 +1,4 @@
+generic-empty (source): required-field generic-empty_1.0.dsc Standards-Version
+generic-empty (source): required-field (in section for source) Standards-Version [debian/control:1]
+generic-empty (source): required-field (in section for generic-empty) Description [debian/control:4]
+generic-empty (binary): required-field generic-empty_1.0_all.deb Description