diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/fields/architecture | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/fields/architecture')
36 files changed, 166 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/architecture/fields-architecture/build-spec/fill-values b/t/recipes/checks/fields/architecture/fields-architecture/build-spec/fill-values new file mode 100644 index 0000000..4b08188 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-architecture/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: fields-architecture +Description: Tests for the Architecture field diff --git a/t/recipes/checks/fields/architecture/fields-architecture/build-spec/orig/Makefile b/t/recipes/checks/fields/architecture/fields-architecture/build-spec/orig/Makefile new file mode 100644 index 0000000..6df56c1 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-architecture/build-spec/orig/Makefile @@ -0,0 +1,5 @@ +all: + +install: + install -d -m 0755 "$(DESTDIR)/usr/lib/package" + echo "Hallo World" > "$(DESTDIR)/usr/lib/package/some-file" diff --git a/t/recipes/checks/fields/architecture/fields-architecture/eval/desc b/t/recipes/checks/fields/architecture/fields-architecture/eval/desc new file mode 100644 index 0000000..30c6300 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-architecture/eval/desc @@ -0,0 +1,4 @@ +Testname: fields-architecture +Test-Architectures: linux-any any-i386 kfreebsd-any hurd-any +Test-Against: unknown-architecture +Check: fields/architecture diff --git a/t/recipes/checks/fields/architecture/fields-architecture/eval/hints b/t/recipes/checks/fields/architecture/fields-architecture/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-architecture/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/fields/architecture/fields-aspell/build-spec/debian/control.in b/t/recipes/checks/fields/architecture/fields-aspell/build-spec/debian/control.in new file mode 100644 index 0000000..8e5563d --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-aspell/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: localization +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: aspell-en +Architecture: [% $package_architecture %] +Depends: ${misc:Depends}, ${shlibs: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/fields/architecture/fields-aspell/build-spec/fill-values b/t/recipes/checks/fields/architecture/fields-aspell/build-spec/fill-values new file mode 100644 index 0000000..7407fff --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-aspell/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: fields-aspell +Description: Tests for Architecture of an aspell package +Package-Architecture: any diff --git a/t/recipes/checks/fields/architecture/fields-aspell/eval/desc b/t/recipes/checks/fields/architecture/fields-aspell/eval/desc new file mode 100644 index 0000000..d00e972 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-aspell/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-aspell +Check: fields/architecture diff --git a/t/recipes/checks/fields/architecture/fields-aspell/eval/hints b/t/recipes/checks/fields/architecture/fields-aspell/eval/hints new file mode 100644 index 0000000..e8ebf8c --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-aspell/eval/hints @@ -0,0 +1 @@ +aspell-en (binary): aspell-package-not-arch-all diff --git a/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/debian/control.in b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/debian/control.in new file mode 100644 index 0000000..f6880a6 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: doc +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %]-doc +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/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/fill-values b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/fill-values new file mode 100644 index 0000000..50380b3 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: fields-doc-pkg-wrong-arch +Package-Architecture: any +Description: Check for doc pkg not being arch all diff --git a/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/orig/Makefile b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/orig/Makefile new file mode 100644 index 0000000..6df56c1 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/build-spec/orig/Makefile @@ -0,0 +1,5 @@ +all: + +install: + install -d -m 0755 "$(DESTDIR)/usr/lib/package" + echo "Hallo World" > "$(DESTDIR)/usr/lib/package/some-file" diff --git a/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/eval/desc b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/eval/desc new file mode 100644 index 0000000..180288a --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-doc-pkg-wrong-arch +Check: fields/architecture diff --git a/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/eval/hints b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/eval/hints new file mode 100644 index 0000000..27f1abf --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-doc-pkg-wrong-arch/eval/hints @@ -0,0 +1 @@ +fields-doc-pkg-wrong-arch-doc (binary): documentation-package-not-architecture-independent diff --git a/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/DEBIAN/control.in b/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/DEBIAN/control.in new file mode 100644 index 0000000..fec0c25 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/DEBIAN/control.in @@ -0,0 +1,17 @@ +Package: fields-general-BAD? +Source: [% $source %] +Version: 1.0? +Architecture: weird i386 amd64 +Maintainer: [% $author %] +Section: +Priority: is + weird +Unknown-Field: Hallo World +Depends: other-package (>= 1.0?), another-package (>< 1.0) +Conflicts: somepkg | anotherpkg +Recommends: g++ (>= s4.1) +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/fields/architecture/fields-general-bad/build-spec/doc/changelog.in b/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/doc/changelog.in new file mode 100644 index 0000000..dc4c24e --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/doc/changelog.in @@ -0,0 +1,17 @@ +[% $testname %] ([% $version %]) [% $distribution %]; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $date %] + +[% $testname %] ([% $prev_version %]) [% $distribution %]; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $prev_date %] diff --git a/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/fill-values b/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/fill-values new file mode 100644 index 0000000..a18e752 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: deb +Testname: fields-general-bad +Source: fields-general-BAD? +Description: Test for package with control bad values diff --git a/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/root/usr/lib/lintian/some-file b/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/root/usr/lib/lintian/some-file new file mode 100644 index 0000000..02c9d2d --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-general-bad/build-spec/root/usr/lib/lintian/some-file @@ -0,0 +1 @@ +Hi, I could totally be architecture dependent. diff --git a/t/recipes/checks/fields/architecture/fields-general-bad/eval/desc b/t/recipes/checks/fields/architecture/fields-general-bad/eval/desc new file mode 100644 index 0000000..92e877b --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-general-bad/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-general-bad +Check: fields/architecture diff --git a/t/recipes/checks/fields/architecture/fields-general-bad/eval/hints b/t/recipes/checks/fields/architecture/fields-general-bad/eval/hints new file mode 100644 index 0000000..b15762b --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-general-bad/eval/hints @@ -0,0 +1,2 @@ +fields-general-BAD? (binary): unknown-architecture weird +fields-general-BAD? (binary): too-many-architectures amd64 i386 weird diff --git a/t/recipes/checks/fields/architecture/fields-wildcard-binary/build-spec/DEBIAN/control.in b/t/recipes/checks/fields/architecture/fields-wildcard-binary/build-spec/DEBIAN/control.in new file mode 100644 index 0000000..f0ca8ee --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-wildcard-binary/build-spec/DEBIAN/control.in @@ -0,0 +1,11 @@ +Package: [% $source %] +Version: [% $version %] +Architecture: any-i386 +Maintainer: [% $author %] +Section: [% $section %] +Priority: optional +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/fields/architecture/fields-wildcard-binary/build-spec/fill-values b/t/recipes/checks/fields/architecture/fields-wildcard-binary/build-spec/fill-values new file mode 100644 index 0000000..9c29949 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-wildcard-binary/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: deb +Testname: fields-wildcard-binary +Description: Test for architecture wildcard in binary package diff --git a/t/recipes/checks/fields/architecture/fields-wildcard-binary/build-spec/root/usr/lib/lintian/some-file b/t/recipes/checks/fields/architecture/fields-wildcard-binary/build-spec/root/usr/lib/lintian/some-file new file mode 100644 index 0000000..02c9d2d --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-wildcard-binary/build-spec/root/usr/lib/lintian/some-file @@ -0,0 +1 @@ +Hi, I could totally be architecture dependent. diff --git a/t/recipes/checks/fields/architecture/fields-wildcard-binary/eval/desc b/t/recipes/checks/fields/architecture/fields-wildcard-binary/eval/desc new file mode 100644 index 0000000..75284d5 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-wildcard-binary/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-wildcard-binary +Check: fields/architecture diff --git a/t/recipes/checks/fields/architecture/fields-wildcard-binary/eval/hints b/t/recipes/checks/fields/architecture/fields-wildcard-binary/eval/hints new file mode 100644 index 0000000..ec598d5 --- /dev/null +++ b/t/recipes/checks/fields/architecture/fields-wildcard-binary/eval/hints @@ -0,0 +1 @@ +fields-wildcard-binary (binary): arch-wildcard-in-binary-package any-i386 diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/debian/control.in b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/debian/control.in new file mode 100644 index 0000000..1c7406a --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/debian/control.in @@ -0,0 +1,24 @@ +Source: [% $source %] +Section: [% $section %] +Priority: optional +Maintainer: [% $author %] +Build-Depends: [% $build_depends %] +Standards-Version: [% $standards_version %] + +Package: magic-architecture-srcpkg-ok-data +Architecture: all +Depends: ${misc:Depends} +Description: Test package for "all" plus specific arch in .dscs + 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. + +Package: magic-architecture-srcpkg-ok +Architecture: amd64 +Depends: ${misc:Depends} +Description: Test package for "all" plus specific arch in .dscs (a) + 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. + . + Architecture specific package. diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/debian/watch b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/debian/watch new file mode 100644 index 0000000..c2a8392 --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/debian/watch @@ -0,0 +1 @@ +# foo diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/fill-values b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/fill-values new file mode 100644 index 0000000..fed5016 --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: magic-architecture-srcpkg-ok +Description: Test package for "all" plus specific arch in .dscs diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/orig/README b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/orig/README new file mode 100644 index 0000000..5709e2d --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/build-spec/orig/README @@ -0,0 +1 @@ +Some upstream README diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/eval/desc b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/eval/desc new file mode 100644 index 0000000..308f0c2 --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/eval/desc @@ -0,0 +1,3 @@ +Testname: magic-architecture-srcpkg-ok +Test-Against: magic-arch-in-arch-list +Check: fields/architecture diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/eval/hints b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-ok/eval/hints diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/debian/watch b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/debian/watch new file mode 100644 index 0000000..c2a8392 --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/debian/watch @@ -0,0 +1 @@ +# foo diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/dpkg-overrides b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/dpkg-overrides new file mode 100644 index 0000000..95b9f1f --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/dpkg-overrides @@ -0,0 +1 @@ +-DArchitecture="amd64 any" diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/fill-values b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/fill-values new file mode 100644 index 0000000..3ecd9a3 --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: magic-architecture-srcpkg-wrong +Description: Test package for "any" plus specific arch in .dscs diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/orig/README b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/orig/README new file mode 100644 index 0000000..5709e2d --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/build-spec/orig/README @@ -0,0 +1 @@ +Some upstream README diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/eval/desc b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/eval/desc new file mode 100644 index 0000000..1ca7ed1 --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/eval/desc @@ -0,0 +1,2 @@ +Testname: magic-architecture-srcpkg-wrong +Check: fields/architecture diff --git a/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/eval/hints b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/eval/hints new file mode 100644 index 0000000..3a58cd8 --- /dev/null +++ b/t/recipes/checks/fields/architecture/magic-architecture-srcpkg-wrong/eval/hints @@ -0,0 +1 @@ +magic-architecture-srcpkg-wrong (source): magic-arch-in-arch-list |