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

[SCM] Debian package checker branch, master, updated. 2.5.3-11-g3c5e508



The following commit has been merged in the master branch:
commit 3c5e508b036b7593cdb21b119be13cc42dd20c97
Author: Niels Thykier <niels@thykier.net>
Date:   Fri Sep 16 22:47:37 2011 +0200

    Improve test coverage

diff --git a/t/COVERAGE b/t/COVERAGE
index 096ea13..3e6865c 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,5 +1,5 @@
-Last generated 2011-09-10
-Coverage: 723/937 (77.16%), w. legacy tests: 844/937 (90.07%)
+Last generated 2011-09-16
+Coverage: 727/937 (77.59%), w. legacy tests: 845/937 (90.18%)
 
 The following tags are not tested by the test suite:
 
@@ -45,7 +45,6 @@ fields package-superseded-by-perl
 fields source-field-does-not-match-pkg-name
 
 files FSSTND-dir-in-var
-files backup-file-in-package
 files compressed-symlink-with-wrong-ext
 files config-file-reserved
 files debug-package-should-be-named-dbg
@@ -161,12 +160,9 @@ files package-contains-readme-for-other-platform-or-distro
 files package-contains-upstream-install-documentation
 files package-contains-vcs-control-dir
 files package-contains-vcs-control-file
-files package-installs-into-etc-gconf-schemas
-files package-installs-nonbinary-perl-in-usr-lib-perl5
 files package-installs-packlist
 files script-in-usr-share-doc
 files script-with-language-extension
-files subdir-in-usr-bin
 files svk-commit-file-in-package
 files svn-commit-file-in-package
 files use-of-compat-symlink
@@ -340,11 +336,8 @@ filenames
   package-contains-readme-for-other-platform-or-distro
   package-contains-vcs-control-dir
   package-contains-vcs-control-file
-  package-installs-into-etc-gconf-schemas
-  package-installs-nonbinary-perl-in-usr-lib-perl5
   package-installs-packlist
   script-not-executable
-  subdir-in-usr-bin
   svk-commit-file-in-package
   svn-commit-file-in-package
   use-of-compat-symlink
diff --git a/t/tests/files-foo-in-bar/debian/debian/clean b/t/tests/files-foo-in-bar/debian/debian/clean
index e8a6125..c7730c2 100644
--- a/t/tests/files-foo-in-bar/debian/debian/clean
+++ b/t/tests/files-foo-in-bar/debian/debian/clean
@@ -1,2 +1,3 @@
 bar.1*
+Bar.pm
 bar.png
diff --git a/t/tests/files-foo-in-bar/debian/debian/install b/t/tests/files-foo-in-bar/debian/debian/install
index e92bc29..7bc4695 100644
--- a/t/tests/files-foo-in-bar/debian/debian/install
+++ b/t/tests/files-foo-in-bar/debian/debian/install
@@ -1,4 +1,5 @@
 bar bin/foo
+bar etc/gconf/schemas/
 bar etc/rc.boot
 bar etc/rc.d
 bar etc/udev/rules.d
@@ -27,4 +28,5 @@ bar var/lock/foo
 bar var/run/foo
 bar var/www/foo
 
+Bar.pm usr/lib/perl5/Foo
 bar.png usr/lib/files-foo-in-bar
diff --git a/t/tests/files-foo-in-bar/debian/debian/rules b/t/tests/files-foo-in-bar/debian/debian/rules
index c75450d..0a91b56 100755
--- a/t/tests/files-foo-in-bar/debian/debian/rules
+++ b/t/tests/files-foo-in-bar/debian/debian/rules
@@ -5,10 +5,11 @@
 override_dh_auto_build:
 	pod2man --section 1 bar.pod > bar.1
 	gzip --best bar.1
+	cp bar Bar.pm
 	cp bar bar.png
 
 override_dh_auto_install:
 	dh_install bar.1.gz usr/X11R6/man/man1/
 
-override_dh_usrlocal:
+override_dh_usrlocal override_dh_gconf:
 	# skip
