summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/debconf
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/debian/debconf')
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/config22
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/da.po42
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/templates.pot42
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/templates15
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/eval/hints4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/config5
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/control.in15
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/rules10
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/desc3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/hints4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/install1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/da.po25
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/templates.pot25
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/templates4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/config-gen.pl31
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/gen-source.mk8
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/script6
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/config9
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/da.po24
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/templates.pot24
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postinst10
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postrm10
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/preinst11
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/rules16
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/templates4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/hints5
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/da.po25
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/templates.pot25
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/templates4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/config-gen.pl31
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/gen-source.mk8
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/config6
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/postinst7
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/config6
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/templates3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/eval/hints2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en.po241
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en_US.po223
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/templates.pot223
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/templates124
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/config-gen.pl31
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/gen-source.mk8
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-templates-general/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/eval/hints22
-rw-r--r--t/recipes/checks/debian/debconf/debconf-traversal/build-spec/dpkg-overrides1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-traversal/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-traversal/build-spec/post-build7
-rw-r--r--t/recipes/checks/debian/debconf/debconf-traversal/eval/desc3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-traversal/eval/hints0
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/control52
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/copyright10
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst10
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm7
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm7
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst13
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.config24
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.postinst10
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates101
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in0
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst9
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/de.po66
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/fr.po60
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/lang.po15
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/nds.po15
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/output1
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/pt_BR.po15
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/sample-file.po1
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/templates.pot61
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pycompat1
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pyversions1
-rwxr-xr-xt/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/eval/hints49
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/eval/post-test1
-rw-r--r--t/recipes/checks/debian/debconf/national-encoding/build-spec/debian/templates3
-rw-r--r--t/recipes/checks/debian/debconf/national-encoding/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/national-encoding/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/national-encoding/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/English.po1
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/POTFILES.in3
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/de.po2
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/templates.pot30
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates10
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates.en_US5
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/eval/hints3
128 files changed, 2196 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/config
new file mode 100644
index 0000000..fdec12b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/config
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+# Forget to load the confmodule
+# . /usr/share/debconf/confmodule
+
+
+db_input low debconf/note-abuse
+db_go
+
+
+db_input unknown debconf/unknown-priority
+db_go
+
+db_fset debconf/deprecated-default isdefault true
+
+db_input low debconf/deprecated-default
+db_go
+
+db_input low debconf/translated
+db_go
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/da.po b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/da.po
new file mode 100644
index 0000000..d659394
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/da.po
@@ -0,0 +1,42 @@
+# Danish translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-10-01 22:49+0200\n"
+"PO-Revision-Date: 2012-07-23 23:08+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: Danish\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Ubrugelig note"
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid "This is a note abuse"
+msgstr "Dette er et note misbrug"
+
+#. Type: error
+#. Description
+#: ../templates:3001
+msgid "Invoked with unknown debconf priority"
+msgstr "Kaldt med ukendt debconf prioritet"
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this use deprecated?"
+msgstr "Er denne brug forældet?"
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..2107421
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/templates.pot
@@ -0,0 +1,42 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-10-01 22:49+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid "This is a note abuse"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:3001
+msgid "Invoked with unknown debconf priority"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this use deprecated?"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/templates
new file mode 100644
index 0000000..5097b3a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/templates
@@ -0,0 +1,15 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
+Template: debconf/note-abuse
+Type: note
+_Description: This is a note abuse
+
+Template: debconf/unknown-priority
+Type: error
+_Description: Invoked with unknown debconf priority
+
+Template: debconf/deprecated-default
+Type: boolean
+_Description: Is this use deprecated?
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/fill-values
new file mode 100644
index 0000000..bf494b1
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-config-general
+Description: Test for various debconf config issues
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/eval/desc b/t/recipes/checks/debian/debconf/debconf-config-general/eval/desc
new file mode 100644
index 0000000..e2a46b0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-config-general
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/eval/hints b/t/recipes/checks/debian/debconf/debconf-config-general/eval/hints
new file mode 100644
index 0000000..73b5290
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/eval/hints
@@ -0,0 +1,4 @@
+debconf-config-general (binary): unknown-debconf-priority unknown [config:12]
+debconf-config-general (binary): possible-debconf-note-abuse debconf/note-abuse [config:8]
+debconf-config-general (binary): isdefault-flag-is-deprecated [config:15]
+debconf-config-general (binary): config-does-not-load-confmodule [config]
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/config
new file mode 100644
index 0000000..d429f9b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/config
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/control.in b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/control.in
new file mode 100644
index 0000000..68a964d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+
+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.
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/rules b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/rules
new file mode 100755
index 0000000..558750b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+TMP=debian/$(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ chmod 0644 "$(TMP)/DEBIAN/config"
+ dh_builddeb
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/fill-values
new file mode 100644
index 0000000..3ea2f84
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: debconf-config-not-executable
+Description: Test for debian/config not being executable
+Extra-Build-Depends: dpkg (<< 1.19.0)
+# dpkg 1.19.0 will error out due to https://anonscm.debian.org/git/dpkg/dpkg.git/commit/?id=cd791ccf8117398ea765eda3a92db52a9cf04c23
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/desc b/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/desc
new file mode 100644
index 0000000..be30442
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/desc
@@ -0,0 +1,3 @@
+Testname: debconf-config-not-executable
+Check: debian/debconf
+# dpkg 1.19.0 will error out due to https://anonscm.debian.org/git/dpkg/dpkg.git/commit/?id=cd791ccf8117398ea765eda3a92db52a9cf04c23
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/hints b/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/hints
new file mode 100644
index 0000000..e5b6aaa
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/hints
@@ -0,0 +1,4 @@
+debconf-config-not-executable (binary): postinst-does-not-load-confmodule
+debconf-config-not-executable (binary): no-debconf-templates
+debconf-config-not-executable (binary): debconf-config-not-executable
+debconf-config-not-executable (binary): control-file-has-bad-permissions config 0644 != 0755
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/install b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/install
new file mode 100644
index 0000000..28c8417
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/install
@@ -0,0 +1 @@
+script usr/share/lintian
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/da.po b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/da.po
new file mode 100644
index 0000000..343c3e8
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/da.po
@@ -0,0 +1,25 @@
+# Danish translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-25 11:04+0200\n"
+"PO-Revision-Date: 2012-07-23 23:08+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: Danish\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Ubrugelig note"
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..fd4f94f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/templates.pot
@@ -0,0 +1,25 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-25 11:04+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/templates
new file mode 100644
index 0000000..a45cfa3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/templates
@@ -0,0 +1,4 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/fill-values
new file mode 100644
index 0000000..98b6768
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-is-not-registry
+Description: Test for using debconf as a registry
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/config-gen.pl b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/config-gen.pl
new file mode 100644
index 0000000..e6588b7
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/config-gen.pl
@@ -0,0 +1,31 @@
+#!/usr/bin/perl
+
+# Helper script to generate d/config from d/templates.
+# It is just here to make sure all templates are "used".
+
+use strict;
+use warnings;
+
+print <<EOF ;
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+EOF
+
+for my $line ( <STDIN> ) {
+
+ if ($line =~ /^Template:\s*(\S+)\s*$/) {
+
+ my $template = $1;
+ next
+ unless defined $template;
+
+ print "db_input high $template || true\n";
+ print "db_go\n\n";
+ }
+}
+
+exit 0;
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/gen-source.mk b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/gen-source.mk
new file mode 100755
index 0000000..f6f5975
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/gen-source.mk
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+all: debian/config
+
+debian/config: debian/templates
+ perl config-gen.pl < $< > $@
+
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/script b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/script
new file mode 100755
index 0000000..3a05d3a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/script
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /usr/share/debconf/confmodule
+
+db_get debconf/translated
+db_go
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/pre-build b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/pre-build
new file mode 100755
index 0000000..bfcb477
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+DIR="$1"
+make --silent -C "$DIR" -f "$DIR/gen-source.mk" all
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/desc b/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/desc
new file mode 100644
index 0000000..c4cd0cd
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-is-not-registry
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/hints b/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/hints
new file mode 100644
index 0000000..117dfba
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/hints
@@ -0,0 +1 @@
+debconf-is-not-registry (binary): debconf-is-not-a-registry [usr/share/lintian/script:3]
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/config
new file mode 100644
index 0000000..9659eb3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/config
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get debconf/translated
+db_go
+
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/da.po b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/da.po
new file mode 100644
index 0000000..e7cceb3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/da.po
@@ -0,0 +1,24 @@
+# Danish translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-23 23:07+0200\n"
+"PO-Revision-Date: 2012-07-23 23:08+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: Danish\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Ubrugelig note"
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..3edd4a9
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/templates.pot
@@ -0,0 +1,24 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-23 23:07+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postinst
new file mode 100644
index 0000000..df9df64
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+db_input low debconf/translated
+db_go
+
+
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postrm b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postrm
new file mode 100644
index 0000000..5169df8
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ -f /usr/share/debconf/confmodule.sh ] ; then
+ . /usr/share/debconf/confmodule.sh
+ # no debconf purging
+fi
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/preinst b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/preinst
new file mode 100644
index 0000000..8d41696
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get debconf/translated || true
+db_go
+
+#DEBHELPER#
+
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/rules b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/rules
new file mode 100644
index 0000000..e1f0e1b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+PKG=debian/$(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ # Manually copy the scripts - otherwise debhelper with insert
+ # the "correct magic" in each of them.
+ cp -a debian/preinst debian/postinst debian/postrm "$(PKG)/DEBIAN"
+ chmod 0755 "$(PKG)/DEBIAN/preinst" "$(PKG)/DEBIAN/postinst" \
+ "$(PKG)/DEBIAN/postrm"
+ sed -i '/#DEBHELPER#/ d' "$(PKG)/DEBIAN/preinst" \
+ "$(PKG)/DEBIAN/postinst" "$(PKG)/DEBIAN/postrm"
+ dh_builddeb
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/templates
new file mode 100644
index 0000000..a45cfa3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/templates
@@ -0,0 +1,4 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/fill-values
new file mode 100644
index 0000000..6f558ec
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-maintscripts-deps
+Description: Test for various debconf maintscripts and dep issues
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/desc b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/desc
new file mode 100644
index 0000000..aac2cc6
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-maintscripts-deps
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/hints b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/hints
new file mode 100644
index 0000000..3c1fb67
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/hints
@@ -0,0 +1,5 @@
+debconf-maintscripts-deps (binary): postrm-does-not-purge-debconf [postrm]
+debconf-maintscripts-deps (binary): postinst-uses-db-input [postinst:5]
+debconf-maintscripts-deps (binary): postinst-does-not-load-confmodule [postinst]
+debconf-maintscripts-deps (binary): missing-debconf-dependency-for-preinst
+debconf-maintscripts-deps (binary): loads-obsolete-confmodule /usr/share/debconf/confmodule.sh [postrm:5]
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/da.po b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/da.po
new file mode 100644
index 0000000..343c3e8
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/da.po
@@ -0,0 +1,25 @@
+# Danish translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-25 11:04+0200\n"
+"PO-Revision-Date: 2012-07-23 23:08+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: Danish\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Ubrugelig note"
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..fd4f94f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/templates.pot
@@ -0,0 +1,25 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-25 11:04+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/rules b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/rules
new file mode 100644
index 0000000..f8e47a0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_gencontrol:
+ sed -i '/^misc:Depends=/ d' debian/*substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/templates
new file mode 100644
index 0000000..a45cfa3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/templates
@@ -0,0 +1,4 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/fill-values
new file mode 100644
index 0000000..bc71e44
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-missing-dep
+Description: Test for missing debconf dependency
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/config-gen.pl b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/config-gen.pl
new file mode 100644
index 0000000..e6588b7
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/config-gen.pl
@@ -0,0 +1,31 @@
+#!/usr/bin/perl
+
+# Helper script to generate d/config from d/templates.
+# It is just here to make sure all templates are "used".
+
+use strict;
+use warnings;
+
+print <<EOF ;
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+EOF
+
+for my $line ( <STDIN> ) {
+
+ if ($line =~ /^Template:\s*(\S+)\s*$/) {
+
+ my $template = $1;
+ next
+ unless defined $template;
+
+ print "db_input high $template || true\n";
+ print "db_go\n\n";
+ }
+}
+
+exit 0;
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/gen-source.mk b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/gen-source.mk
new file mode 100755
index 0000000..f6f5975
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/gen-source.mk
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+all: debian/config
+
+debian/config: debian/templates
+ perl config-gen.pl < $< > $@
+
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/pre-build b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/pre-build
new file mode 100755
index 0000000..bfcb477
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+DIR="$1"
+make --silent -C "$DIR" -f "$DIR/gen-source.mk" all
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/desc b/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/desc
new file mode 100644
index 0000000..baab935
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-missing-dep
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/hints b/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/hints
new file mode 100644
index 0000000..4f4dcf5
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/hints
@@ -0,0 +1 @@
+debconf-missing-dep (binary): missing-debconf-dependency
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/config
new file mode 100644
index 0000000..6f264ea
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/config
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/postinst
new file mode 100644
index 0000000..0ae7a18
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/fill-values
new file mode 100644
index 0000000..7075c56
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-no-templates
+Description: Test for missing debconf templates
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/eval/desc b/t/recipes/checks/debian/debconf/debconf-no-templates/eval/desc
new file mode 100644
index 0000000..f1d7d8e
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-no-templates
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/eval/hints b/t/recipes/checks/debian/debconf/debconf-no-templates/eval/hints
new file mode 100644
index 0000000..dac69aa
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/eval/hints
@@ -0,0 +1 @@
+debconf-no-templates (binary): no-debconf-templates
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/config
new file mode 100644
index 0000000..6f264ea
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/config
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/templates
new file mode 100644
index 0000000..adf2ece
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/templates
@@ -0,0 +1,3 @@
+Template: debconf/syntax-error
+Type: note
+Description whoops, I forgot a colon
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/fill-values
new file mode 100644
index 0000000..2197de4
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-syntax-error
+Description: Test for syntax error in debconf files
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/desc b/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/desc
new file mode 100644
index 0000000..075c037
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-syntax-error
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/hints b/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/hints
new file mode 100644
index 0000000..d48999c
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/hints
@@ -0,0 +1,2 @@
+debconf-syntax-error (source): syntax-error-in-debconf-template Cannot parse line 3: Description whoops, I forgot a colon [debian/templates]
+debconf-syntax-error (binary): syntax-error-in-debconf-template Cannot parse line 3: Description whoops, I forgot a colon [templates]
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/control.in b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/control.in
new file mode 100644
index 0000000..1140f19
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}, cdebconf
+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/debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en.po b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en.po
new file mode 100644
index 0000000..0734922
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en.po
@@ -0,0 +1,241 @@
+# English translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: 2012-10-01 22:54+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: English\n"
+"Language: en_US\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Useless note"
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr "left, right, up, down"
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr "Pick the odd one out"
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr "Missing template field."
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr "Is this a bad template?"
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr "Missing type"
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr "Template with unknown type"
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr "How do you like the default?"
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr "On a scale of \"false\" to \"true\"."
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr "A boolean type would have been better"
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr "Preference"
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr "Missing a Choices field"
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr "Duplicate long description"
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr "Is the field below unknown?"
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr "What is the name of this package checker:"
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr "Select either x or y"
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr "Lintian is the best!"
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr "Do you like sakana?"
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr "Or do you prefer sake?"
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr "Aren't you tired of all these debconf prompts?"
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr "I think Lintian is the best"
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr "Do you like Lintian?"
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr "Pick \"yes\" if you do."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr "Name the title of this song:"
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+#| msgid "Template with unknown type"
+msgid "Template with entropy type"
+msgstr "Template with unknown type"
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en_US.po b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en_US.po
new file mode 100644
index 0000000..450a03c
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en_US.po
@@ -0,0 +1,223 @@
+# English translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: 2012-10-01 22:54+0200\n"
+"Last-Translator: Russ Allbery <rra@debian.org>\n"
+"Language-Team: English <debian-i18n@lists.debian.org>\n"
+"Language: en_US\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr ""
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr ""
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr ""
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+msgid "Template with entropy type"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..b7f5a7b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/templates.pot
@@ -0,0 +1,223 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr ""
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr ""
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr ""
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+msgid "Template with entropy type"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/templates
new file mode 100644
index 0000000..46ca184
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/templates
@@ -0,0 +1,124 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
+Template: debconf/unsplit-choices
+Type: select
+_Choices: left, right, up, down
+_Description: Pick the odd one out
+
+Type: text
+_Description: Missing template field.
+
+Template: debconf-malformed-template
+Type: boolean
+_Description: Is this a bad template?
+
+Template: debconf/no-type
+_Description: Missing type
+
+Template: debconf/unknown-type
+Type: lintian
+_Description: Template with unknown type
+
+Template: debconf/boolean-bogus-default
+Type: boolean
+Default: lintian
+_Description: How do you like the default?
+ On a scale of "false" to "true".
+
+Template: debconf/select-boolean-choice
+Type: select
+Choices: yes, no
+_Description: A boolean type would have been better
+
+Template: debconf/select-empty-trans-choices
+Type: select
+Choices: sakana, sake
+Choices-Da:
+_Description: Preference
+
+Template: debconf/select-without-choices
+Type: select
+_Description: Missing a Choices field
+
+Template: debconf/no-description
+Type: error
+
+Template: debconf/duplicate-long-desc
+Type: error
+_Description: Duplicate long description
+ Duplicate long description
+
+Template: debconf/unknown-field
+Type: boolean
+_Description: Is the field below unknown?
+Unknown-field: yes, it is.
+
+Template: debconf/malformed-prompt
+Type: string
+_Description: What is the name of this package checker:
+
+Template: debconf/imperative-select
+Type: select
+Choices: x,y
+_Description: Select either x or y
+
+Template: debconf/malformed-question
+Type: boolean
+_Description: Lintian is the best!
+
+Template: debconf/question-in-extended
+Type: boolean
+_Description: Do you like sakana?
+ Or do you prefer sake?
+
+Template: debconf/malformed-note-title
+Type: note
+_Description: Aren't you tired of all these debconf prompts?
+
+Template: debconf/too-long-short-desc
+Type: boolean
+_Description: This template has a very long short description, is that what you call an oxymoron?
+
+Template: debconf/first-person
+Type: select
+Choices: lintian, no-lintian
+_Description: I think Lintian is the best
+
+Template: debconf/assumption
+Type: boolean
+_Description: Do you like Lintian?
+ Pick "yes" if you do.
+
+Template: debconf/5-green-bottles-on-the-wall
+Type: string
+_Description: Name the title of this song:
+ Five green bottles sitting on the wall,
+ Five green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be four green bottles sitting on the wall.
+ .
+ Four green bottles sitting on the wall,
+ Four green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be three green bottles sitting on the wall.
+ .
+ Three green bottles sitting on the wall,
+ Three green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be two green bottles sitting on the wall.
+ .
+ Two green bottles sitting on the wall,
+ Two green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be one green bottle sitting on the wall.
+ .
+ One green bottle sitting on the wall,
+ One green bottle sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be no green bottles sitting on the wall.
+
+Template: debconf/entropy-type
+Type: entropy
+_Description: Template with entropy type
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/fill-values
new file mode 100644
index 0000000..2018d2c
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-templates-general
+Description: Test for various debconf template issues
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/config-gen.pl b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/config-gen.pl
new file mode 100644
index 0000000..e6588b7
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/config-gen.pl
@@ -0,0 +1,31 @@
+#!/usr/bin/perl
+
+# Helper script to generate d/config from d/templates.
+# It is just here to make sure all templates are "used".
+
+use strict;
+use warnings;
+
+print <<EOF ;
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+EOF
+
+for my $line ( <STDIN> ) {
+
+ if ($line =~ /^Template:\s*(\S+)\s*$/) {
+
+ my $template = $1;
+ next
+ unless defined $template;
+
+ print "db_input high $template || true\n";
+ print "db_go\n\n";
+ }
+}
+
+exit 0;
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/gen-source.mk b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/gen-source.mk
new file mode 100755
index 0000000..f6f5975
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/gen-source.mk
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+all: debian/config
+
+debian/config: debian/templates
+ perl config-gen.pl < $< > $@
+
+
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/pre-build b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/pre-build
new file mode 100755
index 0000000..bfcb477
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+DIR="$1"
+make --silent -C "$DIR" -f "$DIR/gen-source.mk" all
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/eval/desc b/t/recipes/checks/debian/debconf/debconf-templates-general/eval/desc
new file mode 100644
index 0000000..4e1bb81
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-templates-general
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/eval/hints b/t/recipes/checks/debian/debconf/debconf-templates-general/eval/hints
new file mode 100644
index 0000000..908230a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/eval/hints
@@ -0,0 +1,22 @@
+debconf-templates-general (source): template-uses-unsplit-choices debconf/unsplit-choices [debian/templates:7]
+debconf-templates-general (binary): using-question-in-extended-description-in-templates debconf/question-in-extended [templates:91]
+debconf-templates-general (binary): using-imperative-form-in-templates debconf/imperative-select [templates:81]
+debconf-templates-general (binary): using-first-person-in-templates debconf/first-person [templates:109]
+debconf-templates-general (binary): unknown-template-type lintian [templates:27]
+debconf-templates-general (binary): unknown-field-in-templates debconf/unknown-field Unknown-field [templates:71]
+debconf-templates-general (binary): too-long-short-description-in-templates debconf/too-long-short-desc [templates:103]
+debconf-templates-general (binary): too-long-extended-description-in-templates debconf/5-green-bottles-on-the-wall [templates:121]
+debconf-templates-general (binary): select-without-choices debconf/select-without-choices [templates:52]
+debconf-templates-general (binary): select-with-boolean-choices debconf/select-boolean-choice [templates:41]
+debconf-templates-general (binary): no-template-type debconf/no-type [templates:22]
+debconf-templates-general (binary): no-template-name [templates:13]
+debconf-templates-general (binary): no-template-description debconf/no-description [templates:57]
+debconf-templates-general (binary): mismatch-translated-choices debconf/select-empty-trans-choices Choices-Da [templates:47]
+debconf-templates-general (binary): malformed-title-in-templates debconf/malformed-note-title [templates:98]
+debconf-templates-general (binary): malformed-template-name debconf-malformed-template [templates:17]
+debconf-templates-general (binary): malformed-question-in-templates debconf/malformed-question [templates:86]
+debconf-templates-general (binary): malformed-prompt-in-templates debconf/malformed-prompt [templates:75]
+debconf-templates-general (binary): making-assumptions-about-interfaces-in-templates debconf/assumption [templates:114]
+debconf-templates-general (binary): empty-translated-choices debconf/select-empty-trans-choices Choices-Da [templates:47]
+debconf-templates-general (binary): duplicate-long-description-in-template debconf/duplicate-long-desc [templates:62]
+debconf-templates-general (binary): boolean-template-has-bogus-default debconf/boolean-bogus-default lintian [templates:33]
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/dpkg-overrides b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/dpkg-overrides
new file mode 100644
index 0000000..250f0b6
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/dpkg-overrides
@@ -0,0 +1 @@
+-DBinary="../unpacked/debian/changelog@NULL@"
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/fill-values
new file mode 100644
index 0000000..f979196
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: debconf-traversal
+Version: 1
+Description: Test for traversal issues via debconf templates
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/post-build b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/post-build
new file mode 100755
index 0000000..b419dc6
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/post-build
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+product="$1"
+
+perl -pi -e 's/\@NULL\@/\0/g' "$product"
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/eval/desc b/t/recipes/checks/debian/debconf/debconf-traversal/eval/desc
new file mode 100644
index 0000000..e4e1548
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/eval/desc
@@ -0,0 +1,3 @@
+Testname: debconf-traversal
+Test-Against: syntax-error-in-debconf-template
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/eval/hints b/t/recipes/checks/debian/debconf/debconf-traversal/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/eval/hints
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f5e308e
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+debconf ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial Release
+ * Changelog line with exactly 80 characters which tests the line-too-long tag.
+
+ -- Lintian Maintainers <debian-lint-maint@debian.org> Wed, 3 May 2006 18:07:19 -0500
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/control
new file mode 100644
index 0000000..bf9f4e9
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/control
@@ -0,0 +1,52 @@
+Source: debconf
+Section: utils
+Priority: optional
+Build-Depends: debhelper (>= 4), dpatch
+Maintainer: Lintian Maintainers <debian-lint-maint@debian.org>
+Standards-Version: 3.7.2
+
+Package: debconf-test
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (dummy)
+
+Package: debconf-test-noscripts
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (noscripts)
+ Package missing postinst/postrm/config.
+ .
+ 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: debconf-test-preinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (preinst)
+ Package uses debconf only in preinst.
+ .
+ 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: debconf-test-postinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (postinst)
+ Package uses debconf only in postinst.
+ .
+ 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: debconf-udeb
+Section: debian-installer
+XC-Package-Type: udeb
+XB-Installer-Menu-Item: 100
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Test udeb package for the debconf checks of lintian (dummy)
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/copyright
new file mode 100644
index 0000000..84843ee
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/copyright
@@ -0,0 +1,10 @@
+Copyright (C) 2004 Frank Lichtenheld <djpig@debian.org>
+
+Test for really old FSF address:
+
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
+
+Test for a dh-make boilerplate:
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
new file mode 100644
index 0000000..93f8071
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
new file mode 100644
index 0000000..56ab871
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
new file mode 100644
index 0000000..bf6f074
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Obsolete name for the confmodule
+. /usr/share/debconf/confmodule.sh
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.config
new file mode 100644
index 0000000..9e32d06
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.config
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_settitle "Funky lintian test"
+
+# Bad priorities.
+db_text LOW debconf/test
+db_input normal debconf/test
+
+# Valid priorities.
+db_text \
+high debconf/test
+foo=medium
+db_input $foo debconf/test
+db_input "$foo" debconf/test
+db_input 'medium' debconf/test
+
+# debconf/transtring should not be flagged as unused
+# (it's aliased to debconf/alias, which is used)
+db_register debconf/transtring debconf/alias
+db_input medium debconf/alias
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.postinst
new file mode 100644
index 0000000..b387037
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# Not supposed to do this here.
+db_input medium debconf/test
+
+true
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates
new file mode 100644
index 0000000..811bb6c
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates
@@ -0,0 +1,101 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
+
+Template: debconf/testmulti
+Type: multiselect
+__Choices: foo, bar, boo
+_Description: test comma usages in choices fields
+
+Template: debconf/testmulti-escape
+Type: multiselect
+_Choices: foo\, bar, boo
+_Description: test escaped comma usages in choices fields:
+
+Template: debconf/testboolean
+Type: boolean
+_Description: Enter yes or no:
+ Do you want to answer this question?
+
+Template: debconf/teststring
+Type: string
+_Description: This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+
+Template: debconf/testnote
+Type: note
+Description: This should be a title and not a really long sentence that ends in a regular period.
+
+Template: debconf/1st-person
+Type: select
+__Choices: one, two
+_Description: Select one of these:
+ I am a stupid test of first-person syntax that tells you to select yes
+ even though yes isn't an option in this prompt.
+
+Template: debconf/internal
+Type: boolean
+Description: For internal use only
+ We are testing that style checks are not applied to templates that are
+ marked as internal.
+
+Template: debconf/no-description
+Type: string
+
+Template: debconf/translate
+Type: boolean
+_Default: false
+_Description: Should this really be translated?
+
+Template: debconf/transtring
+Type: string
+_Default: 1
+_Description: Count of templates:
+ The number of useless numbers that a translator would have to translate
+ for this template.
+
+Template: debconf/language
+__Choices: English, Spanish, German, French
+# This is the default choice. Translators should put their own language,
+# if available, here instead, but the value MUST be the English version
+# of the value for the package scripts to work properly.
+_Default: English[ translators, see the comment in the PO files]
+_Description: The default language, an example of a default that should
+ be translated.
+
+Template: debconf/error
+Type: error
+_Description: An error occurred
+ This is a sample Debconf error template.
+
+Template: debconf/should-be-boolean
+Type: select
+__Choices: yes, no
+_Description: Choose:
+ Pick yes or no.
+
+Template: debconf/should-be-no-longer-a-problem
+Type: boolean
+_Description: Decide, lintian
+ Using "no longer" should no longer be detected as
+ making-assumptions-about-interfaces-in-templates by lintian.
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de
new file mode 100644
index 0000000..f9ea121
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de
@@ -0,0 +1,3 @@
+Template: debconf/testmulti
+Type: multiselect
+Choices: foo, bar\, boo, boo
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst
new file mode 100644
index 0000000..4ce41f0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+ldconfig
+
+true
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates
new file mode 100644
index 0000000..5d7cf5a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates
@@ -0,0 +1,3 @@
+Template: debian-installer/debconf-udeb/title
+Type: text
+_description: This is just a test
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..d0c82f0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] debconf-test.templates
+[type: gettext/rfc822deb] debconf-udeb.templates
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/de.po
new file mode 100644
index 0000000..86c5796
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/de.po
@@ -0,0 +1,66 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2004-12-06 01:01+0100\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:11
+msgid "foo\\, bar, boo"
+msgstr "foo, bar, boo"
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "Dies ist nur ein Test"
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/fr.po
new file mode 100644
index 0000000..c74deb2
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/fr.po
@@ -0,0 +1,60 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/lang.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/lang.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/nds.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/nds.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/output
new file mode 100644
index 0000000..c3df1a5
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/output
@@ -0,0 +1 @@
+2 utf8
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/pt_BR.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/pt_BR.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/sample-file.po
new file mode 100644
index 0000000..8dcc0ff
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/sample-file.po
@@ -0,0 +1 @@
+This is some file that isn't actually a valid .po file.
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..914c77f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/templates.pot
@@ -0,0 +1,61 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pyversions
new file mode 100644
index 0000000..6f290b0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pyversions
@@ -0,0 +1 @@
+>= 2.7
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/rules
new file mode 100755
index 0000000..933901a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+deb_dir = debian/debconf
+udeb_dir = debian/debconf-udeb
+build_dirs = $(deb_dir) $(udeb_dir)
+
+build-indep:
+# There are no architecture-independent files to be built
+# by this package. If there were any they would be made
+# here.
+
+build-arch:
+ dh_testdir
+ touch build
+
+build: build-indep build-arch
+
+clean:
+ dh_testdir
+ dh_testroot
+ -rm -f build
+
+ dh_clean
+
+binary-indep: build
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs -a
+
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installdebconf -pdebconf-test
+ dh_installdebconf -pdebconf-test-noscripts --noscripts
+ dh_installdebconf -pdebconf-test-preinst --noscripts
+ dh_installdebconf -pdebconf-test-postinst --noscripts
+ dh_installdebconf -pdebconf-udeb
+
+
+
+
+ dh_compress -a
+ dh_fixperms -a
+
+# The shlibs stuff doesn't matter here so do it in a weird order to
+# test warnings.
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_makeshlibs -a
+ dh_gencontrol -a
+ dh_md5sums
+ dh_builddeb -a
+ dh_makeshlibs -a
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/fill-values
new file mode 100644
index 0000000..186615f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: legacy-debconf
+Source: debconf
+Version: 1~rc1
+Description: Legacy test "debconf"
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/eval/desc b/t/recipes/checks/debian/debconf/legacy-debconf/eval/desc
new file mode 100644
index 0000000..d6e9b44
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-debconf
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/eval/hints b/t/recipes/checks/debian/debconf/legacy-debconf/eval/hints
new file mode 100644
index 0000000..688e979
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/eval/hints
@@ -0,0 +1,49 @@
+debconf-udeb (udeb): unknown-field-in-templates debian-installer/debconf-udeb/title description-de.UTF-8 [templates:4]
+debconf-udeb (udeb): unknown-field-in-templates debian-installer/debconf-udeb/title description [templates:3]
+debconf-udeb (udeb): missing-debconf-dependency
+debconf (source): template-uses-unsplit-choices debconf/testmulti-escape [debian/debconf-test.templates:12]
+debconf-test-preinst (binary): unknown-field-in-templates debconf/test description [templates:3]
+debconf-test-preinst (binary): possible-debconf-note-abuse debconf/test [preinst:8]
+debconf-test-preinst (binary): missing-debconf-dependency-for-preinst
+debconf-test-preinst (binary): loads-obsolete-confmodule /usr/share/debconf/confmodule.sh [preinst:4]
+debconf-test-postinst (binary): unknown-field-in-templates debconf/test description [templates:3]
+debconf-test-postinst (binary): postinst-uses-db-input [postinst:5]
+debconf-test-postinst (binary): possible-debconf-note-abuse debconf/test [postinst:5]
+debconf-test-postinst (binary): no-debconf-config
+debconf-test-noscripts (binary): unused-debconf-template debconf/test [templates:1]
+debconf-test-noscripts (binary): unknown-field-in-templates debconf/test description [templates:3]
+debconf-test-noscripts (binary): postrm-does-not-purge-debconf postrm
+debconf-test-noscripts (binary): no-debconf-config
+debconf-test (binary): using-question-in-extended-description-in-templates debconf/testboolean [templates:19]
+debconf-test (binary): using-imperative-form-in-templates debconf/should-be-boolean [templates:93]
+debconf-test (binary): using-imperative-form-in-templates debconf/1st-person [templates:54]
+debconf-test (binary): using-first-person-in-templates debconf/1st-person [templates:54]
+debconf-test (binary): unused-debconf-template debconf/translate [templates:67]
+debconf-test (binary): unused-debconf-template debconf/teststring [templates:22]
+debconf-test (binary): unused-debconf-template debconf/testnote [templates:47]
+debconf-test (binary): unused-debconf-template debconf/testmulti-escape [templates:11]
+debconf-test (binary): unused-debconf-template debconf/testmulti [templates:5]
+debconf-test (binary): unused-debconf-template debconf/testboolean [templates:17]
+debconf-test (binary): unused-debconf-template debconf/should-be-no-longer-a-problem [templates:96]
+debconf-test (binary): unused-debconf-template debconf/should-be-boolean [templates:90]
+debconf-test (binary): unused-debconf-template debconf/no-description [templates:64]
+debconf-test (binary): unused-debconf-template debconf/language [templates:79]
+debconf-test (binary): unused-debconf-template debconf/internal [templates:58]
+debconf-test (binary): unused-debconf-template debconf/error [templates:85]
+debconf-test (binary): unused-debconf-template debconf/1st-person [templates:51]
+debconf-test (binary): unknown-field-in-templates debconf/test description [templates:3]
+debconf-test (binary): unknown-debconf-priority normal [config:10]
+debconf-test (binary): unknown-debconf-priority LOW [config:9]
+debconf-test (binary): too-long-short-description-in-templates debconf/testnote [templates:49]
+debconf-test (binary): too-long-extended-description-in-templates debconf/teststring [templates:24]
+debconf-test (binary): select-with-boolean-choices debconf/should-be-boolean [templates:92]
+debconf-test (binary): possible-debconf-note-abuse debconf/test [postinst:7]
+debconf-test (binary): possible-debconf-note-abuse debconf/test [config:18]
+debconf-test (binary): no-template-type debconf/language [templates:79]
+debconf-test (binary): no-template-description debconf/no-description [templates:64]
+debconf-test (binary): mismatch-translated-choices debconf/testmulti-escape Choices-de.UTF-8 [templates:13]
+debconf-test (binary): malformed-title-in-templates debconf/testnote [templates:49]
+debconf-test (binary): malformed-question-in-templates debconf/testboolean [templates:19]
+debconf-test (binary): malformed-question-in-templates debconf/should-be-no-longer-a-problem [templates:98]
+debconf-test (binary): malformed-prompt-in-templates debconf/teststring [templates:24]
+debconf-test (binary): making-assumptions-about-interfaces-in-templates debconf/testboolean [templates:19]
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/eval/post-test b/t/recipes/checks/debian/debconf/legacy-debconf/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/debconf/national-encoding/build-spec/debian/templates b/t/recipes/checks/debian/debconf/national-encoding/build-spec/debian/templates
new file mode 100644
index 0000000..9a2dfc1
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/national-encoding/build-spec/debian/templates
@@ -0,0 +1,3 @@
+Template: debconf/translated
+Type: error
+_Description: Nicht nützlich
diff --git a/t/recipes/checks/debian/debconf/national-encoding/build-spec/fill-values b/t/recipes/checks/debian/debconf/national-encoding/build-spec/fill-values
new file mode 100644
index 0000000..d6c7a70
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/national-encoding/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: national-encoding
+Description: National encoding in debconf template
diff --git a/t/recipes/checks/debian/debconf/national-encoding/eval/desc b/t/recipes/checks/debian/debconf/national-encoding/eval/desc
new file mode 100644
index 0000000..7350979
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/national-encoding/eval/desc
@@ -0,0 +1,2 @@
+Testname: national-encoding
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/national-encoding/eval/hints b/t/recipes/checks/debian/debconf/national-encoding/eval/hints
new file mode 100644
index 0000000..6869670
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/national-encoding/eval/hints
@@ -0,0 +1 @@
+national-encoding (binary): no-debconf-config
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/English.po b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/English.po
new file mode 100644
index 0000000..e99b822
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/English.po
@@ -0,0 +1 @@
+Not a PO file or an English translation.
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..da5857e
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,3 @@
+# This is a comment, which should be ignored.
+[type: gettext/rfc822deb] templates
+some-other-file
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/de.po b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/de.po
new file mode 100644
index 0000000..545fd25
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/de.po
@@ -0,0 +1,2 @@
+This is just some random other file that isn't a German translation at
+all.
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..420734f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/templates.pot
@@ -0,0 +1,30 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Lintian 2.4.3\n"
+"PO-Revision-Date: +2010-07-25 17:07 -0700\n"
+"Last-Translator: Russ Allbery <rra@debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Default
+#: ../templates:1001
+msgid "foo"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This is a string question used for testing:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This is a second string question:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This one ensures no 100% translation of the template."
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates
new file mode 100644
index 0000000..b626825
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates
@@ -0,0 +1,10 @@
+Template: po-debconf-general/test
+Type: string
+_Default: foo
+Description: This is a string question used for testing:
+
+Template: po-debconf-general/test-2
+Type: string
+Default: bar
+_Description: This is a second string question:
+ This one ensures no 100% translation of the template.
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates.en_US b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates.en_US
new file mode 100644
index 0000000..617a474
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates.en_US
@@ -0,0 +1,5 @@
+Template: po-debconf-general/test
+Type: string
+Default: foo
+_Description: This is an English translation that shouldn't be in this
+ directory.
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/fill-values b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/fill-values
new file mode 100644
index 0000000..bbcbc61
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: po-debconf-general
+Description: General tests for debconf translations
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/eval/desc b/t/recipes/checks/debian/debconf/po-debconf-general/eval/desc
new file mode 100644
index 0000000..c4ebe68
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: po-debconf-general
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/eval/hints b/t/recipes/checks/debian/debconf/po-debconf-general/eval/hints
new file mode 100644
index 0000000..0d9bd21
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/eval/hints
@@ -0,0 +1,3 @@
+po-debconf-general (binary): unused-debconf-template po-debconf-general/test-2 [templates:6]
+po-debconf-general (binary): unused-debconf-template po-debconf-general/test [templates:1]
+po-debconf-general (binary): no-debconf-config