diff options
Diffstat (limited to '')
4 files changed, 190 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/description/description-general/build-spec/debian/control.in b/t/recipes/checks/fields/description/description-general/build-spec/debian/control.in new file mode 100644 index 0000000..1fffbc6 --- /dev/null +++ b/t/recipes/checks/fields/description/description-general/build-spec/debian/control.in @@ -0,0 +1,155 @@ +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} +Description: [% $source %] is a package which tests lintian's description checks + missing + The the synopsis should not start with the package's name. Moreover, + the long description + should + not + contain tabs. + .control statements are not allowed as well. + . + All all all of of these these should be matched matched matched + . + This description was automagically extracted from the module by dh-make-perl + . + No, not really... (dummy) + +Package: [% $source %]-2 +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Don't use tabs in the synopsis and restrict yourself to less than 80 characters, otherwise Lintian will complain + Oh, and don't start the long description with spaces. + Now here comes a list: + - which is + - unfortunately + - not correctly indented. (dummy) + +Package: [% $source %]-3 +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: + There should really be a synopsis. + The line in an extended description should be less than 80 characters, otherwise you'll get + a Lintian warning. + . + And the old man said "he he is the one!" + "No, I am am not", he replied (dummy) + +Package: [% $source %]-4 +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: some Lintian test package + some Lintian test package + . + Some mroe stuff about this debian test package. (dummy) + . + Homepage: <http://lintian.debian.org/> + +Package: [% $source %]-short +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Short + The description is too short. One word is not enough. + Second line to avoid the warning. + . + And a third. (dummy) + +Package: foo-duplicate +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: foo duplicate + The description is the same as the package name. + A real description would be appreciated + . + And a third. (dummy) + +Package: foo-bar-duplicate +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: foo bar duplicate + The description is the same as the package name. + A real description would be appreciated + . + And a third. (dummy) + +Package: [% $source %]-dummy +Section: oldlibs +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test package (transitional package) + Transitional packages can have short long descriptions. + +Package: [% $source %]-empty +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test package with empty extended description (dummy) + +Package: [% $source %]-utf8-long +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test package with UTF-8 description (“héh锓héh锓héh锓héhé”) + Not really too long: “héh锓héh锓héh锓héh锓héh锓héhé” + . + 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. + +Package: [% $source %]-not-dup +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test package with duplicated words that aren't + Lossless JPEG is defined in ITU-T T.81, ISO/IEC IS 10918-1. + Contain the strings " link to ", " -> ", or ": ". + This is train A, a particularly fast train. + . + "hallo" or "evening" or "farewell" should not trigger a duplicate + "or or" warning. Also "or" "or" does not trigger the warning + either. + . + 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. + +Package: [% $source %]-syn-article +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: the synopsis starts with an article + A good synopsis should start not start with "a", "an" and "the" + according to developer-reference 6.2.2. + . + 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. + +Package: [% $source %]-syn-spelling +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test for spelling - debian developement + Some Lintian test package. + . + Some more stuff about this Debian test package. (dummy) + . + Duplicate: Duplicate (false positive due to colon) + . + FOO (FOO Owsome Object) is a recursive acronym. + +Package: [% $source %]-control-statements +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test for overly-indented control statements + Some Lintian test package. + . + Some more stuff about this Debian test package. (dummy) diff --git a/t/recipes/checks/fields/description/description-general/build-spec/fill-values b/t/recipes/checks/fields/description/description-general/build-spec/fill-values new file mode 100644 index 0000000..e3f3295 --- /dev/null +++ b/t/recipes/checks/fields/description/description-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: description-general +Description: Tests of various description tags diff --git a/t/recipes/checks/fields/description/description-general/eval/desc b/t/recipes/checks/fields/description/description-general/eval/desc new file mode 100644 index 0000000..96d4df7 --- /dev/null +++ b/t/recipes/checks/fields/description/description-general/eval/desc @@ -0,0 +1,4 @@ +Testname: description-general +Test-Against: + synopsis-is-a-sentence +Check: fields/description diff --git a/t/recipes/checks/fields/description/description-general/eval/hints b/t/recipes/checks/fields/description/description-general/eval/hints new file mode 100644 index 0000000..b5cafb3 --- /dev/null +++ b/t/recipes/checks/fields/description/description-general/eval/hints @@ -0,0 +1,28 @@ +foo-duplicate (binary): description-is-pkg-name foo duplicate +foo-bar-duplicate (binary): description-is-pkg-name foo bar duplicate +description-general-syn-spelling (binary): spelling-error-in-description-synopsis developement development +description-general-syn-spelling (binary): capitalization-error-in-description-synopsis debian Debian +description-general-syn-article (binary): description-synopsis-starts-with-article +description-general-short (binary): description-too-short Short +description-general-empty (binary): extended-description-is-empty +description-general-control-statements (binary): description-contains-invalid-control-statement line 2 +description-general-4 (binary): spelling-error-in-description mroe more +description-general-4 (binary): description-synopsis-is-duplicated line 1 +description-general-4 (binary): description-contains-homepage line 5 +description-general-4 (binary): capitalization-error-in-description debian Debian +description-general-3 (binary): using-first-person-in-description line 6: I +description-general-3 (binary): extended-description-line-too-long line 2 +description-general-3 (binary): description-synopsis-is-empty +description-general-2 (binary): synopsis-too-long +description-general-2 (binary): possible-unindented-list-in-extended-description line 5 +description-general-2 (binary): description-starts-with-leading-spaces line 1 +description-general-2 (binary): description-contains-tabs +description-general (binary): spelling-error-in-description these these (duplicate word) these +description-general (binary): spelling-error-in-description of of (duplicate word) of +description-general (binary): spelling-error-in-description matched matched (duplicate word) matched +description-general (binary): spelling-error-in-description all all (duplicate word) all +description-general (binary): description-starts-with-package-name +description-general (binary): description-is-debmake-template line 1 +description-general (binary): description-contains-tabs line 3 +description-general (binary): description-contains-invalid-control-statement line 7 +description-general (binary): description-contains-dh-make-perl-template line 11 |