diff --git a/t/tests/files-foo-in-bar/desc b/t/tests/files-foo-in-bar/desc
index ceb0adb..fa57951 100644
--- a/t/tests/files-foo-in-bar/desc
+++ b/t/tests/files-foo-in-bar/desc
@@ -20,14 +20,17 @@ Test-For:
  package-contains-xvpics-dir
  package-installs-file-to-usr-x11r6
  package-installs-file-to-usr-x11r6-bin
+ package-installs-into-etc-gconf-schemas
  package-installs-into-etc-rc.boot
  package-installs-into-etc-rc.d
+ package-installs-nonbinary-perl-in-usr-lib-perl5
  perl-module-in-core-directory
  perl-module-in-core-directory
  nested-examples-directory
  non-standard-dir-in-usr
  non-standard-dir-in-var
  subdir-in-bin
+ subdir-in-usr-bin
  third-party-package-in-python-dir
  udev-rule-in-etc
  vim-addon-within-vim-runtime-path
diff --git a/t/tests/files-foo-in-bar/tags b/t/tests/files-foo-in-bar/tags
index 40c1ffd..81a5de0 100644
--- a/t/tests/files-foo-in-bar/tags
+++ b/t/tests/files-foo-in-bar/tags
@@ -45,6 +45,8 @@ W: files-foo-in-bar: file-in-unusual-dir var/run/foo/bar
 W: files-foo-in-bar: file-in-usr-lib-sgml usr/lib/sgml/bar
 W: files-foo-in-bar: image-file-in-usr-lib usr/lib/files-foo-in-bar/bar.png
 W: files-foo-in-bar: non-standard-dir-in-usr usr/foo/
+W: files-foo-in-bar: package-installs-into-etc-gconf-schemas etc/gconf/schemas/bar
+W: files-foo-in-bar: package-installs-nonbinary-perl-in-usr-lib-perl5 usr/lib/perl5/Foo/Bar.pm
 W: files-foo-in-bar: third-party-package-in-python-dir usr/lib/python2.6/bar
 W: files-foo-in-bar: vim-addon-within-vim-runtime-path usr/share/vim/vim73/bar
 W: files-foo-in-bar: vim-addon-within-vim-runtime-path usr/share/vim/vimcurrent/bar
diff --git a/t/tests/files-general/debian/debian/rules b/t/tests/files-general/debian/debian/rules
index ebda2ba..dbc4a63 100755
--- a/t/tests/files-general/debian/debian/rules
+++ b/t/tests/files-general/debian/debian/rules
@@ -8,6 +8,7 @@ tmp = $(CURDIR)/debian/$(shell dh_listpackages)
 override_dh_install:
 	dh_install
 	mkdir -p $(tmp)/usr/share/foo
+	echo "Back-up file" > $(tmp)/usr/share/foo/file~
 	touch $(tmp)/usr/share/foo/'*'
 	touch $(tmp)/usr/share/foo/'ws '
 
diff --git a/t/tests/files-general/desc b/t/tests/files-general/desc
index 9143a53..91d109e 100644
--- a/t/tests/files-general/desc
+++ b/t/tests/files-general/desc
@@ -3,6 +3,7 @@ Sequence: 6000
 Version: 1.0
 Description: Test tags for file paths, names, and modes
 Test-For:
+ backup-file-in-package
  bad-perm-for-file-in-etc-sudoers.d
  dir-or-file-in-var-lock
  dir-or-file-in-var-run
diff --git a/t/tests/files-general/tags b/t/tests/files-general/tags
index 145af41..d2d029c 100644
--- a/t/tests/files-general/tags
+++ b/t/tests/files-general/tags
@@ -14,6 +14,7 @@ E: files-general: star-file usr/share/foo/*
 E: files-general: stray-directory-in-manpage-directory usr/share/man/man1/random/
 I: files-general: duplicated-compressed-file usr/share/doc/lintian/lintian-16x16.png.gz
 I: files-general: package-contains-empty-directory usr/share/man/man1/random/
+W: files-general: backup-file-in-package usr/share/foo/file~
 W: files-general: executable-not-elf-or-script usr/share/man/man5/foo.5.gz
 W: files-general: file-in-unusual-dir new-top-level-dir/file-in-new-top-level-dir
 W: files-general: file-name-ends-in-whitespace usr/share/foo/ws 

-- 
Debian package checker


Reply to: