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

[SCM] Debian package checker branch, master, updated. 2.5.6-124-gdd27fe2



The following commit has been merged in the master branch:
commit dd27fe2be78464dfd555bf5d04c559e34e57774f
Author: Niels Thykier <niels@thykier.net>
Date:   Mon Apr 23 16:28:45 2012 +0200

    t: Add 7 new test cases
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/t/COVERAGE b/t/COVERAGE
index f4e97ad..7aef2b5 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,5 +1,5 @@
-Last generated 2012-04-22
-Coverage: 804/964 (83.40%), w. legacy tests: 909/964 (94.29%)
+Last generated 2012-04-23
+Coverage: 811/964 (84.13%), w. legacy tests: 916/964 (95.02%)
 
 The following tags are not tested by the test suite:
 
@@ -59,14 +59,6 @@ menus doc-base-file-syntax-error
 menus executable-in-usr-share-docbase
 menus executable-menu-file
 
-po-debconf missing-potfiles-in
-po-debconf missing-templates-pot
-po-debconf not-using-po-debconf
-
-shared-libs ldconfig-symlink-is-not-a-symlink
-shared-libs ldconfig-symlink-referencing-wrong-file
-shared-libs pkg-has-shlibs-control-file-but-no-actual-shared-libs
-shared-libs shlib-with-bad-permissions
 shared-libs shlib-with-executable-stack
 shared-libs shlib-without-PT_GNU_STACK-section
 
diff --git a/t/tests/po-debconf-missing/debian/debian/config b/t/tests/po-debconf-missing/debian/debian/config
new file mode 100755
index 0000000..240b7f8
--- /dev/null
+++ b/t/tests/po-debconf-missing/debian/debian/config
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get po-debconf-general/test || true
+db_get po-debconf-general/test-2 || true
+
diff --git a/t/tests/po-debconf-missing/debian/debian/po/en.po b/t/tests/po-debconf-missing/debian/debian/po/en.po
new file mode 100644
index 0000000..dbf7e69
--- /dev/null
+++ b/t/tests/po-debconf-missing/debian/debian/po/en.po
@@ -0,0 +1,17 @@
+# Woohoo, translations - here to suppress a "no-complete-translation"
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: po-debconf-missing\n"
+"Report-Msgid-Bugs-To: po-debconf-missing@packages.debian.org\n"
+"POT-Creation-Date: 2009-08-24 19:24+0200\n"
+"PO-Revision-Date: 2010-09-03 23:51+0200\n"
+"Last-Translator: Lintian Maintainers <debian-lint-maint@lists.debian.org>\n"
+"Language-Team: Lintian Maintainers <debian-lint-maint@lists.debian.org>\n"
+"Language: en\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms:  nplurals=2; plural=(n != 1);\n"
+
+
diff --git a/t/tests/po-debconf-missing/debian/debian/postinst b/t/tests/po-debconf-missing/debian/debian/postinst
new file mode 100644
index 0000000..0ae7a18
--- /dev/null
+++ b/t/tests/po-debconf-missing/debian/debian/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
diff --git a/t/tests/po-debconf-missing/debian/debian/templates b/t/tests/po-debconf-missing/debian/debian/templates
new file mode 100644
index 0000000..1d685bc
--- /dev/null
+++ b/t/tests/po-debconf-missing/debian/debian/templates
@@ -0,0 +1,10 @@
+Template: po-debconf-general/test
+Type: string
+Default: foo
+Description: This is a string question used for testing:
+
+Template: po-debconf-general/test-2
+Type: string
+Default: bar
+Description: This is a second string question:
+ This one ensures no 100% translation of the template.
diff --git a/t/tests/po-debconf-missing/desc b/t/tests/po-debconf-missing/desc
new file mode 100644
index 0000000..2fe76c6
--- /dev/null
+++ b/t/tests/po-debconf-missing/desc
@@ -0,0 +1,7 @@
+Testname: po-debconf-missing
+Sequence: 6000
+Version: 1.0
+Description: Test for missing po-debconf files
+Test-For:
+ missing-potfiles-in
+ missing-templates-pot
diff --git a/t/tests/po-debconf-missing/tags b/t/tests/po-debconf-missing/tags
new file mode 100644
index 0000000..d3f7c9b
--- /dev/null
+++ b/t/tests/po-debconf-missing/tags
@@ -0,0 +1,2 @@
+W: po-debconf-missing source: missing-potfiles-in
+W: po-debconf-missing source: missing-templates-pot
diff --git a/t/tests/shared-libs-exec-bit/debian/Makefile b/t/tests/shared-libs-exec-bit/debian/Makefile
index 68d5863..0997289 100644
--- a/t/tests/shared-libs-exec-bit/debian/Makefile
+++ b/t/tests/shared-libs-exec-bit/debian/Makefile
@@ -1,7 +1,7 @@
 CC=gcc
 CFLAGS+= -fPIC
 
