summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/template
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/template')
-rw-r--r--t/recipes/checks/template/dh-make/control/vcs/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/template/dh-make/control/vcs/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/template/dh-make/control/vcs/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/template/dh-make/control/vcs/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/template/dh-make/control/vcs/control-file-general/eval/hints1
5 files changed, 141 insertions, 0 deletions
diff --git a/t/recipes/checks/template/dh-make/control/vcs/control-file-general/build-spec/debian/control.in b/t/recipes/checks/template/dh-make/control/vcs/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/template/dh-make/control/vcs/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/template/dh-make/control/vcs/control-file-general/build-spec/debian/rules b/t/recipes/checks/template/dh-make/control/vcs/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/template/dh-make/control/vcs/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/template/dh-make/control/vcs/control-file-general/build-spec/fill-values b/t/recipes/checks/template/dh-make/control/vcs/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/template/dh-make/control/vcs/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/template/dh-make/control/vcs/control-file-general/eval/desc b/t/recipes/checks/template/dh-make/control/vcs/control-file-general/eval/desc
new file mode 100644
index 0000000..ce82f94
--- /dev/null
+++ b/t/recipes/checks/template/dh-make/control/vcs/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: template/dh-make/control/vcs
+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/template/dh-make/control/vcs/control-file-general/eval/hints b/t/recipes/checks/template/dh-make/control/vcs/control-file-general/eval/hints
new file mode 100644
index 0000000..d17baa0
--- /dev/null
+++ b/t/recipes/checks/template/dh-make/control/vcs/control-file-general/eval/hints
@@ -0,0 +1 @@
+control-file-general (source): control-file-contains-dh-make-vcs-comment #Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git [debian/control:15]