summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/debconf/debconf-templates-general
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/debian/debconf/debconf-templates-general')
-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
13 files changed, 906 insertions, 0 deletions
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]