summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debhelper/debhelper-dh-compat
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/debhelper/debhelper-dh-compat')
-rw-r--r--t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/debian/compat.in1
-rwxr-xr-xt/recipes/checks/debhelper/debhelper-dh-compat/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debhelper/debhelper-dh-compat/eval/desc4
-rw-r--r--t/recipes/checks/debhelper/debhelper-dh-compat/eval/hints5
-rw-r--r--t/recipes/checks/debhelper/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile2
-rw-r--r--t/recipes/checks/debhelper/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level3
7 files changed, 27 insertions, 0 deletions
diff --git a/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/debian/compat.in b/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/debian/rules b/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/debian/rules
new file mode 100755
index 0000000..111f495
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+export DH_COMPAT=10
+
+%:
+ dh $@
+
+DH_COMPAT=8
diff --git a/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/fill-values
new file mode 100644
index 0000000..be50f28
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-dh-compat/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: debhelper-dh-compat
+Description: Test the value of DH_COMPAT
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debhelper/debhelper-dh-compat/eval/desc b/t/recipes/checks/debhelper/debhelper-dh-compat/eval/desc
new file mode 100644
index 0000000..d974fa2
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-dh-compat/eval/desc
@@ -0,0 +1,4 @@
+Testname: debhelper-dh-compat
+Profile: lintian-test
+Options: --include-dir ./lintian-include-dir
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-dh-compat/eval/hints b/t/recipes/checks/debhelper/debhelper-dh-compat/eval/hints
new file mode 100644
index 0000000..86e066e
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-dh-compat/eval/hints
@@ -0,0 +1,5 @@
+debhelper-dh-compat (source): uses-debhelper-compat-file [debian/compat]
+debhelper-dh-compat (source): package-uses-old-debhelper-compat-version 8
+debhelper-dh-compat (source): declares-possibly-conflicting-debhelper-compat-versions 13 vs elsewhere 8 [debian/compat]
+debhelper-dh-compat (source): debian-build-system dh [debian/rules]
+debhelper-dh-compat (source): debhelper-compat-level 8
diff --git a/t/recipes/checks/debhelper/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debhelper/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile
new file mode 100644
index 0000000..f0e27cf
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile
@@ -0,0 +1,2 @@
+Profile: lintian-test/main
+Extends: debian/main
diff --git a/t/recipes/checks/debhelper/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debhelper/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
new file mode 100644
index 0000000..d91eeb3
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
@@ -0,0 +1,3 @@
+@include-parent
+deprecated=1
+recommended=100