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

[SCM] Debian package checker branch, master, updated. 2.5.10-27-ga7f0931



The following commit has been merged in the master branch:
commit a7f093116eb21b403455f1eb68bd571c4723d92a
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Jul 12 22:05:13 2012 +0200

    t: Extend shared-libs-symbols-file test
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/t/COVERAGE b/t/COVERAGE
index 0896c92..b36d138 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,5 +1,5 @@
 Last generated 2012-07-12
-Coverage: 816/964 (84.65%), w. legacy tests: 921/964 (95.54%)
+Coverage: 819/964 (84.96%), w. legacy tests: 921/964 (95.54%)
 
 The following tags are not tested by the test suite:
 
@@ -166,12 +166,9 @@ scripts maintainer-script-removes-device-files
 scripts script-not-executable
 scripts update-alternatives-remove-called-in-postrm
 
-shared-libs duplicate-entry-in-symbols-control-file
-shared-libs invalid-template-id-in-symbols-file
 shared-libs sharedobject-in-library-directory-missing-soname
 shared-libs symbols-declared-but-not-shlib
 shared-libs symbols-declares-dependency-on-other-package
-shared-libs syntax-error-in-symbols-file
 shared-libs udeb-postinst-must-not-call-ldconfig
 shared-libs unknown-meta-field-in-symbols-file
 shared-libs unused-shlib-entry-in-symbols-control-file
@@ -245,13 +242,10 @@ debug
   changelog-file-missing-in-native-package
   changelog-should-not-mention-nmu
   debug-file-should-use-detached-symbols
-  duplicate-entry-in-symbols-control-file
-  invalid-template-id-in-symbols-file
   shared-lib-without-dependency-information
   sharedobject-in-library-directory-missing-soname
   symbols-declared-but-not-shlib
   symbols-declares-dependency-on-other-package
-  syntax-error-in-symbols-file
   unknown-meta-field-in-symbols-file
   unused-shlib-entry-in-symbols-control-file
 
diff --git a/t/tests/shared-libs-symbols-file/debian/debian/control.in b/t/tests/shared-libs-symbols-file/debian/debian/control.in
index bb4c38d..773ff09 100644
--- a/t/tests/shared-libs-symbols-file/debian/debian/control.in
+++ b/t/tests/shared-libs-symbols-file/debian/debian/control.in
@@ -13,7 +13,7 @@ Description: {$description} (deb revision)
  Lintian.  It is part of the Lintian test suite and may do very odd
  things.  It should not be installed like a regular package.
  .
- Checks for deb revisions in symbols files.
+ Checks for deb revisions in symbols files and other brokenness.
 
 Package: libsym1
 Architecture: any
diff --git a/t/tests/shared-libs-symbols-file/debian/debian/libfoo1.symbols b/t/tests/shared-libs-symbols-file/debian/debian/libfoo1.symbols
index 4088c6a..7b91609 100644
--- a/t/tests/shared-libs-symbols-file/debian/debian/libfoo1.symbols
+++ b/t/tests/shared-libs-symbols-file/debian/debian/libfoo1.symbols
@@ -1,3 +1,10 @@
 libfoo.so.1 libfoo1 #MINVER#
  e@Base 1.0-1
  energy@Base 0.9-1
+
+# duplicate
+# - e@Base has a bad index
+# - energy@Base is a syntax error (missing version)
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0 1
+ energy@Base
diff --git a/t/tests/shared-libs-symbols-file/debian/debian/rules b/t/tests/shared-libs-symbols-file/debian/debian/rules
index ec70acb..3b8860d 100644
--- a/t/tests/shared-libs-symbols-file/debian/debian/rules
+++ b/t/tests/shared-libs-symbols-file/debian/debian/rules
@@ -9,4 +9,7 @@ override_dh_builddeb:
 	# is a non-empty useless symbols file!
 	echo "# Aloha!" > debian/libesym1/DEBIAN/symbols
 	echo "# Aloha!" > debian/nolibrary/DEBIAN/symbols
+	# ... they are also too smart to install slightly broken
+	# variants of symbols files
+	cp -a debian/libfoo1.symbols debian/libfoo1/DEBIAN/symbols
 	dh_builddeb
diff --git a/t/tests/shared-libs-symbols-file/desc b/t/tests/shared-libs-symbols-file/desc
index 0f1f66e..4da695c 100644
--- a/t/tests/shared-libs-symbols-file/desc
+++ b/t/tests/shared-libs-symbols-file/desc
@@ -4,8 +4,11 @@ Version: 1.0-1
 Type: non-native
 Description: Test checks related to symbols files
 Test-For: 
+ duplicate-entry-in-symbols-control-file
+ invalid-template-id-in-symbols-file
  no-symbols-control-file
  pkg-has-symbols-control-file-but-no-shared-libs
  shlib-missing-in-symbols-control-file
  symbols-file-contains-current-version-with-debian-revision
  symbols-file-contains-debian-revision
+ syntax-error-in-symbols-file
diff --git a/t/tests/shared-libs-symbols-file/tags b/t/tests/shared-libs-symbols-file/tags
index 83c4d7d..3ff0e5e 100644
--- a/t/tests/shared-libs-symbols-file/tags
+++ b/t/tests/shared-libs-symbols-file/tags
@@ -1,4 +1,7 @@
+E: libfoo1: duplicate-entry-in-symbols-control-file libfoo 1
+E: libfoo1: invalid-template-id-in-symbols-file 9
 E: libfoo1: symbols-file-contains-current-version-with-debian-revision on symbol e@Base
+E: libfoo1: syntax-error-in-symbols-file 10
 E: nolibrary: pkg-has-symbols-control-file-but-no-shared-libs
 I: libsym1: no-symbols-control-file usr/lib/libsym.so.1.0.1
 W: libesym1: shlib-missing-in-symbols-control-file libesym 1 for usr/lib/libesym.so.1.0.1

-- 
Debian package checker


Reply to: