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

[SCM] Debian package checker branch, master, updated. 2.4.3-70-g92844ef



The following commit has been merged in the master branch:
commit 92844ef5e16f6607f837b32a8b0a97e1c5784be0
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Dec 28 22:44:46 2010 +0100

    Some symbols-file tests.

diff --git a/t/COVERAGE b/t/COVERAGE
index a4380f5..b209807 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -394,8 +394,6 @@ shared-libs shlib-with-executable-bit
 shared-libs shlibs-declares-dependency-on-other-package
 shared-libs symbols-declared-but-not-shlib
 shared-libs symbols-declares-dependency-on-other-package
-shared-libs symbols-file-contains-current-version-with-debian-revision
-shared-libs symbols-file-contains-debian-revision
 shared-libs syntax-error-in-symbols-file
 shared-libs udeb-postinst-must-not-call-ldconfig
 shared-libs unknown-meta-field-in-symbols-file
@@ -568,8 +566,6 @@ libbaz
   shlib-missing-in-symbols-control-file
   shlib-with-executable-bit
   shlibs-declares-dependency-on-other-package
-  symbols-file-contains-current-version-with-debian-revision
-  symbols-file-contains-debian-revision
   unused-shlib-entry-in-control-file
 
 maintainer-scripts
diff --git a/t/tests/shared-libs-unversioned/debian/debian/control.in b/t/tests/shared-libs-symbols-file/debian/debian/control.in
similarity index 90%
copy from t/tests/shared-libs-unversioned/debian/debian/control.in
copy to t/tests/shared-libs-symbols-file/debian/debian/control.in
index b59e74b..7b15dd1 100644
--- a/t/tests/shared-libs-unversioned/debian/debian/control.in
+++ b/t/tests/shared-libs-symbols-file/debian/debian/control.in
@@ -5,8 +5,8 @@ Maintainer: {$author}
 Standards-Version: {$standards_version}
 Build-Depends: debhelper (>= 7)
 
-Package: libfoo
-Architecture: {$architecture}
+Package: libfoo1
+Architecture: any
 Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
 Description: {$description}
  This is a test package designed to exercise some feature or tag of
diff --git a/t/tests/shared-libs-symbols-file/debian/debian/symbols b/t/tests/shared-libs-symbols-file/debian/debian/symbols
new file mode 100644
index 0000000..4088c6a
--- /dev/null
+++ b/t/tests/shared-libs-symbols-file/debian/debian/symbols
@@ -0,0 +1,3 @@
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0-1
+ energy@Base 0.9-1
diff --git a/t/tests/shared-libs-symbols-file/desc b/t/tests/shared-libs-symbols-file/desc
new file mode 100644
index 0000000..c178973
--- /dev/null
+++ b/t/tests/shared-libs-symbols-file/desc
@@ -0,0 +1,8 @@
+Testname: shared-libs-symbols-file
+Sequence: 6000
+Version: 1.0-1
+Type: non-native
+Description: Test checks related to symbols files
+Test-For: 
+ symbols-file-contains-current-version-with-debian-revision
+ symbols-file-contains-debian-revision
diff --git a/t/tests/shared-libs-symbols-file/tags b/t/tests/shared-libs-symbols-file/tags
new file mode 100644
index 0000000..80e7e0e
--- /dev/null
+++ b/t/tests/shared-libs-symbols-file/tags
@@ -0,0 +1,2 @@
+E: libfoo1: symbols-file-contains-current-version-with-debian-revision on symbol e@Base
+W: libfoo1: symbols-file-contains-debian-revision on symbol energy@Base
diff --git a/t/tests/shared-libs-symbols-file/upstream/Makefile b/t/tests/shared-libs-symbols-file/upstream/Makefile
new file mode 100644
index 0000000..d2af7a3
--- /dev/null
+++ b/t/tests/shared-libs-symbols-file/upstream/Makefile
@@ -0,0 +1,19 @@
+CC=gcc
+CFLAGS=-Wall -Winline -O2 -fPIC
+
+SONAME:= libfoo.so.1
+
+all: libfoo.so.1.0.1
+
+libfoo.so.1.0.1: code.o
+	$(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
+
+clean:
+	rm -f *.a *.o *.so* *.sho
+
+install: all
+	install -m 0755 -d $(DESTDIR)/usr/lib
+	install -m 0644 *.so* $(DESTDIR)/usr/lib
+	ln -s libfoo.so.1.0.1 $(DESTDIR)/usr/lib/$(SONAME)
+
+.PHONY: install clean
diff --git a/t/tests/shared-libs-symbols-file/upstream/code.c b/t/tests/shared-libs-symbols-file/upstream/code.c
new file mode 100644
index 0000000..1eb449e
--- /dev/null
+++ b/t/tests/shared-libs-symbols-file/upstream/code.c
@@ -0,0 +1,10 @@
+#include <math.h>
+
+double e(double x){
+  return exp(x);
+}
+
+double energy(double mass){
+  return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+

-- 
Debian package checker


Reply to: