summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debhelper/debhelper-brace-expansion
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/debhelper/debhelper-brace-expansion
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 't/recipes/checks/debhelper/debhelper-brace-expansion')
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/control.in80
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-1.install1
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-2.install1
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-3.install1
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-4.install1
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-5.install1
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-good.install5
-rwxr-xr-xt/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/eval/desc3
-rw-r--r--t/recipes/checks/debhelper/debhelper-brace-expansion/eval/hints8
11 files changed, 112 insertions, 0 deletions
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/control.in b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/control.in
new file mode 100644
index 0000000..dcfb380
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/control.in
@@ -0,0 +1,80 @@
+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: ${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.
+
+Package: debhelper-brace-problem-1
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] another extra string
+ 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. Extra
+ string. It may be an empty package.
+
+Package: debhelper-brace-problem-2
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] another extra string three
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. Extra
+ string three. It may be an empty package.
+
+Package: debhelper-brace-problem-3
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] three test case
+ 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. Extra
+ string three test case. It may be an empty package.
+
+Package: debhelper-brace-problem-4
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] fourth test case
+ 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. Extra
+ string fourth test case. It may be an empty package.
+
+Package: debhelper-brace-problem-5
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] fifth test case
+ 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. Extra
+ string fifth test case. It may be an empty package.
+
+Package: debhelper-brace-problem-6
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] sixth test case
+ 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. Extra
+ string sixth test case. It may be an empty package.
+
+Package: debhelper-brace-problem-good
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] good test case
+ 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. Should
+ not trigger lintian test. It may be an empty package.
+
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-1.install b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-1.install
new file mode 100644
index 0000000..917db1f
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-1.install
@@ -0,0 +1 @@
+{,foo}.txt usr/share/debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-2.install b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-2.install
new file mode 100644
index 0000000..c0a7ccb
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-2.install
@@ -0,0 +1 @@
+{foo,bar}.txt usr/share/debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-3.install b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-3.install
new file mode 100644
index 0000000..7276554
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-3.install
@@ -0,0 +1 @@
+{foo,}.txt usr/share/debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-4.install b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-4.install
new file mode 100644
index 0000000..05031a8
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-4.install
@@ -0,0 +1 @@
+{,,foo}.txt usr/share/debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-5.install b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-5.install
new file mode 100644
index 0000000..576e6a4
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-5.install
@@ -0,0 +1 @@
+{,foo,}.txt usr/share/debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-good.install b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-good.install
new file mode 100644
index 0000000..bf22e94
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/debhelper-brace-problem-good.install
@@ -0,0 +1,5 @@
+{.txt usr/share/debhelper
+{good}.txt usr/share/debhelper
+{}.txt usr/share/debhelper
+{foo} usr/share/debhelper
+{foo}.txt usr/share/debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/rules b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/rules
new file mode 100755
index 0000000..16d8ba1
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+# Skip dh_install since there are braces in the install configuration file and
+# it would error out on at least some systems.
+override_dh_install:
+
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/fill-values
new file mode 100644
index 0000000..90ac5ed
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debhelper-brace-expansion
+Description: Check for brace expansion in debhelper config files
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/eval/desc b/t/recipes/checks/debhelper/debhelper-brace-expansion/eval/desc
new file mode 100644
index 0000000..e213355
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/eval/desc
@@ -0,0 +1,3 @@
+Testname: debhelper-brace-expansion
+See-Also: Debian Bug#480939
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-brace-expansion/eval/hints b/t/recipes/checks/debhelper/debhelper-brace-expansion/eval/hints
new file mode 100644
index 0000000..b2711de
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-brace-expansion/eval/hints
@@ -0,0 +1,8 @@
+debhelper-brace-expansion (source): debian-build-system dh [debian/rules]
+debhelper-brace-expansion (source): debhelper-compat-virtual-relation 13 [debian/control]
+debhelper-brace-expansion (source): debhelper-compat-level 13
+debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {foo,} [debian/debhelper-brace-problem-3.install:1]
+debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {foo,bar} [debian/debhelper-brace-problem-2.install:1]
+debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {,foo} [debian/debhelper-brace-problem-1.install:1]
+debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {,foo,} [debian/debhelper-brace-problem-5.install:1]
+debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {,,foo} [debian/debhelper-brace-problem-4.install:1]