diff options
Diffstat (limited to 't/recipes/checks/fields/package')
10 files changed, 66 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/package/fields-general-bad/build-spec/DEBIAN/control.in b/t/recipes/checks/fields/package/fields-general-bad/build-spec/DEBIAN/control.in new file mode 100644 index 0000000..fec0c25 --- /dev/null +++ b/t/recipes/checks/fields/package/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/package/fields-general-bad/build-spec/doc/changelog.in b/t/recipes/checks/fields/package/fields-general-bad/build-spec/doc/changelog.in new file mode 100644 index 0000000..dc4c24e --- /dev/null +++ b/t/recipes/checks/fields/package/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/package/fields-general-bad/build-spec/fill-values b/t/recipes/checks/fields/package/fields-general-bad/build-spec/fill-values new file mode 100644 index 0000000..a18e752 --- /dev/null +++ b/t/recipes/checks/fields/package/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/package/fields-general-bad/build-spec/root/usr/lib/lintian/some-file b/t/recipes/checks/fields/package/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/package/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/package/fields-general-bad/eval/desc b/t/recipes/checks/fields/package/fields-general-bad/eval/desc new file mode 100644 index 0000000..f1471a4 --- /dev/null +++ b/t/recipes/checks/fields/package/fields-general-bad/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-general-bad +Check: fields/package diff --git a/t/recipes/checks/fields/package/fields-general-bad/eval/hints b/t/recipes/checks/fields/package/fields-general-bad/eval/hints new file mode 100644 index 0000000..5f6671f --- /dev/null +++ b/t/recipes/checks/fields/package/fields-general-bad/eval/hints @@ -0,0 +1,2 @@ +fields-general-BAD? (binary): package-not-lowercase +fields-general-BAD? (binary): bad-package-name diff --git a/t/recipes/checks/fields/package/fields-unusual-doc-package-name/build-spec/debian/control.in b/t/recipes/checks/fields/package/fields-unusual-doc-package-name/build-spec/debian/control.in new file mode 100644 index 0000000..5a8f490 --- /dev/null +++ b/t/recipes/checks/fields/package/fields-unusual-doc-package-name/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 %]-docs +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/package/fields-unusual-doc-package-name/build-spec/fill-values b/t/recipes/checks/fields/package/fields-unusual-doc-package-name/build-spec/fill-values new file mode 100644 index 0000000..7defdcb --- /dev/null +++ b/t/recipes/checks/fields/package/fields-unusual-doc-package-name/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: fields-unusual-doc-package-name +Package-Architecture: all +Description: Check for -docs packages diff --git a/t/recipes/checks/fields/package/fields-unusual-doc-package-name/eval/desc b/t/recipes/checks/fields/package/fields-unusual-doc-package-name/eval/desc new file mode 100644 index 0000000..ec610fc --- /dev/null +++ b/t/recipes/checks/fields/package/fields-unusual-doc-package-name/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-unusual-doc-package-name +Check: fields/package diff --git a/t/recipes/checks/fields/package/fields-unusual-doc-package-name/eval/hints b/t/recipes/checks/fields/package/fields-unusual-doc-package-name/eval/hints new file mode 100644 index 0000000..ff4d810 --- /dev/null +++ b/t/recipes/checks/fields/package/fields-unusual-doc-package-name/eval/hints @@ -0,0 +1 @@ +fields-unusual-doc-package-name-docs (binary): unusual-documentation-package-name |