-SONAMES:= libexecbit.so.1
+SONAMES:= libexecbit.so.1 libbadperm.so.1
 LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
 
 all: $(LIBFILES)
@@ -14,7 +14,8 @@ clean:
 
 install: all
 	install -m 0755 -d $(DESTDIR)/usr/lib
-	install -m 0755 *.so* $(DESTDIR)/usr/lib
+	install -m 0755 *execbit*.so* $(DESTDIR)/usr/lib
+	install -m 0600 *badperm*.so* $(DESTDIR)/usr/lib
 	for FILE in $(SONAMES) ; do \
 	    ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
 	done
diff --git a/t/tests/shared-libs-exec-bit/desc b/t/tests/shared-libs-exec-bit/desc
index 2566dc0..eb2a9c8 100644
--- a/t/tests/shared-libs-exec-bit/desc
+++ b/t/tests/shared-libs-exec-bit/desc
@@ -2,5 +2,6 @@ Testname: shared-libs-exec-bit
 Sequence: 6000
 Version: 1.0
 Description: Test checks related to libs with exec bit
-Test-For: 
+Test-For:
+ shlib-with-bad-permissions
  shlib-with-executable-bit
diff --git a/t/tests/shared-libs-exec-bit/tags b/t/tests/shared-libs-exec-bit/tags
index b5dc545..92dce1b 100644
--- a/t/tests/shared-libs-exec-bit/tags
+++ b/t/tests/shared-libs-exec-bit/tags
@@ -1 +1,3 @@
 E: libexecbit1: shlib-with-executable-bit usr/lib/libexecbit.so.1.0.1 0755
