summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/init-d/init.d-symlink
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/init-d/init.d-symlink')
-rw-r--r--t/recipes/checks/init-d/init.d-symlink/build-spec/debian/links2
-rwxr-xr-xt/recipes/checks/init-d/init.d-symlink/build-spec/debian/postinst4
-rwxr-xr-xt/recipes/checks/init-d/init.d-symlink/build-spec/debian/postrm6
-rw-r--r--t/recipes/checks/init-d/init.d-symlink/build-spec/fill-values3
-rw-r--r--t/recipes/checks/init-d/init.d-symlink/eval/desc5
-rw-r--r--t/recipes/checks/init-d/init.d-symlink/eval/hints1
6 files changed, 21 insertions, 0 deletions
diff --git a/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/links b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/links
new file mode 100644
index 0000000..2fe7261
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/links
@@ -0,0 +1,2 @@
+/lib/init/upstart-job etc/init.d/lintian
+/lib/init/upstart-job etc/init.d/lintian-unreg
diff --git a/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postinst b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postinst
new file mode 100755
index 0000000..ed6bc65
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+update-rc.d lintian defaults >/dev/null
+#DEBHELPER#
diff --git a/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postrm b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postrm
new file mode 100755
index 0000000..4bf5ee6
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postrm
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+if [ "$1" = purse ] ; then
+ update-rc.d lintian remove >/dev/null
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/init-d/init.d-symlink/build-spec/fill-values b/t/recipes/checks/init-d/init.d-symlink/build-spec/fill-values
new file mode 100644
index 0000000..f6ac70a
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: init.d-symlink
+Description: Check proper handling of symlinked init scripts
diff --git a/t/recipes/checks/init-d/init.d-symlink/eval/desc b/t/recipes/checks/init-d/init.d-symlink/eval/desc
new file mode 100644
index 0000000..5f98c29
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/eval/desc
@@ -0,0 +1,5 @@
+Testname: init.d-symlink
+Test-Against:
+ init.d-script-not-included-in-package
+ init.d-script-not-marked-as-conffile
+Check: init-d
diff --git a/t/recipes/checks/init-d/init.d-symlink/eval/hints b/t/recipes/checks/init-d/init.d-symlink/eval/hints
new file mode 100644
index 0000000..8d92c7c
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/eval/hints
@@ -0,0 +1 @@
+init.d-symlink (binary): upstart-job-in-etc-init.d-not-registered-via-update-rc.d [etc/init.d/lintian-unreg]