diff options
Diffstat (limited to 't/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options')
4 files changed, 33 insertions, 0 deletions
diff --git a/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/build-spec/debian/postinst b/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/build-spec/debian/postinst new file mode 100644 index 0000000..11ee280 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/build-spec/debian/postinst @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +if false +then + # Bad + update-inetd --group foo + update-inetd --pattern --add foo + update-inetd --add --pattern foo + + # Good + update-inetd --add --group foo + update-inetd --group --add foo + update-inetd --pattern foo +fi + +#DEBHELPER# diff --git a/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/build-spec/fill-values b/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/build-spec/fill-values new file mode 100644 index 0000000..c00f52c --- /dev/null +++ b/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: scripts-maintainer-script-invalid-update-inetd-options +Description: Check for incorrect calls to update-inetd diff --git a/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/eval/desc b/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/eval/desc new file mode 100644 index 0000000..88974b3 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/eval/desc @@ -0,0 +1,2 @@ +Testname: scripts-maintainer-script-invalid-update-inetd-options +Check: scripts diff --git a/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/eval/hints b/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/eval/hints new file mode 100644 index 0000000..a2703a5 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-maintainer-script-invalid-update-inetd-options/eval/hints @@ -0,0 +1,10 @@ +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-needs-depends-on-update-inetd update-inetd (does not satisfy update-inetd | inet-superserver | openbsd-inetd | inetutils-inetd | rlinetd | xinetd) [postinst:9] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-needs-depends-on-update-inetd update-inetd (does not satisfy update-inetd | inet-superserver | openbsd-inetd | inetutils-inetd | rlinetd | xinetd) [postinst:8] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-needs-depends-on-update-inetd update-inetd (does not satisfy update-inetd | inet-superserver | openbsd-inetd | inetutils-inetd | rlinetd | xinetd) [postinst:15] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-needs-depends-on-update-inetd update-inetd (does not satisfy update-inetd | inet-superserver | openbsd-inetd | inetutils-inetd | rlinetd | xinetd) [postinst:14] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-needs-depends-on-update-inetd update-inetd (does not satisfy update-inetd | inet-superserver | openbsd-inetd | inetutils-inetd | rlinetd | xinetd) [postinst:13] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-needs-depends-on-update-inetd update-inetd (does not satisfy update-inetd | inet-superserver | openbsd-inetd | inetutils-inetd | rlinetd | xinetd) [postinst:10] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-interpreter /bin/sh [postinst] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-has-invalid-update-inetd-options (--pattern with --add) [postinst:9] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-has-invalid-update-inetd-options (--pattern with --add) [postinst:10] +scripts-maintainer-script-invalid-update-inetd-options (binary): maintainer-script-has-invalid-update-inetd-options (--group without --add) [postinst:8] |