[SCM] Debian package checker branch, master, updated. 2.4.3-95-g469c25a
The following commit has been merged in the master branch:
commit 4d6ee3bc7dc2cee8e33c5998bedd8a4d43ae298e
Author: Niels Thykier <niels@thykier.net>
Date: Sat Jan 1 21:21:30 2011 +0100
Added test for missing shlibs file.
diff --git a/t/COVERAGE b/t/COVERAGE
index f3c9d7a..8df2968 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -160,7 +160,6 @@ shared-libs dev-pkg-without-shlib-symlink
shared-libs ldconfig-symlink-before-shlib-in-deb
shared-libs ldconfig-symlink-is-not-a-symlink
shared-libs ldconfig-symlink-referencing-wrong-file
-shared-libs no-shlibs-control-file
shared-libs non-dev-pkg-with-shlib-symlink
shared-libs pkg-has-shlibs-control-file-but-no-actual-shared-libs
shared-libs postinst-has-useless-call-to-ldconfig
diff --git a/t/tests/shared-libs-symbols-file/upstream/Makefile b/t/tests/shared-libs-control-file/debian/Makefile
similarity index 90%
copy from t/tests/shared-libs-symbols-file/upstream/Makefile
copy to t/tests/shared-libs-control-file/debian/Makefile
index ab3b59b..d9249ef 100644
--- a/t/tests/shared-libs-symbols-file/upstream/Makefile
+++ b/t/tests/shared-libs-control-file/debian/Makefile
@@ -1,7 +1,7 @@
CC=gcc
CFLAGS=-Wall -Winline -O2 -fPIC
-SONAMES:= libfoo.so.1 libsym.so.1 libesym.so.1
+SONAMES:= libnoshf.so.1
LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
all: $(LIBFILES)
diff --git a/t/tests/shared-libs-symbols-file/upstream/code.c b/t/tests/shared-libs-control-file/debian/code.c
similarity index 100%
copy from t/tests/shared-libs-symbols-file/upstream/code.c
copy to t/tests/shared-libs-control-file/debian/code.c
diff --git a/t/tests/cruft-crlf-eols/debian/debian/control.in b/t/tests/shared-libs-control-file/debian/debian/control.in
similarity index 74%
copy from t/tests/cruft-crlf-eols/debian/debian/control.in
copy to t/tests/shared-libs-control-file/debian/debian/control.in
index b2cd55a..e3387ff 100644
--- a/t/tests/cruft-crlf-eols/debian/debian/control.in
+++ b/t/tests/shared-libs-control-file/debian/debian/control.in
@@ -1,14 +1,16 @@
-Source: {$srcpkg}
-Priority: extra
-Section: {$section}
-Maintainer: {$author}
-Standards-Version: {$standards_version}
-Build-Depends: debhelper (>= 7.0.50~)
-
-Package: {$srcpkg}
-Architecture: {$architecture}
-Depends: $\{shlibs: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.
+Source: {$srcpkg}
+Priority: extra
+Section: libs
+Maintainer: {$author}
+Standards-Version: {$standards_version}
+Build-Depends: debhelper (>= 7.0.50~)
+
+Package: libnoshf1
+Architecture: any
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: {$description} (no shlibs file)
+ 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.
+ .
+ Checks for missing shlibs file.
diff --git a/t/tests/shared-libs-control-file/debian/debian/libnoshf1.symbols b/t/tests/shared-libs-control-file/debian/debian/libnoshf1.symbols
new file mode 100644
index 0000000..fef945e
--- /dev/null
+++ b/t/tests/shared-libs-control-file/debian/debian/libnoshf1.symbols
@@ -0,0 +1,3 @@
+libnoshf.so.1 libnoshf1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/tests/md5sums-missing/debian/debian/rules b/t/tests/shared-libs-control-file/debian/debian/rules
similarity index 54%
copy from t/tests/md5sums-missing/debian/debian/rules
copy to t/tests/shared-libs-control-file/debian/debian/rules
index 9d8ce3a..43525f4 100644
--- a/t/tests/md5sums-missing/debian/debian/rules
+++ b/t/tests/shared-libs-control-file/debian/debian/rules
@@ -1,10 +1,8 @@
#!/usr/bin/make -f
-FIND ?= find
-
%:
dh $@
override_dh_builddeb:
- $(FIND) debian/ -name 'md5sums' -delete
+ rm -f debian/libnoshf1/DEBIAN/shlibs
dh_builddeb
diff --git a/t/tests/shared-libs-control-file/desc b/t/tests/shared-libs-control-file/desc
new file mode 100644
index 0000000..33a1fcf
--- /dev/null
+++ b/t/tests/shared-libs-control-file/desc
@@ -0,0 +1,6 @@
+Testname: shared-libs-control-file
+Sequence: 6000
+Version: 1.0
+Description: Test checks related to shlibs files
+Test-For:
+ no-shlibs-control-file
diff --git a/t/tests/shared-libs-control-file/tags b/t/tests/shared-libs-control-file/tags
new file mode 100644
index 0000000..e7cadd7
--- /dev/null
+++ b/t/tests/shared-libs-control-file/tags
@@ -0,0 +1 @@
+E: libnoshf1: no-shlibs-control-file usr/lib/libnoshf.so.1.0.1
--
Debian package checker
Reply to: