summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/version-substvars/version-substvars-obsolete
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/debian/version-substvars/version-substvars-obsolete
parentInitial commit. (diff)
downloadlintian-upstream.tar.xz
lintian-upstream.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/debian/version-substvars/version-substvars-obsolete')
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/debian/control.in57
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/desc3
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/hints8
4 files changed, 73 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/debian/control.in b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/debian/control.in
new file mode 100644
index 0000000..200f9ad
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/debian/control.in
@@ -0,0 +1,57 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: program-bin
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-data (= ${binary:Version}),
+ program-data-extra (= ${source:Version})
+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: program-data
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ foreign-pkg:any (= ${Source-Version})
+Replaces: other-foreign-pkg:any (<< ${binary:Version})
+Description: [% $description %] - data
+ 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.
+ .
+ Data package.
+
+Package: program-utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-bin:any (= ${source:Version}),
+ program-data (>= ${binary:Version})
+Description: [% $description %] - extra utils
+ 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.
+ .
+ Extra utils.
+
+Package: program-data-extra
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-bin:any (= ${binary:Version}),
+Description: [% $description %] - extra data
+ 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.
+ .
+ Extra-Data package.
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/fill-values b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/fill-values
new file mode 100644
index 0000000..ec9740c
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: version-substvars-obsolete
+Description: Test of substvars
+Extra-Build-Depends: dpkg (<< 1.17.2)
+# dpkg 1.18.11 Will error out for ${source-version}
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/desc b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/desc
new file mode 100644
index 0000000..25c3fcb
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/desc
@@ -0,0 +1,3 @@
+Testname: version-substvars-obsolete
+Check: debian/version-substvars
+# dpkg 1.18.11 Will error out for ${source-version}
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/hints b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/hints
new file mode 100644
index 0000000..e1b5e52
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/hints
@@ -0,0 +1,8 @@
+version-substvars-obsolete (source): version-substvar-for-external-package program-data -> other-foreign-pkg
+version-substvars-obsolete (source): version-substvar-for-external-package program-data -> foreign-pkg
+version-substvars-obsolete (source): substvar-source-version-is-deprecated program-data
+version-substvars-obsolete (source): not-binnmuable-any-depends-any program-utils -> program-bin
+version-substvars-obsolete (source): not-binnmuable-any-depends-all program-utils -> program-data
+version-substvars-obsolete (source): not-binnmuable-any-depends-all program-bin -> program-data
+version-substvars-obsolete (source): not-binnmuable-all-depends-any program-data-extra -> program-bin
+version-substvars-obsolete (source): maybe-not-arch-all-binnmuable program-bin -> program-data-extra