diff options
Diffstat (limited to 't/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers')
6 files changed, 56 insertions, 0 deletions
diff --git a/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/control.in b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/control.in new file mode 100644 index 0000000..63cd49d --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/control.in @@ -0,0 +1,29 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %]-with +Architecture: all +Depends: ${misc:Depends}, init-system-helpers (>= 1.50) +Description: [% $description %] (with) + 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. + . + This package has the dependency. + +Package: [% $source %]-without +Architecture: all +Depends: ${misc:Depends} +Description: [% $description %] (without) + 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. + . + This package is missing the dependency. diff --git a/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/scripts-missing-versioned-depends-on-init-system-helpers-with.postinst b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/scripts-missing-versioned-depends-on-init-system-helpers-with.postinst new file mode 100644 index 0000000..e54396c --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/scripts-missing-versioned-depends-on-init-system-helpers-with.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +update-rc.d +update-rc.d defaults-disabled + +exit 0 diff --git a/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/scripts-missing-versioned-depends-on-init-system-helpers-without.postinst b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/scripts-missing-versioned-depends-on-init-system-helpers-without.postinst new file mode 100644 index 0000000..e54396c --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/debian/scripts-missing-versioned-depends-on-init-system-helpers-without.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +update-rc.d +update-rc.d defaults-disabled + +exit 0 diff --git a/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/fill-values b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/fill-values new file mode 100644 index 0000000..f305c81 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: scripts-missing-versioned-depends-on-init-system-helpers +Description: Test for packages that are missing init-system-helpers depends diff --git a/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/eval/desc b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/eval/desc new file mode 100644 index 0000000..708eec0 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/eval/desc @@ -0,0 +1,2 @@ +Testname: scripts-missing-versioned-depends-on-init-system-helpers +Check: scripts diff --git a/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/eval/hints b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/eval/hints new file mode 100644 index 0000000..f7162ae --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-versioned-depends-on-init-system-helpers/eval/hints @@ -0,0 +1,2 @@ +scripts-missing-versioned-depends-on-init-system-helpers-without (binary): maintainer-script-interpreter /bin/sh [postinst] +scripts-missing-versioned-depends-on-init-system-helpers-with (binary): maintainer-script-interpreter /bin/sh [postinst] |