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

[lintian] 03/03: Add test for usr file test for library



This is an automated email from the git hooks/post-receive script.

broucaries-guest pushed a commit to branch master
in repository lintian.

commit c74f39338008c1198dc5cda693bde04bb03393ce
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date:   Sun Jan 10 15:24:15 2016 +0100

    Add test for usr file test for library
    
    Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
 profiles/debian/main.profile.rej              | 10 ++++++++++
 t/tests/usrmerge-lib/debian/Makefile          | 14 ++++++++++++++
 t/tests/usrmerge-lib/debian/basic.c           |  3 +++
 t/tests/usrmerge-lib/debian/debian/control.in | 14 ++++++++++++++
 t/tests/usrmerge-lib/debian/debian/rules      |  8 ++++++++
 t/tests/usrmerge-lib/desc                     |  6 ++++++
 t/tests/usrmerge-lib/tags                     |  3 +++
 7 files changed, 58 insertions(+)

diff --git a/profiles/debian/main.profile.rej b/profiles/debian/main.profile.rej
new file mode 100644
index 0000000..a97845b
--- /dev/null
+++ b/profiles/debian/main.profile.rej
@@ -0,0 +1,10 @@
+--- profiles/debian/main.profile
++++ profiles/debian/main.profile
+@@ -8,6 +8,6 @@ Enable-Tags-From-Check: apache2, application-not-library, automake, binaries,
+  group-checks, huge-usr-share, infofiles, init.d, java, lintian, manpages,
+  md5sums, menu-format, menus, nmu, obsolete-sites, ocaml, patch-systems, phppear,
+  po-debconf, rules, scripts, shared-libs, source-copyright, standards-version,
+- symlinks, systemd, testsuite, version-substvars, watch-file
++ symlinks, systemd, testsuite, usrmerge, version-substvars, watch-file
+ Disable-Tags: hardening-no-stackprotector
+ 
diff --git a/t/tests/usrmerge-lib/debian/Makefile b/t/tests/usrmerge-lib/debian/Makefile
new file mode 100644
index 0000000..68db10a
--- /dev/null
+++ b/t/tests/usrmerge-lib/debian/Makefile
@@ -0,0 +1,14 @@
+all:
+	gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -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 -d $(DESTDIR)/lib/
+	install -m 644 -c -s libbasic.so.2 $(DESTDIR)/lib/libbasic.so.2
+	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/usrmerge-lib/debian/basic.c b/t/tests/usrmerge-lib/debian/basic.c
new file mode 100644
index 0000000..764b4fc
--- /dev/null
+++ b/t/tests/usrmerge-lib/debian/basic.c
@@ -0,0 +1,3 @@
+int hello() {
+    return 1;
+}
diff --git a/t/tests/usrmerge-lib/debian/debian/control.in b/t/tests/usrmerge-lib/debian/debian/control.in
new file mode 100644
index 0000000..43e6444
--- /dev/null
+++ b/t/tests/usrmerge-lib/debian/debian/control.in
@@ -0,0 +1,14 @@
+Source: {$source}
+Priority: extra
+Section: libs
+Maintainer: {$author}
+Standards-Version: {$standards_version}
+Build-Depends: debhelper (>= 9)
+
+Package: libbasic2
+Architecture: any
+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.
diff --git a/t/tests/usrmerge-lib/debian/debian/rules b/t/tests/usrmerge-lib/debian/debian/rules
new file mode 100755
index 0000000..596305e
--- /dev/null
+++ b/t/tests/usrmerge-lib/debian/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+
+
+
diff --git a/t/tests/usrmerge-lib/desc b/t/tests/usrmerge-lib/desc
new file mode 100644
index 0000000..81aa3ae
--- /dev/null
+++ b/t/tests/usrmerge-lib/desc
@@ -0,0 +1,6 @@
+Testname: usrmerge-lib
+Sequence: 6000
+Version: 1.0
+Description: Check for file installed in /usr/lib /lib
+Test-For:
+ library-in-root-and-usr
diff --git a/t/tests/usrmerge-lib/tags b/t/tests/usrmerge-lib/tags
new file mode 100644
index 0000000..baad629
--- /dev/null
+++ b/t/tests/usrmerge-lib/tags
@@ -0,0 +1,3 @@
+E: libbasic2: library-in-root-and-usr lib/libbasic.so.2 usr/lib/libbasic.so.2
+I: libbasic2: no-symbols-control-file lib/libbasic.so.2
+I: libbasic2: no-symbols-control-file usr/lib/libbasic.so.2

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: