summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/scripts/scripts-control-interpreters
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/scripts/scripts-control-interpreters
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/control.in63
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/de.po13
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/templates.pot23
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.config8
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.postinst10
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.postrm10
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.templates3
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.postinst5
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.preinst5
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.prerm6
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-prepython.postinst6
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-prepython.preinst6
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-python.postinst6
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-python.preinst6
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-unknown.postinst6
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/build-spec/fill-values3
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/eval/desc3
-rw-r--r--t/recipes/checks/scripts/scripts-control-interpreters/eval/hints26
19 files changed, 209 insertions, 0 deletions
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/control.in b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/control.in
new file mode 100644
index 0000000..db28215
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/control.in
@@ -0,0 +1,63 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]-paths
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (paths)
+ Interpreters with bad paths.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. It may
+ be an empty package.
+
+Package: [% $source %]-forbidden
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (forbidden)
+ Forbidden control interpreters.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. It may
+ be an empty package.
+
+Package: [% $source %]-unknown
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (unknown)
+ Unknown control interpreters.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. It may
+ be an empty package.
+
+Package: [% $source %]-python
+Architecture: [% $package_architecture %]
+Depends: python3, ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (Python)
+ Python control interpreters with depends.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. It may
+ be an empty package.
+
+Package: [% $source %]-prepython
+Architecture: [% $package_architecture %]
+Pre-Depends: python3
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (Python preinst)
+ Python control interpreters with pre-depends.
+ .
+ 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/scripts/scripts-control-interpreters/build-spec/debian/po/POTFILES.in b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..5da079f
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] scripts-control-interpreters-forbidden.templates
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/de.po b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/de.po
new file mode 100644
index 0000000..4ab3a8f
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/de.po
@@ -0,0 +1,13 @@
+msgid ""
+msgstr ""
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-12-28 14:30-0800\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. description
+#: ../scripts-control-interpreters-forbidden.templates:1001
+msgid "Enter something:"
+msgstr "Not really a translation:"
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/templates.pot b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..6b4af20
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/po/templates.pot
@@ -0,0 +1,23 @@
+# 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: 2008-12-28 14:30-0800\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: string
+#. description
+#: ../scripts-control-interpreters-forbidden.templates:1001
+msgid "Enter something:"
+msgstr ""
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.config b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.config
new file mode 100644
index 0000000..b571bf6
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.config
@@ -0,0 +1,8 @@
+#!/usr/bin/python3
+import sys
+"""
+This is here to fool Lintian to avoid additional tags about debconf.
+. /usr/share/debconf/confmodule
+db_input low scripts-control-interpreters-forbidden/test
+"""
+sys.exit(0)
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.postinst b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.postinst
new file mode 100644
index 0000000..3e496b0
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.postinst
@@ -0,0 +1,10 @@
+#!/usr/bin/python3
+import sys
+"""
+This is here to fool Lintian to avoid additional tags about debconf.
+. /usr/share/debconf/confmodule
+"""
+sys.exit(0)
+"""
+#DEBHELPER#
+"""
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.postrm b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.postrm
new file mode 100644
index 0000000..34cc3ed
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.postrm
@@ -0,0 +1,10 @@
+#!/usr/bin/python3
+import sys
+"""
+This is here to fool Lintian to avoid additional tags about debconf.
+db_purge
+"""
+sys.exit(0)
+"""
+#DEBHELPER#
+"""
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.templates b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.templates
new file mode 100644
index 0000000..05d97b3
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-forbidden.templates
@@ -0,0 +1,3 @@
+Template: scripts-control-interpreters-forbidden/test
+Type: string
+_description: Enter something:
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.postinst b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.postinst
new file mode 100644
index 0000000..39cf003
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.postinst
@@ -0,0 +1,5 @@
+#!/usr/bin/bash
+set -e
+run something
+
+#DEBHELPER#
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.preinst b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.preinst
new file mode 100644
index 0000000..542236f
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.preinst
@@ -0,0 +1,5 @@
+#!/usr/local/bin/bash
+set -e
+run something
+
+#DEBHELPER#
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.prerm b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.prerm
new file mode 100644
index 0000000..90c3983
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-paths.prerm
@@ -0,0 +1,6 @@
+#!/bin/python3
+import sys
+sys.exit(0)
+"""
+#DEBHELPER#
+"""
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-prepython.postinst b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-prepython.postinst
new file mode 100644
index 0000000..d56255c
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-prepython.postinst
@@ -0,0 +1,6 @@
+#!/usr/bin/python3
+import sys
+sys.exit(0)
+"""
+#DEBHELPER#
+"""
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-prepython.preinst b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-prepython.preinst
new file mode 100644
index 0000000..d56255c
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-prepython.preinst
@@ -0,0 +1,6 @@
+#!/usr/bin/python3
+import sys
+sys.exit(0)
+"""
+#DEBHELPER#
+"""
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-python.postinst b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-python.postinst
new file mode 100644
index 0000000..d56255c
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-python.postinst
@@ -0,0 +1,6 @@
+#!/usr/bin/python3
+import sys
+sys.exit(0)
+"""
+#DEBHELPER#
+"""
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-python.preinst b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-python.preinst
new file mode 100644
index 0000000..d56255c
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-python.preinst
@@ -0,0 +1,6 @@
+#!/usr/bin/python3
+import sys
+sys.exit(0)
+"""
+#DEBHELPER#
+"""
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-unknown.postinst b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-unknown.postinst
new file mode 100644
index 0000000..a5ded5a
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/debian/scripts-control-interpreters-unknown.postinst
@@ -0,0 +1,6 @@
+#!/usr/bin/unknown
+do the unknown thing
+shellicate this stuff (
+#DEBHELPER#
+) yay!
+exit happily
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/fill-values b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/fill-values
new file mode 100644
index 0000000..99b7449
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: scripts-control-interpreters
+Description: Check maintainer and config script interpreters
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/eval/desc b/t/recipes/checks/scripts/scripts-control-interpreters/eval/desc
new file mode 100644
index 0000000..9172f4f
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/eval/desc
@@ -0,0 +1,3 @@
+Testname: scripts-control-interpreters
+See-Also: Debian Bug#508307
+Check: scripts
diff --git a/t/recipes/checks/scripts/scripts-control-interpreters/eval/hints b/t/recipes/checks/scripts/scripts-control-interpreters/eval/hints
new file mode 100644
index 0000000..f82d12e
--- /dev/null
+++ b/t/recipes/checks/scripts/scripts-control-interpreters/eval/hints
@@ -0,0 +1,26 @@
+scripts-control-interpreters-unknown (binary): unknown-control-interpreter /usr/bin/unknown [postinst]
+scripts-control-interpreters-unknown (binary): maintainer-script-interpreter /usr/bin/unknown [postinst]
+scripts-control-interpreters-python (binary): unusual-control-interpreter /usr/bin/python3 [preinst]
+scripts-control-interpreters-python (binary): unusual-control-interpreter /usr/bin/python3 [postinst]
+scripts-control-interpreters-python (binary): maintainer-script-interpreter /usr/bin/python3 [preinst]
+scripts-control-interpreters-python (binary): maintainer-script-interpreter /usr/bin/python3 [postinst]
+scripts-control-interpreters-python (binary): control-interpreter-without-predepends /usr/bin/python3 (does not satisfy python3:any | python3-minimal:any) [preinst]
+scripts-control-interpreters-prepython (binary): unusual-control-interpreter /usr/bin/python3 [preinst]
+scripts-control-interpreters-prepython (binary): unusual-control-interpreter /usr/bin/python3 [postinst]
+scripts-control-interpreters-prepython (binary): maintainer-script-interpreter /usr/bin/python3 [preinst]
+scripts-control-interpreters-prepython (binary): maintainer-script-interpreter /usr/bin/python3 [postinst]
+scripts-control-interpreters-paths (binary): wrong-path-for-interpreter /usr/bin/bash != /bin/bash [postinst]
+scripts-control-interpreters-paths (binary): wrong-path-for-interpreter /bin/python3 != /usr/bin/python3 [prerm]
+scripts-control-interpreters-paths (binary): unusual-control-interpreter /bin/python3 [prerm]
+scripts-control-interpreters-paths (binary): maintainer-script-interpreter /usr/local/bin/bash [preinst]
+scripts-control-interpreters-paths (binary): maintainer-script-interpreter /usr/bin/bash [postinst]
+scripts-control-interpreters-paths (binary): maintainer-script-interpreter /bin/python3 [prerm]
+scripts-control-interpreters-paths (binary): control-interpreter-without-depends /bin/python3 (does not satisfy python3:any | python3-minimal:any) [prerm]
+scripts-control-interpreters-paths (binary): control-interpreter-in-usr-local /usr/local/bin/bash [preinst]
+scripts-control-interpreters-forbidden (binary): unusual-control-interpreter /usr/bin/python3 [postinst]
+scripts-control-interpreters-forbidden (binary): maintainer-script-interpreter /usr/bin/python3 [postrm]
+scripts-control-interpreters-forbidden (binary): maintainer-script-interpreter /usr/bin/python3 [postinst]
+scripts-control-interpreters-forbidden (binary): maintainer-script-interpreter /usr/bin/python3 [config]
+scripts-control-interpreters-forbidden (binary): forbidden-postrm-interpreter /usr/bin/python3 [postrm]
+scripts-control-interpreters-forbidden (binary): forbidden-config-interpreter /usr/bin/python3 [config]
+scripts-control-interpreters-forbidden (binary): control-interpreter-without-depends /usr/bin/python3 (does not satisfy python3:any | python3-minimal:any) [postinst]