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

[SCM] Debian package checker branch, master, updated. 2.2.9-49-gd848434



The following commit has been merged in the master branch:
commit b526f06786b2e0a1fc17bcb814ea8bdf2f96c540
Author: Raphael Geissert <atomo64@gmail.com>
Date:   Mon Apr 13 02:08:13 2009 -0500

    Test for several tags related to binaries

diff --git a/t/tests/binaries-general/debian/Makefile b/t/tests/binaries-general/debian/Makefile
new file mode 100644
index 0000000..344b2db
--- /dev/null
+++ b/t/tests/binaries-general/debian/Makefile
@@ -0,0 +1,14 @@
+all:
+	gcc -o basic basic.c -pg -Wl,--rpath,/usr/local/lib
+
+install:
+	install -d $(DESTDIR)/usr/share/foo/
+	install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic
+	install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/
+	objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic
+	strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic
+
+clean distclean:
+	rm -f basic
+
+check test:
diff --git a/t/tests/cruft-general-test-suite/upstream/hello.c b/t/tests/binaries-general/debian/basic.c
similarity index 83%
copy from t/tests/cruft-general-test-suite/upstream/hello.c
copy to t/tests/binaries-general/debian/basic.c
index 1b47b80..00f3787 100644
--- a/t/tests/cruft-general-test-suite/upstream/hello.c
+++ b/t/tests/binaries-general/debian/basic.c
@@ -4,5 +4,4 @@ int
 main(void)
 {
     printf("Hello world!\n");
-    return 0;
 }
diff --git a/t/tests/binaries-general/desc b/t/tests/binaries-general/desc
new file mode 100644
index 0000000..ee5751f
--- /dev/null
+++ b/t/tests/binaries-general/desc
@@ -0,0 +1,10 @@
+Testname: binaries-general
+Sequence: 6000
+Version: 1.0
+Description: Misc errors related to binaries
+Architecture: any
+Test-For:
+ arch-dependent-file-in-usr-share
+ binary-compiled-with-profiling-enabled
+ binary-or-shlib-defines-rpath
+ library-in-debug-or-profile-should-not-be-stripped
diff --git a/t/tests/binaries-general/tags b/t/tests/binaries-general/tags
new file mode 100644
index 0000000..b553878
--- /dev/null
+++ b/t/tests/binaries-general/tags
@@ -0,0 +1,5 @@
+E: binaries-general: arch-dependent-file-in-usr-share ./usr/share/foo/basic
+E: binaries-general: library-in-debug-or-profile-should-not-be-stripped ./usr/lib/debug/usr/share/foo/basic
+W: binaries-general: binary-compiled-with-profiling-enabled ./usr/share/foo/basic
+W: binaries-general: binary-or-shlib-defines-rpath ./usr/share/foo/basic /usr/local/lib
+W: binaries-general: debug-package-should-be-named-dbg usr/lib/debug/usr/

-- 
Debian package checker


Reply to: