diff options
Diffstat (limited to 't/recipes/checks/init-d/init.d-script-registration')
9 files changed, 42 insertions, 0 deletions
diff --git a/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/install b/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/install new file mode 100644 index 0000000..2d8e757 --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/install @@ -0,0 +1,3 @@ +foo.in /etc/init.d/ +README /etc/init.d/ +skeleton /etc/init.d/ diff --git a/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/links b/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/links new file mode 100644 index 0000000..a3bfd32 --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/links @@ -0,0 +1 @@ +etc/init.d/foo etc/init.d/bar diff --git a/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/rules b/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/rules new file mode 100755 index 0000000..cacd977 --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_fixperms: + dh_fixperms + chmod -x debian/init.d-script-registration/etc/init.d/README + chmod -x debian/init.d-script-registration/etc/init.d/skeleton diff --git a/t/recipes/checks/init-d/init.d-script-registration/build-spec/fill-values b/t/recipes/checks/init-d/init.d-script-registration/build-spec/fill-values new file mode 100644 index 0000000..4ee8bc0 --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: init.d-script-registration +Description: Test tags related to the registration of init scripts diff --git a/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/README b/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/README new file mode 100644 index 0000000..09dd11b --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/README @@ -0,0 +1 @@ +Just a dummy file (normally with instructions), not an init script at all! diff --git a/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/foo.in b/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/foo.in new file mode 100644 index 0000000..9445298 --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/foo.in @@ -0,0 +1,18 @@ +#!/bin/sh -e + +. /lib/lsb/init-functions + +case "$1" in + start) + ;; + stop) + ;; + reload) + ;; + restart|force-reload) + ;; + status) + ;; + *) + ;; +esac diff --git a/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/skeleton b/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/skeleton new file mode 100644 index 0000000..5984f06 --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/build-spec/orig/skeleton @@ -0,0 +1,2 @@ +The skeleton file looks like an init script, but we don't want to check it +like an init script. diff --git a/t/recipes/checks/init-d/init.d-script-registration/eval/desc b/t/recipes/checks/init-d/init.d-script-registration/eval/desc new file mode 100644 index 0000000..611bad5 --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/eval/desc @@ -0,0 +1,2 @@ +Testname: init.d-script-registration +Check: init-d diff --git a/t/recipes/checks/init-d/init.d-script-registration/eval/hints b/t/recipes/checks/init-d/init.d-script-registration/eval/hints new file mode 100644 index 0000000..cc784f9 --- /dev/null +++ b/t/recipes/checks/init-d/init.d-script-registration/eval/hints @@ -0,0 +1,3 @@ +init.d-script-registration (binary): script-in-etc-init.d-not-registered-via-update-rc.d [etc/init.d/foo.in] +init.d-script-registration (binary): script-in-etc-init.d-not-registered-via-update-rc.d [etc/init.d/bar] +init.d-script-registration (binary): init.d-script-missing-lsb-section [etc/init.d/foo.in] |