[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#582511: [checks/debhelper] check for dh + ${python:Depends} but no Python helper



Tests attached.

--
Jakub Wilk
diff --git a/t/tests/debhelper-dh-python-helpers/debian/debian/control.in b/t/tests/debhelper-dh-python-helpers/debian/debian/control.in
new file mode 100644
--- /dev/null
+++ b/t/tests/debhelper-dh-python-helpers/debian/debian/control.in
@@ -0,0 +1,30 @@
+Source: {$srcpkg}
+Priority: extra
+Section: {$section}
+Maintainer: {$author}
+Standards-Version: {$standards_version}
+Build-Depends: debhelper (>= 7)
+
+Package: python-cheshire
+Section: python
+Architecture: all
+Depends: $\{misc:Depends\}, $\{python:Depends\}
+Description: Cheshire cheese for Python 2.X
+ 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.
+ .
+ For Python 2.X.
+
+Package: python3-cheshire
+Section: python
+Architecture: all
+Depends: $\{misc:Depends\}, $\{python3:Depends\}
+Description: Cheshire cheese for Python 3.X
+ 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.
+ .
+ For Python 3.X.
diff --git a/t/tests/debhelper-dh-python-helpers/desc b/t/tests/debhelper-dh-python-helpers/desc
new file mode 100644
--- /dev/null
+++ b/t/tests/debhelper-dh-python-helpers/desc
@@ -0,0 +1,8 @@
+Testname: debhelper-dh-python-helpers
+Sequence: 6000
+Version: 1.0
+Description: Check if helpers that substitute python:Depends and
+ python3:Depends are called in debian/rules
+Test-For:
+ python-depends-but-no-python-helper
+ python3-depends-but-no-python3-helper
diff --git a/t/tests/debhelper-dh-python-helpers/tags b/t/tests/debhelper-dh-python-helpers/tags
new file mode 100644
--- /dev/null
+++ b/t/tests/debhelper-dh-python-helpers/tags
@@ -0,0 +1,2 @@
+X: debhelper-dh-python-helpers source: python-depends-but-no-python-helper python-cheshire
+X: debhelper-dh-python-helpers source: python3-depends-but-no-python3-helper python3-cheshire

Reply to: