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

[SCM] Debian package checker branch, master, updated. 2.5.10-80-gc1558ec



The following commit has been merged in the master branch:
commit c1558ec8586b2e48d548c736b081cea330f4de67
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Jul 22 23:39:46 2012 +0200

    t: Add tests for the last nmu tags
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/t/COVERAGE b/t/COVERAGE
index 47ae612..58d293f 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,6 +1,6 @@
 Last generated 2012-07-22
-Coverage (Tags): 839/962 (87.21%), w. legacy tests: 935/962 (97.19%)
-Coverage (Checks): 31/41 (75.61%), w. legacy tests: 35/41 (85.37%)
+Coverage (Tags): 843/962 (87.63%), w. legacy tests: 935/962 (97.19%)
+Coverage (Checks): 32/41 (78.05%), w. legacy tests: 35/41 (85.37%)
 
 The following tags are not tested by the test suite:
 
@@ -126,11 +126,6 @@ menus menu-method-should-include-menu-h
 menus postinst-does-not-call-updatemenus
 menus postrm-does-not-call-updatemenus
 
-nmu changelog-should-mention-qa
-nmu changelog-should-not-mention-nmu
-nmu orphaned-package-should-not-have-uploaders
-nmu qa-upload-has-incorrect-version-number
-
 po-debconf newer-debconf-templates
 po-debconf unknown-encoding-in-po-file
 
@@ -209,7 +204,6 @@ debconf
 
 debug
   binary-with-bad-dynamic-table
-  changelog-should-not-mention-nmu
   debug-file-should-use-detached-symbols
   sharedobject-in-library-directory-missing-soname
   symbols-declared-but-not-shlib
@@ -235,7 +229,6 @@ foo++
 libbaz
 
 maintainer-scripts
-  changelog-should-mention-qa
   config-does-not-load-confmodule
   debconf-config-not-executable
   init.d-script-not-included-in-package
@@ -243,14 +236,12 @@ maintainer-scripts
   maintainer-script-ignores-errors
   maintainer-script-removes-device-files
   no-debconf-templates
-  orphaned-package-should-not-have-uploaders
   output-of-updaterc.d-not-redirected-to-dev-null
   postinst-does-not-load-confmodule
   postrm-contains-additional-updaterc.d-calls
   postrm-does-not-call-updaterc.d-for-init.d-script
   preinst-calls-updaterc.d
   prerm-calls-updaterc.d
-  qa-upload-has-incorrect-version-number
   update-alternatives-remove-called-in-postrm
 
 relations
diff --git a/t/templates/debs/skel/changelog.in b/t/tests/nmu-not-a-nmu/debian/debian/changelog.in
similarity index 87%
copy from t/templates/debs/skel/changelog.in
copy to t/tests/nmu-not-a-nmu/debian/debian/changelog.in
index f6d86c0..a4ee47b 100644
--- a/t/templates/debs/skel/changelog.in
+++ b/t/tests/nmu-not-a-nmu/debian/debian/changelog.in
@@ -1,5 +1,6 @@
 {$srcpkg} ({$version}) unstable; urgency=low
 
+  * Non-maintainer upload.
   * Lintian Test Suite.
   * Test: {$testname}
 
diff --git a/t/tests/nmu-not-a-nmu/desc b/t/tests/nmu-not-a-nmu/desc
new file mode 100644
index 0000000..4823762
--- /dev/null
+++ b/t/tests/nmu-not-a-nmu/desc
@@ -0,0 +1,6 @@
+Testname: nmu-not-a-nmu
+Sequence: 6000
+Version: 1.0
+Description: Test for MU declared as NMU
+Author: Niels Thykier <niels@thykier.net>
+Test-For: changelog-should-not-mention-nmu
diff --git a/t/tests/nmu-not-a-nmu/tags b/t/tests/nmu-not-a-nmu/tags
new file mode 100644
index 0000000..8dee846
--- /dev/null
+++ b/t/tests/nmu-not-a-nmu/tags
@@ -0,0 +1 @@
+W: nmu-not-a-nmu source: changelog-should-not-mention-nmu
diff --git a/t/templates/debs/skel/changelog.in b/t/tests/nmu-qa-upload/debian/debian/changelog.in
similarity index 77%
copy from t/templates/debs/skel/changelog.in
copy to t/tests/nmu-qa-upload/debian/debian/changelog.in
index f6d86c0..8bc9ac2 100644
--- a/t/templates/debs/skel/changelog.in
+++ b/t/tests/nmu-qa-upload/debian/debian/changelog.in
@@ -5,4 +5,4 @@
 
   * Suppress "should close ITP bug" messages.  (Closes: #123456)
 
- -- {$author}  {$date}
+ -- Niels Thykier <niels@thykier.net>  {$date}
diff --git a/t/tests/unpack-slashes-in-field-name/debian/debian/control.in b/t/tests/nmu-qa-upload/debian/debian/control.in
similarity index 91%
copy from t/tests/unpack-slashes-in-field-name/debian/debian/control.in
copy to t/tests/nmu-qa-upload/debian/debian/control.in
index 287e98b..585c68d 100644
--- a/t/tests/unpack-slashes-in-field-name/debian/debian/control.in
+++ b/t/tests/nmu-qa-upload/debian/debian/control.in
@@ -2,14 +2,13 @@ Source: {$srcpkg}
 Priority: extra
 Section: {$section}
 Maintainer: {$author}
+Uploaders: Niels Thykier <niels@thykier.net>
 Standards-Version: {$standards_version}
 Build-Depends: debhelper (>= 9)
-XS-../foo: bar
 
 Package: {$srcpkg}
 Architecture: {$architecture}
 Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
-XB-../bar: moo
 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
diff --git a/t/tests/nmu-qa-upload/desc b/t/tests/nmu-qa-upload/desc
new file mode 100644
index 0000000..2b61cab
--- /dev/null
+++ b/t/tests/nmu-qa-upload/desc
@@ -0,0 +1,9 @@
+Testname: nmu-qa-upload
+Sequence: 6000
+Version: 1.0+nmu1
+Description: Test for QA upload issues
+Author: Debian QA Group <packages@qa.debian.org>
+Test-For:
+ changelog-should-mention-qa
+ orphaned-package-should-not-have-uploaders
+ qa-upload-has-incorrect-version-number
diff --git a/t/tests/nmu-qa-upload/tags b/t/tests/nmu-qa-upload/tags
new file mode 100644
index 0000000..c7cb940
--- /dev/null
+++ b/t/tests/nmu-qa-upload/tags
@@ -0,0 +1,3 @@
+E: nmu-qa-upload source: orphaned-package-should-not-have-uploaders
+W: nmu-qa-upload source: changelog-should-mention-qa
+W: nmu-qa-upload source: qa-upload-has-incorrect-version-number 1.0+nmu1

-- 
Debian package checker


Reply to: