[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.2.5-57-g6bf7673



The following commit has been merged in the master branch:
commit f3341db350c810ce3ff6ea3b055cc759559837b9
Author: Russ Allbery <rra@debian.org>
Date:   Sat Feb 21 20:32:31 2009 -0800

    Add a check for various description tags to the new test suite

diff --git a/t/COVERAGE b/t/COVERAGE
index ffa35c6..308f789 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,4 +1,4 @@
-Last generated 2009-02-21
+Last generated 2009-02-22
 
 The following tags are not tested by the test suite:
 
@@ -345,23 +345,6 @@ debhelper uses-dh-python-with-no-pycompat
 debian-readme readme-debian-contains-debmake-default-email-address
 debian-readme readme-debian-mentions-usr-doc
 
-description description-contains-dh-make-perl-template
-description description-contains-duplicated-word
-description description-contains-homepage
-description description-contains-invalid-control-statement
-description description-contains-tabs
-description description-is-debmake-template
-description description-starts-with-leading-spaces
-description description-starts-with-package-name
-description description-synopsis-is-duplicated
-description description-synopsis-is-empty
-description description-synopsis-might-not-be-phrased-properly
-description description-too-long
-description extended-description-is-empty
-description extended-description-line-too-long
-description possible-unindented-list-in-extended-description
-description spelling-error-in-description
-
 etcfiles file-in-etc-not-marked-as-conffile
 
 fields alternates-not-allowed
diff --git a/t/tests/description-general/debian/debian/control.in b/t/tests/description-general/debian/debian/control.in
new file mode 100644
index 0000000..c9ae429
--- /dev/null
+++ b/t/tests/description-general/debian/debian/control.in
@@ -0,0 +1,77 @@
+Source: {$srcpkg}
+Priority: extra
+Section: {$section}
+Maintainer: {$author}
+Standards-Version: 3.8.0
+Build-Depends: debhelper (>= 7)
+
+Package: {$srcpkg}
+Architecture: {$architecture}
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: {$srcpkg} 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...
+
+Package: {$srcpkg}-2
+Architecture: {$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.
+
+Package: {$srcpkg}-3
+Architecture: {$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
+
+Package: {$srcpkg}-4
+Architecture: {$architecture}
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: some Lintian test package
+ some Lintian test package
+ .
+ Some mroe stuff about this test package.
+ .
+ Homepage: <http://lintian.debian.org/>
+
+Package: {$srcpkg}-ends-etc
+Architecture: {$architecture}
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: This description ends, etc.
+ This is another real Lintian bug which has been discovered with this
+ testset.
+ .
+ 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: {$srcpkg}-dummy
+Architecture: {$architecture}
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: test package (transitional package)
+ Transitional packages can have short long descriptions.
+
+Package: {$srcpkg}-empty
+Architecture: {$architecture}
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: test package with empty extended description
diff --git a/t/tests/description-general/desc b/t/tests/description-general/desc
new file mode 100644
index 0000000..b931f02
--- /dev/null
+++ b/t/tests/description-general/desc
@@ -0,0 +1,22 @@
+Testname: description-general
+Sequence: 6000
+Version: 1.0
+Description: Tests of various description tags
+Test-For:
+ description-contains-dh-make-perl-template
+ description-contains-duplicated-word
+ description-contains-homepage
+ description-contains-invalid-control-statement
+ description-contains-tabs
+ description-is-debmake-template
+ description-starts-with-leading-spaces
+ description-starts-with-package-name
+ description-synopsis-is-duplicated
+ description-synopsis-is-empty
+ description-synopsis-might-not-be-phrased-properly
+ description-too-long
+ extended-description-is-empty
+ extended-description-line-too-long
+ possible-unindented-list-in-extended-description
+ spelling-error-in-description
+ using-first-person-in-description
diff --git a/t/tests/description-general/tags b/t/tests/description-general/tags
new file mode 100644
index 0000000..bf8131e
--- /dev/null
+++ b/t/tests/description-general/tags
@@ -0,0 +1,22 @@
+E: description-general-2: description-contains-tabs
+E: description-general-2: description-too-long
+E: description-general-3: description-synopsis-is-empty
+E: description-general-4: description-synopsis-is-duplicated
+E: description-general-empty: extended-description-is-empty
+E: description-general: description-contains-invalid-control-statement
+E: description-general: description-contains-tabs
+E: description-general: description-is-debmake-template
+E: description-general: description-starts-with-package-name
+I: description-general-3: using-first-person-in-description line 5: I
+W: description-general-2: description-starts-with-leading-spaces
+W: description-general-2: possible-unindented-list-in-extended-description
+W: description-general-3: extended-description-line-too-long
+W: description-general-4: description-contains-homepage
+W: description-general-4: spelling-error-in-description mroe more
+W: description-general: description-contains-dh-make-perl-template
+W: description-general: description-contains-duplicated-word All all all
+W: description-general: description-contains-duplicated-word The the
+W: description-general: description-contains-duplicated-word matched matched matched
+W: description-general: description-contains-duplicated-word of of
+W: description-general: description-contains-duplicated-word these these
+W: description-general: description-synopsis-might-not-be-phrased-properly

-- 
Debian package checker


Reply to: