[SCM] Debian package checker branch, master, updated. 2.5.0-51-g902ea97
The following commit has been merged in the master branch:
commit 902ea9766d9982b7c0a269d1b9c16d55410d1289
Author: Niels Thykier <niels@thykier.net>
Date: Tue Jun 14 14:45:58 2011 +0200
Added test for missing-depends-line
diff --git a/t/COVERAGE b/t/COVERAGE
index 42f14ec..c57cf57 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,4 +1,4 @@
-Last generated 2011-06-02
+Last generated 2011-06-14
The following tags are not tested by the test suite:
@@ -167,7 +167,6 @@ binaries binary-with-bad-dynamic-table
binaries debug-file-should-use-detached-symbols
binaries missing-dependency-on-libc
binaries missing-dependency-on-perlapi
-binaries missing-depends-line
binaries package-name-doesnt-match-sonames
binaries shared-lib-without-dependency-information
binaries statically-linked-binary
@@ -470,7 +469,6 @@ libbaz
debug-package-should-be-priority-extra
ldconfig-symlink-missing-for-shlib
missing-dependency-on-perlapi
- missing-depends-line
package-name-doesnt-match-sonames
postinst-should-not-set-usr-doc-link
diff --git a/t/tests/binaries-missing-depends/debian/Makefile b/t/tests/binaries-missing-depends/debian/Makefile
new file mode 100644
index 0000000..ed44e4a
--- /dev/null
+++ b/t/tests/binaries-missing-depends/debian/Makefile
@@ -0,0 +1,12 @@
+all:
+ gcc -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c
+
+install:
+ # install it under the correct triplet directory
+ install -d $(DESTDIR)/usr/lib/
+ install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2
+
+clean distclean:
+ rm -f libbasic.so.2
+
+check test:
diff --git a/t/tests/binaries-multiarch-missing-pre-deps/debian/basic.c b/t/tests/binaries-missing-depends/debian/basic.c
similarity index 100%
copy from t/tests/binaries-multiarch-missing-pre-deps/debian/basic.c
copy to t/tests/binaries-missing-depends/debian/basic.c
diff --git a/t/tests/binaries-multiarch-missing-pre-deps/debian/debian/control.in b/t/tests/binaries-missing-depends/debian/debian/control.in
similarity index 78%
copy from t/tests/binaries-multiarch-missing-pre-deps/debian/debian/control.in
copy to t/tests/binaries-missing-depends/debian/debian/control.in
index a3c6506..9f1b2a7 100644
--- a/t/tests/binaries-multiarch-missing-pre-deps/debian/debian/control.in
+++ b/t/tests/binaries-missing-depends/debian/debian/control.in
@@ -1,16 +1,15 @@
Source: {$srcpkg}
Priority: extra
-Section: libs
+Section: devel
Maintainer: {$author}
Standards-Version: {$standards_version}
-Build-Depends: debhelper (>= 7.0.50~)
+Build-Depends: debhelper (>= 7.0.50~), perl
Package: libbasic2
Architecture: any
-Depends: $\{misc:Depends\}, $\{shlibs:Depends\}
+Depends: $\{misc:Depends\}, $\{shlib: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. It may
be an empty package.
-
diff --git a/t/tests/binaries-multiarch-missing-pre-deps/debian/debian/libbasic2.symbols b/t/tests/binaries-missing-depends/debian/debian/libbasic2.symbols
similarity index 100%
copy from t/tests/binaries-multiarch-missing-pre-deps/debian/debian/libbasic2.symbols
copy to t/tests/binaries-missing-depends/debian/debian/libbasic2.symbols
diff --git a/t/tests/md5sums-missing/debian/debian/rules b/t/tests/binaries-missing-depends/debian/debian/rules
similarity index 54%
copy from t/tests/md5sums-missing/debian/debian/rules
copy to t/tests/binaries-missing-depends/debian/debian/rules
index 9d8ce3a..8081438 100644
--- a/t/tests/md5sums-missing/debian/debian/rules
+++ b/t/tests/binaries-missing-depends/debian/debian/rules
@@ -1,10 +1,8 @@
#!/usr/bin/make -f
-FIND ?= find
-
%:
dh $@
override_dh_builddeb:
- $(FIND) debian/ -name 'md5sums' -delete
+ sed -i '/Depends:/ d' debian/libbasic2/DEBIAN/control
dh_builddeb
diff --git a/t/tests/binaries-missing-depends/desc b/t/tests/binaries-missing-depends/desc
new file mode 100644
index 0000000..5b92be6
--- /dev/null
+++ b/t/tests/binaries-missing-depends/desc
@@ -0,0 +1,6 @@
+Testname: binaries-missing-depends
+Sequence: 6000
+Version: 1.0
+Description: Test for missing depends line
+Architecture: any
+Test-For: missing-depends-line
diff --git a/t/tests/binaries-missing-depends/tags b/t/tests/binaries-missing-depends/tags
new file mode 100644
index 0000000..c388664
--- /dev/null
+++ b/t/tests/binaries-missing-depends/tags
@@ -0,0 +1 @@
+W: libbasic2: missing-depends-line
--
Debian package checker
Reply to: