summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/control/field/relation
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/debian/control/field/relation
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/debian/control/field/relation')
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/control.in22
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/hints5
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/eval/hints3
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/debian/control.in30
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/hints2
14 files changed, 216 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/compat.in b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/control.in
new file mode 100644
index 0000000..961052e
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/control.in
@@ -0,0 +1,22 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %], debhelper
+Build-Depends-Indep: foobar, foo, foobar
+Build-Conflicts: bar,
+ baz,
+ bar [i386]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${misc:Depends}
+Recommends: foo (>> 1.0) | bar, foo
+Suggests: baz (= 1.0), baz, baz (>= 2.0)
+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/debian/control/field/relation/control-file-duplicate/build-spec/fill-values b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/fill-values
new file mode 100644
index 0000000..51e95fe
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: control-file-duplicate
+Package-Architecture: all
+Description: Pedantic test for duplicate relations
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/desc b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/desc
new file mode 100644
index 0000000..a819543
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-duplicate
+Check: debian/control/field/relation
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/hints b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/hints
new file mode 100644
index 0000000..2633892
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/hints
@@ -0,0 +1,5 @@
+control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Depends-Indep foobar, foobar [debian/control:7]
+control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Depends debhelper, debhelper (>= 13~) [debian/control:6]
+control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Conflicts bar, bar [i386] [debian/control:8]
+control-file-duplicate (source): redundant-control-relation (in section for control-file-duplicate) Suggests baz, baz (= 1.0), baz (>= 2.0) [debian/control:17]
+control-file-duplicate (source): redundant-control-relation (in section for control-file-duplicate) Depends ${misc:Depends}, ${misc:Depends} [debian/control:15]
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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 %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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 %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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 %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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 %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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 %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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 %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: debug
+ 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 %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/field/relation/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-general/eval/desc b/t/recipes/checks/debian/control/field/relation/control-file-general/eval/desc
new file mode 100644
index 0000000..27425f4
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/field/relation
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-general/eval/hints b/t/recipes/checks/debian/control/field/relation/control-file-general/eval/hints
new file mode 100644
index 0000000..67abb80
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/eval/hints
@@ -0,0 +1,3 @@
+control-file-general (source): obsolete-relation-form-in-source (in source paragraph) Build-Depends-Indep perl (> 5.8) [debian/control:12]
+control-file-general (source): obsolete-relation-form-in-source (in section for control-file-general-1) Breaks libsqlite3-0 (< 3.6.12) [debian/control:37]
+control-file-general (source): missing-separator-between-items (in section for control-file-general) '${shlibs:Depends}' and '${some:Depends}' [debian/control:24]
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/debian/control.in
new file mode 100644
index 0000000..fff0af8
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/debian/control.in
@@ -0,0 +1,30 @@
+Source: control-file-missing-separator
+Section: devel
+Priority: optional
+Maintainer: [% $author %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc
+ mips mipsel
+ hppa
+ s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Standards-Version: [% $standards_version %]
+
+Package: control-file-missing-separator
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1)
+ baz (<< 2),
+ fizz (= 2.0)
+Suggests: p1
+ p2
+ p3
+ p4
+ p5
+Description: Test for missing separators in control files
+ 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/debian/control/field/relation/control-file-missing-separator/build-spec/fill-values b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/fill-values
new file mode 100644
index 0000000..1a4a198
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: control-file-missing-separator
+Version: 1
+Description: Test for missing separators in control files
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/desc b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/desc
new file mode 100644
index 0000000..134b1a6
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-missing-separator
+Check: debian/control/field/relation
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/hints b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/hints
new file mode 100644
index 0000000..232c263
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/hints
@@ -0,0 +1,2 @@
+control-file-missing-separator (source): missing-separator-between-items (in section for control-file-missing-separator) 'p1' and 'p2' [debian/control:22]
+control-file-missing-separator (source): missing-separator-between-items (in section for control-file-missing-separator) 'foo (>= 1)' and 'baz (<< 2)' [debian/control:19]