diff options
Diffstat (limited to '')
13 files changed, 119 insertions, 0 deletions
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] |