+W: libexecbit1: non-standard-file-perm usr/lib/libbadperm.so.1.0.1 0600 != 0644
+W: libexecbit1: shlib-with-bad-permissions usr/lib/libbadperm.so.1.0.1 0600
diff --git a/t/tests/shared-libs-non-dev-symlink/debian/debian/control.in b/t/tests/shared-libs-ldconfig-not-symlink/debian/debian/control.in
similarity index 100%
copy from t/tests/shared-libs-non-dev-symlink/debian/debian/control.in
copy to t/tests/shared-libs-ldconfig-not-symlink/debian/debian/control.in
diff --git a/t/tests/shared-libs-dev-symlink/debian/debian/libfoo1.symbols b/t/tests/shared-libs-ldconfig-not-symlink/debian/debian/libfoo1.symbols
similarity index 100%
copy from t/tests/shared-libs-dev-symlink/debian/debian/libfoo1.symbols
copy to t/tests/shared-libs-ldconfig-not-symlink/debian/debian/libfoo1.symbols
diff --git a/t/tests/shared-libs-ldconfig-not-symlink/desc b/t/tests/shared-libs-ldconfig-not-symlink/desc
new file mode 100644
index 0000000..0b5272e
--- /dev/null
+++ b/t/tests/shared-libs-ldconfig-not-symlink/desc
@@ -0,0 +1,6 @@
+Testname: shared-libs-ldconfig-not-symlink
+Sequence: 6000
+Version: 1.0-1
+Type: non-native
+Description: Test ldconfig symlink not being a symlink
+Test-For: ldconfig-symlink-is-not-a-symlink
diff --git a/t/tests/shared-libs-ldconfig-not-symlink/tags b/t/tests/shared-libs-ldconfig-not-symlink/tags
new file mode 100644
index 0000000..aac47ae
--- /dev/null
+++ b/t/tests/shared-libs-ldconfig-not-symlink/tags
@@ -0,0 +1 @@
+E: libfoo1: ldconfig-symlink-is-not-a-symlink usr/lib/libfoo.so.1.0.1 usr/lib/libfoo.so.1
diff --git a/t/tests/shared-libs-ldconfig-not-symlink/upstream/Makefile b/t/tests/shared-libs-ldconfig-not-symlink/upstream/Makefile
new file mode 100644
index 0000000..2e3306e
--- /dev/null
+++ b/t/tests/shared-libs-ldconfig-not-symlink/upstream/Makefile
@@ -0,0 +1,20 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libfoo.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+	$(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+	rm -f *.a *.o *.so*
+
+install: all
+	install -m 0755 -d $(DESTDIR)/usr/lib
+	install -m 0644 *.so* $(DESTDIR)/usr/lib
+	install -T -m 0644 *.so* $(DESTDIR)/usr/lib/libfoo.so.1
+
+.PHONY: install clean
diff --git a/t/tests/shared-libs-control-file/debian/code.c b/t/tests/shared-libs-ldconfig-not-symlink/upstream/code.c
similarity index 100%
copy from t/tests/shared-libs-control-file/debian/code.c
copy to t/tests/shared-libs-ldconfig-not-symlink/upstream/code.c
diff --git a/t/tests/shared-libs-non-dev-symlink/debian/debian/control.in b/t/tests/shared-libs-ldconfig-wrong-file/debian/debian/control.in
similarity index 100%
copy from t/tests/shared-libs-non-dev-symlink/debian/debian/control.in
copy to t/tests/shared-libs-ldconfig-wrong-file/debian/debian/control.in
diff --git a/t/tests/shared-libs-dev-symlink/debian/debian/libfoo1.symbols b/t/tests/shared-libs-ldconfig-wrong-file/debian/debian/libfoo1.symbols
similarity index 100%
copy from t/tests/shared-libs-dev-symlink/debian/debian/libfoo1.symbols
copy to t/tests/shared-libs-ldconfig-wrong-file/debian/debian/libfoo1.symbols
diff --git a/t/tests/shared-libs-ldconfig-wrong-file/desc b/t/tests/shared-libs-ldconfig-wrong-file/desc
new file mode 100644
index 0000000..2b180f4
--- /dev/null
+++ b/t/tests/shared-libs-ldconfig-wrong-file/desc
@@ -0,0 +1,6 @@
+Testname: shared-libs-ldconfig-wrong-file
+Sequence: 6000
+Version: 1.0-1
+Type: non-native
+Description: Test ldconfig symlink with wrong target
+Test-For: ldconfig-symlink-referencing-wrong-file
diff --git a/t/tests/shared-libs-ldconfig-wrong-file/tags b/t/tests/shared-libs-ldconfig-wrong-file/tags
new file mode 100644
index 0000000..88d1d86
--- /dev/null
+++ b/t/tests/shared-libs-ldconfig-wrong-file/tags
@@ -0,0 +1 @@
+E: libfoo1: ldconfig-symlink-referencing-wrong-file usr/lib/libfoo.so.1 -> some-other-file instead of libfoo.so.1.0.1
diff --git a/t/tests/shared-libs-ldconfig-wrong-file/upstream/Makefile b/t/tests/shared-libs-ldconfig-wrong-file/upstream/Makefile
new file mode 100644
index 0000000..373cbd2
--- /dev/null
+++ b/t/tests/shared-libs-ldconfig-wrong-file/upstream/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libfoo.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+	$(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+	rm -f *.a *.o *.so*
+
+install: all
+	install -m 0755 -d $(DESTDIR)/usr/lib
+	install -m 0644 *.so* $(DESTDIR)/usr/lib
+	echo "Strauss: Also Sprach Zarathustra" > \
+		 $(DESTDIR)/usr/lib/some-other-file
+	ln -s some-other-file $(DESTDIR)/usr/lib/libfoo.so.1
+
+.PHONY: install clean
diff --git a/t/tests/shared-libs-control-file/debian/code.c b/t/tests/shared-libs-ldconfig-wrong-file/upstream/code.c
similarity index 100%
copy from t/tests/shared-libs-control-file/debian/code.c
copy to t/tests/shared-libs-ldconfig-wrong-file/upstream/code.c
diff --git a/t/tests/shared-libs-non-dev-symlink/debian/debian/control.in b/t/tests/shared-libs-no-shared-lib/debian/debian/control.in
similarity index 100%
copy from t/tests/shared-libs-non-dev-symlink/debian/debian/control.in
copy to t/tests/shared-libs-no-shared-lib/debian/debian/control.in
diff --git a/t/tests/shared-libs-no-shared-lib/debian/debian/libfoo1.install b/t/tests/shared-libs-no-shared-lib/debian/debian/libfoo1.install
new file mode 100644
index 0000000..1d2eaab
--- /dev/null
+++ b/t/tests/shared-libs-no-shared-lib/debian/debian/libfoo1.install
@@ -0,0 +1 @@
+some-lib usr/lib
diff --git a/t/tests/shared-libs-no-shared-lib/debian/debian/libfoo1.shlibs b/t/tests/shared-libs-no-shared-lib/debian/debian/libfoo1.shlibs
new file mode 100644
index 0000000..f233a64
--- /dev/null
+++ b/t/tests/shared-libs-no-shared-lib/debian/debian/libfoo1.shlibs
@@ -0,0 +1 @@
+libfoo 1 libfoo1 (>= 1.0)
diff --git a/t/tests/shared-libs-dev-symlink/debian/debian/libfoo1.symbols b/t/tests/shared-libs-no-shared-lib/debian/debian/libfoo1.symbols
similarity index 100%
copy from t/tests/shared-libs-dev-symlink/debian/debian/libfoo1.symbols
copy to t/tests/shared-libs-no-shared-lib/debian/debian/libfoo1.symbols
diff --git a/t/tests/shared-libs-no-shared-lib/debian/some-lib b/t/tests/shared-libs-no-shared-lib/debian/some-lib
new file mode 100644
index 0000000..5707e12
--- /dev/null
+++ b/t/tests/shared-libs-no-shared-lib/debian/some-lib
@@ -0,0 +1 @@
+Aloah world
diff --git a/t/tests/shared-libs-no-shared-lib/desc b/t/tests/shared-libs-no-shared-lib/desc
new file mode 100644
index 0000000..79c0eff
--- /dev/null
+++ b/t/tests/shared-libs-no-shared-lib/desc
@@ -0,0 +1,5 @@
+Testname: shared-libs-no-shared-lib
+Sequence: 6000
+Version: 1.0
+Description: Test checks shlib without SO
+Test-For: pkg-has-shlibs-control-file-but-no-actual-shared-libs
diff --git a/t/tests/shared-libs-no-shared-lib/tags b/t/tests/shared-libs-no-shared-lib/tags
new file mode 100644
index 0000000..bea79b7
--- /dev/null
+++ b/t/tests/shared-libs-no-shared-lib/tags
@@ -0,0 +1 @@
+E: libfoo1: pkg-has-shlibs-control-file-but-no-actual-shared-libs

-- 
Debian package checker


Reply to: