diff options
Diffstat (limited to '')
28 files changed, 160 insertions, 0 deletions
diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/clean b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/clean new file mode 100644 index 0000000..8f76e67 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/clean @@ -0,0 +1 @@ +man/ diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/control.in b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/control.in new file mode 100644 index 0000000..c105cba --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends}, + gawk:any, mawk:any, php5:any, python2:any, python3:any, + ruby:any +Description: [% $description %] + 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. diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/install b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/install new file mode 100644 index 0000000..0486c9a --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/install @@ -0,0 +1 @@ +*-script usr/bin/ diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/manpages b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/manpages new file mode 100644 index 0000000..bf519d7 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/manpages @@ -0,0 +1 @@ +man/*.1 diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/rules b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/rules new file mode 100755 index 0000000..7cbf8b1 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_build: + mkdir man + for FILE in *-script ; do \ + sed s/@SCRIPT@/$$FILE/g script.pod | \ + pod2man --name="$$(echo "$$FILE" | tr a-z A-Z )" \ + --section=1 > man/$$FILE.1 ; \ + done diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/fill-values b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/fill-values new file mode 100644 index 0000000..2c7ad7a --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: scripts-missing-dep-fp +Description: Check F-P missing dep on various script interpreters diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/python2-script b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/python2-script new file mode 100755 index 0000000..21fdd57 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/python2-script @@ -0,0 +1,4 @@ +#!/usr/bin/python2 + +# whatever + diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/python3-script b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/python3-script new file mode 100755 index 0000000..607e68d --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/python3-script @@ -0,0 +1,4 @@ +#!/usr/bin/python3 + +# whatever + diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/script.pod b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/script.pod new file mode 100644 index 0000000..8ffa2d0 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/build-spec/orig/script.pod @@ -0,0 +1,18 @@ +=head1 NAME + +@SCRIPT@ - Cool script to do stuff written in some script language. + +=head1 SYNOPSIS + +@SCRIPT@ --cool-argument + +=head1 DESCRIPTION + +This script is very awesome and does something you do not even know +you need. + +=head1 AUTHOR + +I made this + + diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/eval/desc b/t/recipes/checks/scripts/scripts-missing-dep-fp/eval/desc new file mode 100644 index 0000000..4d74cd6 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/eval/desc @@ -0,0 +1,5 @@ +Testname: scripts-missing-dep-fp +Test-Against: + python2-script-but-no-python2-dep + python3-script-but-no-python3-dep +Check: scripts diff --git a/t/recipes/checks/scripts/scripts-missing-dep-fp/eval/hints b/t/recipes/checks/scripts/scripts-missing-dep-fp/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep-fp/eval/hints diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/clean b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/clean new file mode 100644 index 0000000..8f76e67 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/clean @@ -0,0 +1 @@ +man/ diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/install b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/install new file mode 100644 index 0000000..0486c9a --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/install @@ -0,0 +1 @@ +*-script usr/bin/ diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/manpages b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/manpages new file mode 100644 index 0000000..bf519d7 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/manpages @@ -0,0 +1 @@ +man/*.1 diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/postinst b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/postinst new file mode 100644 index 0000000..0c43c2e --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +if false ; then + adduser some user lalal + update-inetd some stuff + update-fonts-alias blah + update-fonts-dir blah + update-fonts-scale blah +fi + +#DEBHELPER# + diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/rules b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/rules new file mode 100755 index 0000000..7cbf8b1 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_build: + mkdir man + for FILE in *-script ; do \ + sed s/@SCRIPT@/$$FILE/g script.pod | \ + pod2man --name="$$(echo "$$FILE" | tr a-z A-Z )" \ + --section=1 > man/$$FILE.1 ; \ + done diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/fill-values b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/fill-values new file mode 100644 index 0000000..6889e1b --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: scripts-missing-dep +Description: Check missing dep on various script interpreters diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/gawk-script b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/gawk-script new file mode 100755 index 0000000..b66729e --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/gawk-script @@ -0,0 +1,3 @@ +#!/usr/bin/gawk -f + +# do something. diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/mawk-script b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/mawk-script new file mode 100755 index 0000000..fbb3316 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/mawk-script @@ -0,0 +1,3 @@ +#!/usr/bin/mawk -f + +# do something. diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/php-script b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/php-script new file mode 100755 index 0000000..fc77cb9 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/php-script @@ -0,0 +1,4 @@ +#!/usr/bin/php +<?php + echo "Hallo\n"; +?> diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/python2-script b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/python2-script new file mode 100755 index 0000000..21fdd57 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/python2-script @@ -0,0 +1,4 @@ +#!/usr/bin/python2 + +# whatever + diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/python3-script b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/python3-script new file mode 100755 index 0000000..607e68d --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/python3-script @@ -0,0 +1,4 @@ +#!/usr/bin/python3 + +# whatever + diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/ruby-script b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/ruby-script new file mode 100755 index 0000000..4700685 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/ruby-script @@ -0,0 +1,3 @@ +#!/usr/bin/ruby + +# do something. diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/script.pod b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/script.pod new file mode 100644 index 0000000..8ffa2d0 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/script.pod @@ -0,0 +1,18 @@ +=head1 NAME + +@SCRIPT@ - Cool script to do stuff written in some script language. + +=head1 SYNOPSIS + +@SCRIPT@ --cool-argument + +=head1 DESCRIPTION + +This script is very awesome and does something you do not even know +you need. + +=head1 AUTHOR + +I made this + + diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/tclsh-script b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/tclsh-script new file mode 100755 index 0000000..2e6707a --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/tclsh-script @@ -0,0 +1,3 @@ +#!/usr/bin/tclsh + +# do something. diff --git a/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/wish-script b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/wish-script new file mode 100755 index 0000000..5a2cd12 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/build-spec/orig/wish-script @@ -0,0 +1,3 @@ +#!/usr/bin/wish + +# do something. diff --git a/t/recipes/checks/scripts/scripts-missing-dep/eval/desc b/t/recipes/checks/scripts/scripts-missing-dep/eval/desc new file mode 100644 index 0000000..9a46d04 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/eval/desc @@ -0,0 +1,2 @@ +Testname: scripts-missing-dep +Check: scripts diff --git a/t/recipes/checks/scripts/scripts-missing-dep/eval/hints b/t/recipes/checks/scripts/scripts-missing-dep/eval/hints new file mode 100644 index 0000000..f76dd5b --- /dev/null +++ b/t/recipes/checks/scripts/scripts-missing-dep/eval/hints @@ -0,0 +1,14 @@ +scripts-missing-dep (binary): wish-script-but-no-wish-dep /usr/bin/wish (does not satisfy wish:any | tk:any | tk8.3:any | tk8.4:any | tk8.5:any | tk8.6:any) [usr/bin/wish-script] +scripts-missing-dep (binary): tclsh-script-but-no-tclsh-dep /usr/bin/tclsh (does not satisfy tclsh:any | tcl:any | tcl8.3:any | tcl8.4:any | tcl8.5:any | tcl8.6:any) [usr/bin/tclsh-script] +scripts-missing-dep (binary): ruby-script-but-no-ruby-dep /usr/bin/ruby (does not satisfy ruby:any) [usr/bin/ruby-script] +scripts-missing-dep (binary): python3-script-but-no-python3-dep /usr/bin/python3 (does not satisfy python3:any | python3-minimal:any) [usr/bin/python3-script] +scripts-missing-dep (binary): python2-script-but-no-python2-dep /usr/bin/python2 (does not satisfy python2:any | python2-minimal:any) [usr/bin/python2-script] +scripts-missing-dep (binary): php-script-but-no-php-cli-dep /usr/bin/php (does not satisfy php-cli:any) [usr/bin/php-script] +scripts-missing-dep (binary): mawk-script-but-no-mawk-dep /usr/bin/mawk (does not satisfy mawk:any) [usr/bin/mawk-script] +scripts-missing-dep (binary): maintainer-script-needs-depends-on-xfonts-utils update-fonts-scale (does not satisfy xfonts-utils) [postinst:10] +scripts-missing-dep (binary): maintainer-script-needs-depends-on-xfonts-utils update-fonts-dir (does not satisfy xfonts-utils) [postinst:9] +scripts-missing-dep (binary): maintainer-script-needs-depends-on-xfonts-utils update-fonts-alias (does not satisfy xfonts-utils) [postinst:8] +scripts-missing-dep (binary): maintainer-script-needs-depends-on-update-inetd update-inetd (does not satisfy update-inetd | inet-superserver | openbsd-inetd | inetutils-inetd | rlinetd | xinetd) [postinst:7] +scripts-missing-dep (binary): maintainer-script-needs-depends-on-adduser adduser (does not satisfy adduser) [postinst:6] +scripts-missing-dep (binary): maintainer-script-interpreter /bin/sh [postinst] +scripts-missing-dep (binary): gawk-script-but-no-gawk-dep /usr/bin/gawk (does not satisfy gawk:any) [usr/bin/gawk-script] |