[SCM] Debian package checker branch, master, updated. 2.5.1-21-g8ecaf28
The following commit has been merged in the master branch:
commit 8ecaf2876ae68b549f95ba5f93d9e6666c31aa4d
Author: Niels Thykier <niels@thykier.net>
Date: Sun Jun 26 22:36:32 2011 +0200
Added test for bad owner of the control file in debs
diff --git a/t/COVERAGE b/t/COVERAGE
index 7aefc77..637ba69 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,4 +1,4 @@
-Last generated 2011-06-23
+Last generated 2011-06-26
The following tags are not tested by the test suite:
@@ -20,7 +20,6 @@ changes-file file-size-mismatch-in-changes-file
control-file debian-control-with-duplicate-fields
-control-files control-file-has-bad-owner
control-files not-allowed-control-file
control-files unknown-control-file
diff --git a/t/debs/fields-obsolete-relation/Makefile b/t/debs/control-file-bad-owner/Makefile
similarity index 82%
copy from t/debs/fields-obsolete-relation/Makefile
copy to t/debs/control-file-bad-owner/Makefile
index 9fcd420..b4e1d8f 100644
--- a/t/debs/fields-obsolete-relation/Makefile
+++ b/t/debs/control-file-bad-owner/Makefile
@@ -1,4 +1,4 @@
-name = fields-obsolete-relation
+name = control-file-bad-owner
all:
echo '2.0' > debian-binary
@@ -9,7 +9,7 @@ all:
chown 0:0 control
chmod 644 control
md5sum usr/share/doc/$(name)/* > md5sums
- tar cfz control.tar.gz control md5sums
+ tar -czf control.tar.gz --owner=nobody control md5sums
ar rc $(name).deb \
debian-binary control.tar.gz data.tar.gz
diff --git a/t/debs/deb-format-record-size/changelog b/t/debs/control-file-bad-owner/changelog
similarity index 69%
copy from t/debs/deb-format-record-size/changelog
copy to t/debs/control-file-bad-owner/changelog
index b28456d..7b61891 100644
--- a/t/debs/deb-format-record-size/changelog
+++ b/t/debs/control-file-bad-owner/changelog
@@ -1,4 +1,4 @@
-deb-format-record-size (1.0) unstable; urgency=low
+control-file-bad-owner (1.0) unstable; urgency=low
* A Lintian test case.
diff --git a/t/debs/deb-format-lzma/control b/t/debs/control-file-bad-owner/control
similarity index 81%
copy from t/debs/deb-format-lzma/control
copy to t/debs/control-file-bad-owner/control
index e813352..8c78b5e 100644
--- a/t/debs/deb-format-lzma/control
+++ b/t/debs/control-file-bad-owner/control
@@ -1,10 +1,10 @@
-Package: deb-format-lzma
+Package: control-file-bad-owner
Version: 1.0
Architecture: all
Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
Section: devel
Priority: extra
-Description: Test package with LZMA compression
+Description: test for bad owner of control files
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
diff --git a/t/debs/control-field-traversal-4/copyright b/t/debs/control-file-bad-owner/copyright
similarity index 100%
copy from t/debs/control-field-traversal-4/copyright
copy to t/debs/control-file-bad-owner/copyright
diff --git a/t/debs/control-file-bad-owner/tags b/t/debs/control-file-bad-owner/tags
new file mode 100644
index 0000000..8c54a75
--- /dev/null
+++ b/t/debs/control-file-bad-owner/tags
@@ -0,0 +1 @@
+E: control-file-bad-owner: control-file-has-bad-owner md5sums nobody/root != root/root
--
Debian package checker
Reply to: