summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debhelper/debhelper-compat
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-empty/build-spec/debian/compat1
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-empty/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-empty/eval/desc2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-empty/eval/hints2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-experimental/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-experimental/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-experimental/eval/desc5
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-experimental/eval/hints4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-experimental/eval/lintian-include-dir/profiles/lintian-test/main.profile2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-experimental/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/debian/source/options2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-missing/eval/desc2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-missing/eval/hints3
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/build-spec/debian/compat3
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/eval/desc4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/eval/hints4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-multiple/build-spec/debian/compat3
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-multiple/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-multiple/eval/desc2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-multiple/eval/hints5
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-old/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-old/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-old/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-old/eval/desc4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-old/eval/hints3
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level3
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/fill-values5
-rwxr-xr-xt/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/eval/desc2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/eval/hints4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/fill-values5
-rwxr-xr-xt/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-virtual-relation/eval/desc5
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-virtual-relation/eval/hints4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-whitespace/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-whitespace/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-whitespace/eval/desc3
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat-whitespace/eval/hints3
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat/eval/desc2
-rw-r--r--t/recipes/checks/debhelper/debhelper-compat/eval/hints1
47 files changed, 181 insertions, 0 deletions
diff --git a/t/recipes/checks/debhelper/debhelper-compat-empty/build-spec/debian/compat b/t/recipes/checks/debhelper/debhelper-compat-empty/build-spec/debian/compat
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-empty/build-spec/debian/compat
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debhelper/debhelper-compat-empty/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-empty/build-spec/fill-values
new file mode 100644
index 0000000..99bc50b
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-empty/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: debhelper-compat-empty
+Description: Test empty debian/compat file
+Default-Build-Depends: debhelper (<< 9.20151101~)
diff --git a/t/recipes/checks/debhelper/debhelper-compat-empty/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-empty/eval/desc
new file mode 100644
index 0000000..31b9eb9
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-empty/eval/desc
@@ -0,0 +1,2 @@
+Testname: debhelper-compat-empty
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat-empty/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-empty/eval/hints
new file mode 100644
index 0000000..b4a096f
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-empty/eval/hints
@@ -0,0 +1,2 @@
+debhelper-compat-empty (source): package-uses-deprecated-debhelper-compat-version 1
+debhelper-compat-empty (source): debhelper-compat-file-is-empty
diff --git a/t/recipes/checks/debhelper/debhelper-compat-experimental/build-spec/debian/compat.in b/t/recipes/checks/debhelper/debhelper-compat-experimental/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-experimental/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debhelper/debhelper-compat-experimental/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-experimental/build-spec/fill-values
new file mode 100644
index 0000000..d40c6eb
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-experimental/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: debhelper-compat-experimental
+Dh-Compat-Level: 13
+Default-Build-Depends: debhelper (>= 12~)
+Description: Test for old debian/compat file
+# Overrides the "data/debhelper/compat-level"
diff --git a/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/desc
new file mode 100644
index 0000000..0213f60
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/desc
@@ -0,0 +1,5 @@
+Testname: debhelper-compat-experimental
+Profile: lintian-test
+Options: --include-dir ./lintian-include-dir
+Check: debhelper
+# Overrides the "data/debhelper/compat-level"
diff --git a/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/hints
new file mode 100644
index 0000000..8517f10
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/hints
@@ -0,0 +1,4 @@
+debhelper-compat-experimental (source): package-uses-experimental-debhelper-compat-version 13
+debhelper-compat-experimental (source): no-versioned-debhelper-prerequisite 13
+debhelper-compat-experimental (source): debian-build-system dh [debian/rules]
+debhelper-compat-experimental (source): debhelper-compat-level 13
diff --git a/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/lintian-include-dir/profiles/lintian-test/main.profile
new file mode 100644
index 0000000..f0e27cf
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-experimental/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-compat-experimental/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
new file mode 100644
index 0000000..5d77b80
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-experimental/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
@@ -0,0 +1,2 @@
+@include-parent
+experimental=10
diff --git a/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/debian/compat.in b/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/debian/source/options b/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/debian/source/options
new file mode 100644
index 0000000..ef3297d
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/debian/source/options
@@ -0,0 +1,2 @@
+tar-ignore
+tar-ignore=*/compat
diff --git a/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/fill-values
new file mode 100644
index 0000000..942e8e9
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-missing/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: debhelper-compat-missing
+Description: Test for missing debian/compat
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debhelper/debhelper-compat-missing/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-missing/eval/desc
new file mode 100644
index 0000000..5eec2be
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-missing/eval/desc
@@ -0,0 +1,2 @@
+Testname: debhelper-compat-missing
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat-missing/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-missing/eval/hints
new file mode 100644
index 0000000..7ff4af0
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-missing/eval/hints
@@ -0,0 +1,3 @@
+debhelper-compat-missing (source): package-uses-deprecated-debhelper-compat-version 1
+debhelper-compat-missing (source): debian-build-system dh [debian/rules]
+debhelper-compat-missing (source): debhelper-compat-file-is-missing
diff --git a/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/build-spec/debian/compat b/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/build-spec/debian/compat
new file mode 100644
index 0000000..736ea2a
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/build-spec/debian/compat
@@ -0,0 +1,3 @@
+11
+
+# Comment after a skipped line
diff --git a/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/build-spec/fill-values
new file mode 100644
index 0000000..d3eee2a
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: debhelper-compat-multiple-unrel
+Description: Test debian/compat file with multiple entries (false-positives)
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/eval/desc
new file mode 100644
index 0000000..6627836
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/eval/desc
@@ -0,0 +1,4 @@
+Testname: debhelper-compat-multiple-unrel
+Test-Against:
+ debhelper-compat-file-contains-multiple-levels
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/eval/hints
new file mode 100644
index 0000000..2ec2a64
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-multiple-unrel/eval/hints
@@ -0,0 +1,4 @@
+debhelper-compat-multiple-unrel (source): uses-debhelper-compat-file [debian/compat]
+debhelper-compat-multiple-unrel (source): package-uses-old-debhelper-compat-version 11
+debhelper-compat-multiple-unrel (source): debian-build-system dh [debian/rules]
+debhelper-compat-multiple-unrel (source): debhelper-compat-level 11
diff --git a/t/recipes/checks/debhelper/debhelper-compat-multiple/build-spec/debian/compat b/t/recipes/checks/debhelper/debhelper-compat-multiple/build-spec/debian/compat
new file mode 100644
index 0000000..58110e6
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-multiple/build-spec/debian/compat
@@ -0,0 +1,3 @@
+11
+
+12
diff --git a/t/recipes/checks/debhelper/debhelper-compat-multiple/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-multiple/build-spec/fill-values
new file mode 100644
index 0000000..6f579bf
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-multiple/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: debhelper-compat-multiple
+Description: Test debian/compat file with multiple entries
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debhelper/debhelper-compat-multiple/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-multiple/eval/desc
new file mode 100644
index 0000000..a073dba
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-multiple/eval/desc
@@ -0,0 +1,2 @@
+Testname: debhelper-compat-multiple
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat-multiple/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-multiple/eval/hints
new file mode 100644
index 0000000..03f9faf
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-multiple/eval/hints
@@ -0,0 +1,5 @@
+debhelper-compat-multiple (source): uses-debhelper-compat-file [debian/compat]
+debhelper-compat-multiple (source): package-uses-old-debhelper-compat-version 11
+debhelper-compat-multiple (source): debian-build-system dh [debian/rules]
+debhelper-compat-multiple (source): debhelper-compat-level 11
+debhelper-compat-multiple (source): debhelper-compat-file-contains-multiple-levels [debian/compat:3]
diff --git a/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/debian/compat.in b/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/debian/rules b/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/debian/rules
new file mode 100644
index 0000000..3d706f5
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ dh_builddeb -- -Zgzip
diff --git a/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/fill-values
new file mode 100644
index 0000000..3de27aa
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-old/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: debhelper-compat-old
+Description: Test for old debian/compat file
+Dh-Compat-Level: 8
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debhelper/debhelper-compat-old/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-old/eval/desc
new file mode 100644
index 0000000..5659a51
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-old/eval/desc
@@ -0,0 +1,4 @@
+Testname: debhelper-compat-old
+Options: --include-dir ./lintian-include-dir
+Profile: lintian-test
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat-old/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-old/eval/hints
new file mode 100644
index 0000000..21ce42a
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-old/eval/hints
@@ -0,0 +1,3 @@
+debhelper-compat-old (source): package-uses-old-debhelper-compat-version 8
+debhelper-compat-old (source): debian-build-system dh [debian/rules]
+debhelper-compat-old (source): debhelper-compat-level 8
diff --git a/t/recipes/checks/debhelper/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debhelper/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile
new file mode 100644
index 0000000..f0e27cf
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-old/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-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debhelper/debhelper-compat-old/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-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
@@ -0,0 +1,3 @@
+@include-parent
+deprecated=1
+recommended=100
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/debian/control.in b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/debian/control.in
new file mode 100644
index 0000000..c59a284
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: debhelper (>= 11.3.6~), debhelper-compat (= 10)
+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.
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/fill-values
new file mode 100644
index 0000000..40b77b3
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: debhelper-compat-virtual-relation-both
+Description: Test both debhelper and debhelper-compat as a build-dependency
+Default-Build-Depends:
+ debhelper (>= 11.3~)
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/pre-build b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/eval/desc
new file mode 100644
index 0000000..2b36dde
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/eval/desc
@@ -0,0 +1,2 @@
+Testname: debhelper-compat-virtual-relation-both
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/eval/hints
new file mode 100644
index 0000000..a26bc3a
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both/eval/hints
@@ -0,0 +1,4 @@
+debhelper-compat-virtual-relation-both (source): package-uses-old-debhelper-compat-version 10
+debhelper-compat-virtual-relation-both (source): debian-build-system dh [debian/rules]
+debhelper-compat-virtual-relation-both (source): debhelper-compat-virtual-relation 10 [debian/control]
+debhelper-compat-virtual-relation-both (source): debhelper-compat-level 10
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/debian/control.in b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/debian/control.in
new file mode 100644
index 0000000..caddd20
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: debhelper-compat (= 11)
+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.
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/fill-values
new file mode 100644
index 0000000..9d5502e
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: debhelper-compat-virtual-relation
+Description: Test debhelper-compat as a build-dependency
+Default-Build-Depends:
+ debhelper (>= 11.3~)
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/pre-build b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/eval/desc
new file mode 100644
index 0000000..75c4375
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/eval/desc
@@ -0,0 +1,5 @@
+Testname: debhelper-compat-virtual-relation
+Test-Against:
+ package-uses-debhelper-but-lacks-build-depends
+ no-versioned-debhelper-prerequisite
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/eval/hints
new file mode 100644
index 0000000..74e2f29
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-virtual-relation/eval/hints
@@ -0,0 +1,4 @@
+debhelper-compat-virtual-relation (source): package-uses-old-debhelper-compat-version 11
+debhelper-compat-virtual-relation (source): debian-build-system dh [debian/rules]
+debhelper-compat-virtual-relation (source): debhelper-compat-virtual-relation 11 [debian/control]
+debhelper-compat-virtual-relation (source): debhelper-compat-level 11
diff --git a/t/recipes/checks/debhelper/debhelper-compat-whitespace/build-spec/debian/compat.in b/t/recipes/checks/debhelper/debhelper-compat-whitespace/build-spec/debian/compat.in
new file mode 100644
index 0000000..64f7ede
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-whitespace/build-spec/debian/compat.in
@@ -0,0 +1 @@
+ [% $dh_compat_level %]
diff --git a/t/recipes/checks/debhelper/debhelper-compat-whitespace/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat-whitespace/build-spec/fill-values
new file mode 100644
index 0000000..0301064
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-whitespace/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: debhelper-compat-whitespace
+Description: Allow whitespace in debian/compat
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debhelper/debhelper-compat-whitespace/eval/desc b/t/recipes/checks/debhelper/debhelper-compat-whitespace/eval/desc
new file mode 100644
index 0000000..8063998
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-whitespace/eval/desc
@@ -0,0 +1,3 @@
+Testname: debhelper-compat-whitespace
+Test-Against: debhelper-compat-not-a-number
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat-whitespace/eval/hints b/t/recipes/checks/debhelper/debhelper-compat-whitespace/eval/hints
new file mode 100644
index 0000000..c3d2ed0
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat-whitespace/eval/hints
@@ -0,0 +1,3 @@
+debhelper-compat-whitespace (source): uses-debhelper-compat-file [debian/compat]
+debhelper-compat-whitespace (source): debian-build-system dh [debian/rules]
+debhelper-compat-whitespace (source): debhelper-compat-level 13
diff --git a/t/recipes/checks/debhelper/debhelper-compat/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-compat/build-spec/fill-values
new file mode 100644
index 0000000..11bd35f
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: debhelper-compat
+Description: Test the content of debian/compat
+Default-Build-Depends: debhelper (<< 9.20151101~)
+Dh-Compat-Level: [9-
diff --git a/t/recipes/checks/debhelper/debhelper-compat/eval/desc b/t/recipes/checks/debhelper/debhelper-compat/eval/desc
new file mode 100644
index 0000000..d4f1ad1
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat/eval/desc
@@ -0,0 +1,2 @@
+Testname: debhelper-compat
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-compat/eval/hints b/t/recipes/checks/debhelper/debhelper-compat/eval/hints
new file mode 100644
index 0000000..baa1950
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-compat/eval/hints
@@ -0,0 +1 @@
+debhelper-compat (source): debhelper-compat-not-a-number [9-