diff options
Diffstat (limited to 't/recipes/checks/archive')
23 files changed, 240 insertions, 0 deletions
diff --git a/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/build-spec/fill-values b/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/build-spec/fill-values new file mode 100644 index 0000000..7121e0b --- /dev/null +++ b/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: filename-length-really-really-really-really-long-package-name +Version: 1.0.and.a.really.long.version.too-1 +Skeleton: upload-non-native +Description: General length of package file names diff --git a/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/desc b/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/desc new file mode 100644 index 0000000..4bf733d --- /dev/null +++ b/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/desc @@ -0,0 +1,2 @@ +Testname: filename-length-really-really-really-really-long-package-name +Check: archive/file/name/length diff --git a/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/hints b/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/hints new file mode 100644 index 0000000..c1a0b80 --- /dev/null +++ b/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/hints @@ -0,0 +1,6 @@ +filename-length-really-really-really-really-long-package-name (source): source-package-component-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too.orig.tar.gz +filename-length-really-really-really-really-long-package-name (source): source-package-component-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1.debian.tar.xz +filename-length-really-really-really-really-long-package-name (source): package-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1.dsc +filename-length-really-really-really-really-long-package-name (changes): package-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1_ARCHITECTURE.changes +filename-length-really-really-really-really-long-package-name (buildinfo): package-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1_ARCHITECTURE.buildinfo +filename-length-really-really-really-really-long-package-name (binary): package-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1_all.deb diff --git a/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/post-test b/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/post-test new file mode 100644 index 0000000..52f65a6 --- /dev/null +++ b/t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/post-test @@ -0,0 +1,2 @@ +s/_[[:alnum:]]*.changes$/_ARCHITECTURE.changes/ +s/_[[:alnum:]]*.buildinfo$/_ARCHITECTURE.buildinfo/ diff --git a/t/recipes/checks/archive/liberty/mismatch/fields-section-general/build-spec/debian/control.in b/t/recipes/checks/archive/liberty/mismatch/fields-section-general/build-spec/debian/control.in new file mode 100644 index 0000000..25106b7 --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/fields-section-general/build-spec/debian/control.in @@ -0,0 +1,31 @@ +Source: [% $source %] +Priority: optional +Section: contrib/[% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: all +Section: contrib/dveel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: [% $description %] (typo) + 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 a typo in its section fields. + +Package: [% $source %]-main +Architecture: all +Section: [% $section %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: [% $description %] (main) + 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 can go to main. diff --git a/t/recipes/checks/archive/liberty/mismatch/fields-section-general/build-spec/fill-values b/t/recipes/checks/archive/liberty/mismatch/fields-section-general/build-spec/fill-values new file mode 100644 index 0000000..f8cf9f7 --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/fields-section-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: fields-section-general +Description: Test for general section/area issues diff --git a/t/recipes/checks/archive/liberty/mismatch/fields-section-general/eval/desc b/t/recipes/checks/archive/liberty/mismatch/fields-section-general/eval/desc new file mode 100644 index 0000000..b374791 --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/fields-section-general/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-section-general +Check: archive/liberty/mismatch diff --git a/t/recipes/checks/archive/liberty/mismatch/fields-section-general/eval/hints b/t/recipes/checks/archive/liberty/mismatch/fields-section-general/eval/hints new file mode 100644 index 0000000..77d1d3e --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/fields-section-general/eval/hints @@ -0,0 +1 @@ +fields-section-general (source): archive-liberty-mismatch (in section for fields-section-general-main) main vs contrib [debian/control:23] diff --git a/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/changelog.in new file mode 100644 index 0000000..9a82ea7 --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/changelog.in @@ -0,0 +1,33 @@ +relations ([% $version %]) [% $distribution %]; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin <jrodin@jagor.srce.hr> Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman <dark@xs4all.nl> Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/control b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/control new file mode 100644 index 0000000..6cd1c04 --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group <packages@qa.debian.org> +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/rules b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/rules new file mode 100755 index 0000000..5027f33 --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/tmp/DEBIAN/control new file mode 100644 index 0000000..87e7fe6 --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer <lintian-maint@debian.org> +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/fill-values b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/fill-values new file mode 100644 index 0000000..7e4661b --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: legacy-relations +Source: relations +Version: 5 +Description: Legacy test "relations" diff --git a/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/desc b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/desc new file mode 100644 index 0000000..f20046e --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-relations +Check: archive/liberty/mismatch diff --git a/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/hints b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/hints new file mode 100644 index 0000000..d6aba64 --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/hints @@ -0,0 +1 @@ +relations (source): archive-liberty-mismatch (in section for relations-multiple-libs) non-free vs main [debian/control:36] diff --git a/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/post-test b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/archive/liberty/mismatch/legacy-relations/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/build-spec/debian/control.in b/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/build-spec/debian/control.in new file mode 100644 index 0000000..0d31cce --- /dev/null +++ b/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/build-spec/debian/control.in @@ -0,0 +1,17 @@ +Source: [% $source %] +Priority: optional +Section: non-free/[% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no +XS-Autobuild: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${misc:Depends} +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/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/build-spec/fill-values b/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/build-spec/fill-values new file mode 100644 index 0000000..07d27d1 --- /dev/null +++ b/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: control-file-source-upload-to-non-free-without-autobuild +Description: Check for source-only uploads to non-free without autobuild diff --git a/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/desc b/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/desc new file mode 100644 index 0000000..50ada9d --- /dev/null +++ b/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/desc @@ -0,0 +1,4 @@ +Testname: control-file-source-upload-to-non-free-without-autobuild +Check: archive/non-free/autobuild +Test-Against: + source-only-upload-to-non-free-without-autobuild diff --git a/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/hints b/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/build-spec/fill-values b/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/build-spec/fill-values new file mode 100644 index 0000000..909efef --- /dev/null +++ b/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/build-spec/fill-values @@ -0,0 +1,5 @@ +Testname: source-only-upload-to-non-free-without-autobuild +Skeleton: upload-native +Section: non-free/devel +Upload-Type: source +Description: This source-only upload to non-free will never appear in the archive diff --git a/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/desc b/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/desc new file mode 100644 index 0000000..0e2a6b5 --- /dev/null +++ b/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/desc @@ -0,0 +1,2 @@ +Testname: source-only-upload-to-non-free-without-autobuild +Check: archive/non-free/autobuild diff --git a/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/hints b/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/hints new file mode 100644 index 0000000..6615c85 --- /dev/null +++ b/t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/hints @@ -0,0 +1 @@ +source-only-upload-to-non-free-without-autobuild (source): source-only-upload-to-non-free-without-autobuild (in the source paragraph) XS-Autobuild [debian/control] |