summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debhelper/debhelper-script-token
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/debhelper/debhelper-script-token')
-rw-r--r--t/recipes/checks/debhelper/debhelper-script-token/build-spec/debian/postinst6
-rw-r--r--t/recipes/checks/debhelper/debhelper-script-token/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debhelper/debhelper-script-token/eval/desc2
-rw-r--r--t/recipes/checks/debhelper/debhelper-script-token/eval/hints4
4 files changed, 15 insertions, 0 deletions
diff --git a/t/recipes/checks/debhelper/debhelper-script-token/build-spec/debian/postinst b/t/recipes/checks/debhelper/debhelper-script-token/build-spec/debian/postinst
new file mode 100644
index 0000000..185dc3a
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-script-token/build-spec/debian/postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+run something
+
+# We should have a debhelper token.
+exit 0
diff --git a/t/recipes/checks/debhelper/debhelper-script-token/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-script-token/build-spec/fill-values
new file mode 100644
index 0000000..0fe87cf
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-script-token/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debhelper-script-token
+Description: Check debhelper script token with rule minimization
diff --git a/t/recipes/checks/debhelper/debhelper-script-token/eval/desc b/t/recipes/checks/debhelper/debhelper-script-token/eval/desc
new file mode 100644
index 0000000..64e2d6f
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-script-token/eval/desc
@@ -0,0 +1,2 @@
+Testname: debhelper-script-token
+Check: debhelper
diff --git a/t/recipes/checks/debhelper/debhelper-script-token/eval/hints b/t/recipes/checks/debhelper/debhelper-script-token/eval/hints
new file mode 100644
index 0000000..ece9068
--- /dev/null
+++ b/t/recipes/checks/debhelper/debhelper-script-token/eval/hints
@@ -0,0 +1,4 @@
+debhelper-script-token (source): maintainer-script-lacks-debhelper-token [debian/postinst]
+debhelper-script-token (source): debian-build-system dh [debian/rules]
+debhelper-script-token (source): debhelper-compat-virtual-relation 13 [debian/control]
+debhelper-script-token (source): debhelper-compat-level 13