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

[SCM] Debian package checker branch, master, updated. 2.2.12-44-ga2a402c



The following commit has been merged in the master branch:
commit 1d7c15f3c80a206b668e7aebc97ea2bb925da0ff
Author: Russ Allbery <rra@debian.org>
Date:   Sun Jul 5 01:10:39 2009 -0700

    Generate a list of tags only in legacy suite by test case
    
    * private/update-coverage:
      + [RA] Provide a breakdown of tags only covered in the legacy test
        suite by test name.

diff --git a/debian/changelog b/debian/changelog
index 91780a7..c590084 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -96,6 +96,10 @@ lintian (2.2.13) UNRELEASED; urgency=low
     + [RA] The archive area may be a comma-separated list of areas.  Patch
       from Raphael Geissert.
 
+  * private/update-coverage:
+    + [RA] Provide a breakdown of tags only covered in the legacy test
+      suite by test name.
+
   * reporting/html_reports:
     + [RA] Change area back to section in the loop for generating the
       package index pages to be consistent with the page template.
diff --git a/private/update-coverage b/private/update-coverage
index 821b756..1f3152c 100755
--- a/private/update-coverage
+++ b/private/update-coverage
@@ -73,9 +73,12 @@ for my $tagfile (<t/changes/*.tags>, <t/debs/*/tags>, <t/source/*/tags>) {
 
 # Now parse all tags files from the old test suite looking for what tags that
 # test reveals.
-my %legacy;
+my (%legacy, %legacy_test);
 for my $tagfile (<testset/tags.*>) {
     next if $tagfile =~ /\.sed$/;
+    my $case = $tagfile;
+    $case =~ s/.*tags\.//;
+    $legacy_test{$case} ||= [];
     open (IN, '<', $tagfile) or die "Cannot open $tagfile: $!\n";
     local $_;
     while (<IN>) {
@@ -83,6 +86,7 @@ for my $tagfile (<testset/tags.*>) {
             if (exists $tags{$3}) {
                 $legacy{$3} = $tags{$3};
                 delete $tags{$3};
+                push (@{ $legacy_test{$case} }, $3);
             }
         }
     }
@@ -101,6 +105,16 @@ print_tags(\%tags, \*OUT);
 # The contents of the %legacy hash are only tested by the legacy test suite.
 print OUT "\nThe following tags are only tested by the legacy test suite:\n";
 print_tags(\%legacy, \*OUT);
+
+# Print out a breakdown of the tags that are only tested by the legacy test
+# suite, sorted by legacy test case.
+print OUT "\nBreakdown of remaining tags in legacy test suite by test case:\n";
+for my $package (sort keys %legacy_test) {
+    print OUT "\n$package\n";
+    for my $tag (sort @{ $legacy_test{$package} }) {
+        print OUT "  $tag\n";
+    }
+}
 close OUT;
 
 # -----------------------------------
diff --git a/t/COVERAGE b/t/COVERAGE
index d1b5c15..3991240 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -569,3 +569,352 @@ watch-file debian-watch-file-in-native-package
 watch-file debian-watch-file-should-mangle-version
 watch-file debian-watch-file-specifies-old-upstream-version
 watch-file debian-watch-file-specifies-wrong-upstream-version
+
+Breakdown of remaining tags in legacy test suite by test case:
+
+binary
+  arch-dep-package-has-big-usr-share
+  binary-has-unneeded-section
+  binary-without-manpage
+  changelog-file-not-compressed
+  changelog-news-debian-mismatch
+  control-file-is-empty
+  debian-changelog-file-missing-or-wrong-name
+  debian-news-entry-has-strange-distribution
+  debian-news-file-uses-obsolete-national-encoding
+  debian-rules-uses-pwd
+  depends-on-x-metapackage
+  deprecated-kdelnk-file
+  desktop-command-not-in-package
+  desktop-contains-deprecated-header
+  desktop-entry-contains-encoding-key
+  desktop-entry-contains-unknown-key
+  desktop-entry-file-has-crs
+  desktop-entry-invalid-category
+  desktop-entry-missing-required-key
+  desktop-entry-uses-reserved-category
+  doc-base-abstract-field-separator-extra-whitespaces
+  doc-base-document-field-ends-in-whitespace
+  doc-base-file-duplicated-format
+  doc-base-file-lacks-required-field
+  doc-base-file-no-format
+  doc-base-file-no-format-section
+  doc-base-file-no-index
+  doc-base-file-references-missing-file
+  doc-base-file-unknown-field
+  doc-base-file-unknown-format
+  doc-base-file-uses-obsolete-national-encoding
+  doc-base-index-references-multiple-files
+  doc-base-invalid-document-field
+  doc-base-unknown-section
+  executable-desktop-file
+  executable-not-elf-or-script
+  file-directly-in-usr-share
+  file-in-unusual-dir
+  file-name-ends-in-whitespace
+  lengthy-symlink
+  maintainer-upload-has-incorrect-version-number
+  menu-command-not-in-package
+  menu-file-in-usr-lib
+  menu-item-creates-new-section
+  menu-item-missing-required-tag
+  menu-item-needs-tag-has-unknown-value
+  menu-item-uses-apps-section
+  menu-item-uses-windowmanagers-section
+  menu-method-should-include-menu-h
+  native-package-with-dash-version
+  no-md5sums-control-file
+  non-wm-in-windowmanager-menu-section
+  non-wm-module-in-wm-modules-menu-section
+  not-binnmuable-all-depends-any
+  not-binnmuable-any-depends-all
+  old-fsf-address-in-copyright-file
+  package-contains-hardlink
+  package-contains-upstream-install-documentation
+  possible-gpl-code-linked-with-openssl
+  postinst-does-not-call-updatemenus
+  postrm-does-not-call-updatemenus
+  spelling-error-in-doc-base-abstract-field
+  spelling-error-in-doc-base-title-field
+  spelling-error-in-news-debian
+  statically-linked-binary
+  su-to-root-with-usr-sbin
+  su-wrapper-not-su-to-root
+  su-wrapper-without--c
+  substvar-source-version-is-deprecated
+  symlink-contains-spurious-segments
+  symlink-should-be-relative
+  syntax-error-in-debian-changelog
+  syntax-error-in-debian-news-file
+  unquoted-string-in-menu-item
+  unstripped-binary-or-object
+  xs-vcs-header-in-debian-control
+
+cdbs-test
+  build-depends-without-arch-dep
+  clean-should-be-satisfied-by-build-depends
+  debian-changelog-line-too-long
+  missing-python-build-dependency
+  no-human-maintainers
+  package-has-a-duplicate-build-relation
+
+debconf
+  debian-rules-calls-debhelper-in-odd-order
+  dpatch-build-dep-but-no-patch-list
+  invalid-po-file
+  loads-obsolete-confmodule
+  making-assumptions-about-interfaces-in-templates
+  malformed-prompt-in-templates
+  malformed-question-in-templates
+  malformed-title-in-templates
+  mismatch-translated-choices
+  misnamed-po-file
+  missing-debconf-dependency
+  missing-debconf-dependency-for-preinst
+  missing-dh_python-build-dependency
+  newer-debconf-templates
+  no-complete-debconf-translation
+  no-debconf-config
+  no-template-description
+  no-template-type
+  possible-debconf-note-abuse
+  postinst-uses-db-input
+  postrm-does-not-purge-debconf
+  select-with-boolean-choices
+  stray-translated-debconf-templates
+  template-uses-unsplit-choices
+  too-long-extended-description-in-templates
+  too-long-short-description-in-templates
+  translated-default-field
+  udeb-postinst-must-not-call-ldconfig
+  unknown-debconf-priority
+  unknown-encoding-in-po-file
+  unused-debconf-template
+  using-first-person-in-templates
+  using-imperative-form-in-templates
+  using-question-in-extended-description-in-templates
+
+debug
+  binary-with-bad-dynamic-table
+  build-depends-indep-without-arch-indep
+  changelog-file-missing-in-native-package
+  changelog-should-not-mention-nmu
+  dbg-package-missing-depends
+  debug-file-should-use-detached-symbols
+  duplicate-entry-in-symbols-control-file
+  invalid-template-id-in-symbols-file
+  latest-debian-changelog-entry-without-new-version
+  missing-dependency-on-libc
+  pkg-has-symbols-control-file-but-no-shared-libs
+  shared-lib-without-dependency-information
+  sharedobject-in-library-directory-missing-soname
+  symbols-declared-but-not-shlib
+  symbols-declares-dependency-on-other-package
+  syntax-error-in-symbols-file
+  timewarp-standards-version
+  unknown-meta-field-in-symbols-file
+  unused-shlib-entry-in-symbols-control-file
+  version-substvar-for-external-package
+
+dh7-test
+  debian-watch-file-should-mangle-version
+  debian-watch-file-specifies-wrong-upstream-version
+
+diffs
+  arch-independent-package-contains-binary-or-object
+  patch-system-but-direct-changes-in-diff
+  possible-missing-colon-in-closes
+
+etcfiles
+  file-in-etc-not-marked-as-conffile
+  file-missing-in-md5sums
+  malformed-md5sums-control-file
+  md5sum-mismatch
+  md5sums-lists-nonexisting-file
+  readme-debian-mentions-usr-doc
+  run-parts-cron-filename-contains-full-stop
+
+fields
+  debian-revision-not-well-formed
+  debian-revision-should-not-be-zero
+  depends-on-python-minimal
+  unknown-section
+
+filenames
+  bad-menu-file-name
+  bad-permissions-for-ali-file
+  debian-news-file-not-compressed
+  desktop-file-in-wrong-dir
+  dir-or-file-in-opt
+  dir-or-file-in-srv
+  dir-or-file-in-var-www
+  embedded-feedparser-library
+  embedded-javascript-library
+  extra-license-file
+  file-in-usr-lib-sgml
+  file-in-usr-something-x11-without-pre-depends
+  macos-ds-store-file-in-package
+  macos-resource-fork-file-in-package
+  non-standard-dir-perm
+  non-standard-toplevel-dir
+  package-contains-bts-control-dir
+  package-contains-devhelp-file-without-symlink
+  package-contains-linda-override
+  package-contains-readme-for-other-platform-or-distro
+  package-contains-vcs-control-dir
+  package-contains-vcs-control-file
+  package-installs-file-to-usr-x11r6
+  package-installs-file-to-usr-x11r6-bin
+  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
+  symlink-ends-with-slash
+  symlink-has-double-slash
+  symlink-has-too-many-up-segments
+  symlink-is-self-recursive
+  symlink-should-be-absolute
+  use-of-compat-symlink
+  windows-thumbnail-database-in-package
+  wrong-file-owner-uid-or-gid
+  wrong-name-for-debian-news-file
+
+foo++
+  debian-changelog-file-contains-debmake-default-email-address
+  debian-changelog-file-uses-obsolete-national-encoding
+  debian-control-file-uses-obsolete-national-encoding
+  debian-watch-file-in-native-package
+  latest-debian-changelog-entry-without-new-date
+  malformed-dm-upload-allowed
+  readme-debian-contains-debmake-default-email-address
+  uploader-address-is-on-localhost
+  uploader-address-looks-weird
+  uploader-address-malformed
+  uploader-address-missing
+  uploader-not-full-name
+  wrong-debian-qa-address-set-as-maintainer
+
+libbaz
+  control-file-has-bad-permissions
+  debian-changelog-file-is-a-symlink
+  debian-changelog-file-missing
+  debug-package-should-be-priority-extra
+  duplicate-entry-in-shlibs-control-file
+  file-directly-in-usr-share-doc
+  ldconfig-symlink-missing-for-shlib
+  maintainer-shell-script-fails-syntax-check
+  missing-dependency-on-perlapi
+  missing-depends-line
+  no-symbols-control-file
+  not-binnmuable-any-depends-any
+  package-name-doesnt-match-sonames
+  postinst-must-call-ldconfig
+  postinst-should-not-set-usr-doc-link
+  shlib-missing-in-control-file
+  shlib-missing-in-symbols-control-file
+  shlib-with-executable-bit
+  shlib-with-non-pic-code
+  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
+  ancient-dpkg-epoch-check
+  ancient-dpkg-long-filenames-check
+  ancient-dpkg-multi-conrep-check
+  ancient-dpkg-predepends-check
+  changelog-should-mention-qa
+  config-does-not-load-confmodule
+  debconf-config-not-executable
+  debian-changelog-file-contains-invalid-email-address
+  init.d-script-not-included-in-package
+  init.d-script-not-marked-as-conffile
+  maintainer-script-calls-deprecated-wm-menu-config
+  maintainer-script-does-not-check-for-existence-of-wm-menu-config
+  maintainer-script-ignores-errors
+  maintainer-script-removes-device-files
+  no-debconf-templates
+  orphaned-package-should-not-have-uploaders
+  output-of-updaterc.d-not-redirected-to-dev-null
+  postinst-does-not-load-confmodule
+  postrm-contains-additional-updaterc.d-calls
+  postrm-does-not-call-updaterc.d-for-init.d-script
+  postrm-has-useless-call-to-ldconfig
+  preinst-calls-updaterc.d
+  prerm-calls-updaterc.d
+  qa-upload-has-incorrect-version-number
+  update-alternatives-remove-called-in-postrm
+  wrong-debian-qa-group-name
+
+manpages
+  binary-nmu-debian-revision-in-source
+  binary-nmu-uses-old-version-style
+  executable-manpage
+  stray-directory-in-manpage-directory
+
+relations
+  bad-version-in-relation
+  breaks-without-version
+  build-conflicts-with-build-dependency
+  build-depends-on-1-revision
+  build-depends-on-build-essential
+  build-depends-on-essential-package-without-using-version
+  build-depends-on-obsolete-package
+  conflicts-with-dependency
+  depends-exclusively-on-makedev
+  depends-on-build-essential-package-without-using-version
+  depends-on-essential-package-without-using-version
+  depends-on-obsolete-package
+  depends-on-old-emacs
+  invalid-arch-string-in-source-relation
+  needlessly-depends-on-awk
+  ored-build-depends-on-obsolete-package
+  ored-depends-on-obsolete-package
+  package-depends-on-multiple-libpng-versions
+  package-depends-on-multiple-libstdc-versions
+  package-depends-on-multiple-tcl-versions
+  package-depends-on-multiple-tk-versions
+  package-depends-on-multiple-tkx-versions
+  package-relation-with-self
+  quilt-build-dep-but-no-series-file
+  redundant-bugs-field
+  redundant-origin-field
+  section-area-mismatch
+  usr-share-doc-symlink-without-dependency
+  versioned-dependency-satisfied-by-perl
+  virtual-package-depends-without-real-package-depends
+
+scripts
+  bad-ubuntu-distribution-in-changes-file
+  calls-suidperl-directly
+  copyright-file-lacks-pointer-to-perl-license
+  debian-watch-file-specifies-old-upstream-version
+  dpatch-index-references-non-existent-patch
+  dpatch-missing-description
+  duplicate-updaterc.d-calls-in-postrm
+  executable-is-not-world-readable
+  init-d-script-stops-in-s-runlevel
+  init.d-script-has-bad-lsb-line
+  init.d-script-has-bad-stop-runlevel
+  init.d-script-has-conflicting-start-stop
+  init.d-script-has-duplicate-lsb-section
+  init.d-script-has-unknown-lsb-keyword
+  init.d-script-has-unterminated-lsb-section
+  init.d-script-missing-lsb-keyword
+  init.d-script-missing-lsb-short-description
+  non-standard-executable-perm
+  non-standard-setuid-executable-perm
+  package-installs-python-pyc
+  php-script-but-no-phpX-cli-dep
+  python-script-but-no-python-dep
+  script-in-usr-share-doc
+  script-uses-bin-env
+  script-with-language-extension
+  setuid-binary
+  shell-script-fails-syntax-check
+  suid-perl-script-but-no-perl-suid-dep
+  uses-dh-python-with-no-pycompat

-- 
Debian package checker


Reply to: