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

[SCM] Debian package checker branch, master, updated. 2.1.6-29-gefb5fd0



The following commit has been merged in the master branch:
commit 3931777f9aed775206012e6842c71428f9e19c6c
Author: Russ Allbery <rra@debian.org>
Date:   Sat Jan 24 14:31:41 2009 -0800

    Move new test suite desc files into the test directories
    
    * t/runtests:
      + [RA] Expect the desc files for tests to be in the test directory
        rather than at the top level and move the sequence number to an
        attribute in the test description rather than in the desc file
        name.

diff --git a/debian/changelog b/debian/changelog
index 7858d9e..312448d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -74,6 +74,10 @@ lintian (2.2.0) UNRELEASED; urgency=low
     + [RA] Add support for specifying the Lintian options to use when
       checking a test package.  Patch from Raphael Geissert.
       (Closes: #512678)
+    + [RA] Expect the desc files for tests to be in the test directory
+      rather than at the top level and move the sequence number to an
+      attribute in the test description rather than in the desc file
+      name.
 
  -- Russ Allbery <rra@debian.org>  Mon, 19 Jan 2009 20:45:31 -0800
 
diff --git a/private/update-coverage b/private/update-coverage
index 9d65d65..25d4728 100755
--- a/private/update-coverage
+++ b/private/update-coverage
@@ -50,7 +50,7 @@ for my $desc (<checks/*.desc>) {
 
 # Parse all test configuration files from the new test suite looking for
 # Test-For configuration options and remove those from the %tags hash.
-for my $desc (<t/tests/*.desc>) {
+for my $desc (<t/tests/*/desc>) {
     my ($data) = read_dpkg_control($desc);
     if (exists $data->{'test-for'}) {
         for my $tag (split(' ', $data->{'test-for'})) {
diff --git a/t/COVERAGE b/t/COVERAGE
index f0c741f..ff6cb4b 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,4 +1,4 @@
-Last generated 2009-01-17
+Last generated 2009-01-24
 
 The following tags are not tested by the test suite:
 
@@ -79,6 +79,7 @@ fields malformed-python-version
 fields missing-build-dependency
 fields multiline-field
 fields no-architecture-field
+fields no-homepage-field
 fields no-maintainer-field
 fields no-package-name
 fields no-source-field
@@ -209,6 +210,7 @@ menus prerm-has-useless-call-to-install-docs
 
 nmu changelog-is-symlink
 
+patch-systems direct-changes-in-diff-but-no-patch-system
 patch-systems more-than-one-patch-system
 patch-systems patch-modifying-debian-files
 patch-systems quilt-patch-with-non-standard-options
diff --git a/t/runtests b/t/runtests
index fc02c17..d020b36 100755
--- a/t/runtests
+++ b/t/runtests
@@ -200,10 +200,9 @@ for (@tests) {
 $prev = $prev || scalar(@tests);
 @tests = ();
 if ($singletest) {
-    my $test = $singletest;
-    $test =~ s/\.desc$//;
-    if (-f "$TESTSET/tests/$test.desc") {
-	@tests = ($test);
+    my $desc = "$TESTSET/tests/$singletest/desc";
+    if (-f $desc) {
+	@tests = read_dpkg_control($desc);
     }
 } elsif ($tag) {
     @tests = find_tests_for_tag($tag);
@@ -211,19 +210,21 @@ if ($singletest) {
     unless (-d $TESTSET) {
 	fail("cannot find $TESTSET: $!");
     }
-    @tests = map {
-	s,^\Q$TESTSET/tests/\E,,;
-	s/\.desc$//;
-	$_;
-    } sort(<$TESTSET/tests/*.desc>);
+    @tests = map { read_dpkg_control($_) } <$TESTSET/tests/*/desc>;
 }
+@tests = sort {
+    $a->{sequence} <=> $b->{sequence}
+	|| $a->{testname} cmp $b->{testname}
+    } @tests;
 print "\n" if ($prev and @tests);
-print "Found the following tests: @tests\n" if $DEBUG;
+if ($DEBUG) {
+    print "Found the following tests: ";
+    print join(' ', map { $_->{testname} } @tests);
+    print "\n";
+}
 print "Package tests:\n" if @tests;
-for (@tests) {
-    my $testdesc = "$TESTSET/tests/$_.desc";
-    next unless -f $testdesc;
-    my $okay = test_package($_, $testdesc);
+for my $test (@tests) {
+    my $okay = test_package($test);
     unless ($okay) {
 	exit 1 unless $run_all_tests;
 	$status = 1;
@@ -252,20 +253,19 @@ exit $status;
 sub find_tests_for_tag {
     my ($tag) = @_;
     my @tests;
-    for my $test (<$TESTSET/tests/*.desc>) {
-	my ($testname) = ($test =~ m,.*/([^/]+)\.desc$,);
-	my ($data) = read_dpkg_control($test);
+    for my $desc (<$TESTSET/tests/*/desc>) {
+	my ($data) = read_dpkg_control($desc);
 	if ($data->{'test-for'}) {
 	    my %for = map { $_ => 1 } split(' ', $data->{'test-for'});
 	    if ($for{$tag}) {
-		push (@tests, $testname);
+		push (@tests, $data);
 		next;
 	    }
 	}
 	if ($data->{'test-against'}) {
 	    my %against = map { $_ => 1 } split(' ', $data->{'test-against'});
 	    if ($against{$tag}) {
-		push (@tests, $testname);
+		push (@tests, $data);
 	    }
 	}
     }
@@ -273,13 +273,10 @@ sub find_tests_for_tag {
 }
 
 # Run a package test and show any diffs in the expected tags or any other
-# errors detected.  Takes the test name and the description file.  Returns
-# true if the test passes and false if it fails.
+# errors detected.  Takes the description data for the test.  Returns true if
+# the test passes and false if it fails.
 sub test_package {
-    my ($test, $testdesc) = @_;
-
-    print "process $testdesc...\n" if $DEBUG;
-    my $testdata = (read_dpkg_control($testdesc))[0];
+    my ($testdata) = @_;
 
     check_test_is_sane($TESTSET, $testdata);
     print "Running test $testdata->{testname} $testdata->{version}... ";
@@ -547,7 +544,7 @@ sub check_test_is_sane {
     my ($dir, $data) = @_;
 
     if ($DEBUG) {
-	print "check_test_is_sane <= ".Dumper($data);
+	print "check_test_is_sane <= " . Dumper($data);
     }
 
     unless ($data->{testname} && $data->{version}) {
diff --git a/t/tests/0000_basic.desc b/t/tests/0000_basic.desc
deleted file mode 100644
index 96d9f45..0000000
--- a/t/tests/0000_basic.desc
+++ /dev/null
@@ -1,2 +0,0 @@
-Testname: basic
-Version: 1.0
diff --git a/t/tests/0001_basic-non-native.desc b/t/tests/0001_basic-non-native.desc
deleted file mode 100644
index 5d0fce6..0000000
--- a/t/tests/0001_basic-non-native.desc
+++ /dev/null
@@ -1,3 +0,0 @@
-Testname: basic-non-native
-Type: non-native
-Version: 1.0-1
diff --git a/t/tests/0700_runtests-options.desc b/t/tests/0700_runtests-options.desc
deleted file mode 100644
index 937a055..0000000
--- a/t/tests/0700_runtests-options.desc
+++ /dev/null
@@ -1,8 +0,0 @@
-Testname: runtests-options
-Version: 1.0
-Description: Test a bad package but use -C to only catch some tags
-Test-For:
- invalid-standards-version
-Test-Against:
- new-essential-package
-Options: -C standards-version
diff --git a/t/tests/1500_overrides.desc b/t/tests/1500_overrides.desc
deleted file mode 100644
index 8efa6cb..0000000
--- a/t/tests/1500_overrides.desc
+++ /dev/null
@@ -1,2 +0,0 @@
-Testname: overrides
-Version: 1.0
diff --git a/t/tests/2500_distribution-ubuntu-native.desc b/t/tests/2500_distribution-ubuntu-native.desc
deleted file mode 100644
index 0edfd01..0000000
--- a/t/tests/2500_distribution-ubuntu-native.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: distribution-ubuntu-native
-Version: 1.0
-Description: Check *.changes distribution checking for Ubuntu
-Test-Against: bad-distribution-in-changes-file
-References: Debian Bug#507740
diff --git a/t/tests/6000_changelog-file-etch-nmu.desc b/t/tests/6000_changelog-file-etch-nmu.desc
deleted file mode 100644
index 15215e5..0000000
--- a/t/tests/6000_changelog-file-etch-nmu.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: changelog-file-etch-nmu
-Type: non-native
-Version: 1.0-1etch1.1
-Description: Test for a code name in an unstable upload
-Test-Against: version-refers-to-distribution
diff --git a/t/tests/6000_changelog-file-etch.desc b/t/tests/6000_changelog-file-etch.desc
deleted file mode 100644
index 5328964..0000000
--- a/t/tests/6000_changelog-file-etch.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: changelog-file-etch
-Type: non-native
-Version: 1.0-1etch1
-Description: Test for a code name in an unstable upload
-Test-For: version-refers-to-distribution
diff --git a/t/tests/6000_changelog-file-stable.desc b/t/tests/6000_changelog-file-stable.desc
deleted file mode 100644
index 1aed75e..0000000
--- a/t/tests/6000_changelog-file-stable.desc
+++ /dev/null
@@ -1,7 +0,0 @@
-Testname: changelog-file-stable
-Type: non-native
-Version: 1.0-1etch1
-Description: Test a stable-proposed-updates package
-Test-Against:
- bad-distribution-in-changes-file
- version-refers-to-distribution
diff --git a/t/tests/6000_control-file-general.desc b/t/tests/6000_control-file-general.desc
deleted file mode 100644
index f1b840f..0000000
--- a/t/tests/6000_control-file-general.desc
+++ /dev/null
@@ -1,13 +0,0 @@
-Testname: control-file-general
-Version: 1.0
-Description: Various problems with debian/control
-Test-For:
- binary-control-field-duplicates-source
- build-info-in-binary-control-file-section
- duplicate-long-description
- duplicate-short-description
- missing-comma-after-substvar
- no-section-field-for-source
- package-depends-on-itself
- stronger-dependency-implies-weaker
-References: Debian Bug#30020, Debian Bug#409099
diff --git a/t/tests/6000_copyright-file-doc-symlink.desc b/t/tests/6000_copyright-file-doc-symlink.desc
deleted file mode 100644
index 90146ee..0000000
--- a/t/tests/6000_copyright-file-doc-symlink.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: copyright-file-doc-symlink
-Version: 1.0
-Description: Test a symlinked /usr/share/doc
-Test-Against: usr-share-doc-symlink-without-dependency
diff --git a/t/tests/6000_copyright-file-general.desc b/t/tests/6000_copyright-file-general.desc
deleted file mode 100644
index 5b39117..0000000
--- a/t/tests/6000_copyright-file-general.desc
+++ /dev/null
@@ -1,23 +0,0 @@
-Testname: copyright-file-general
-Version: 1.0
-Description: Test checking of copyright files
-Test-For:
- FSSTND-dir-in-usr
- copyright-contains-dh-make-perl-boilerplate
- copyright-file-compressed
- copyright-file-contains-full-apache-2-license
- copyright-file-contains-full-gfdl-license
- copyright-file-contains-full-gpl-license
- copyright-file-is-symlink
- copyright-has-url-from-dh_make-boilerplate
- copyright-lists-upstream-authors-with-dh_make-boilerplate
- copyright-refers-to-bad-php-license
- copyright-refers-to-compressed-license
- copyright-refers-to-incorrect-directory
- copyright-refers-to-old-directory
- copyright-refers-to-problematic-php-license
- copyright-should-refer-to-common-license-file-for-gfdl
- copyright-should-refer-to-common-license-file-for-gpl
- copyright-without-copyright-notice
- debian-copyright-file-uses-obsolete-national-encoding
- old-style-copyright-file
diff --git a/t/tests/6000_cruft-ancient-libtool-2.desc b/t/tests/6000_cruft-ancient-libtool-2.desc
deleted file mode 100644
index 4a436bd..0000000
--- a/t/tests/6000_cruft-ancient-libtool-2.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: cruft-ancient-libtool-2
-Version: 1.0
-Description: Test that an old (1.5.2) ltmain.sh is detected correctly
-Test-For: ancient-libtool
-References: Debian Bug#293296
diff --git a/t/tests/6000_cruft-ancient-libtool.desc b/t/tests/6000_cruft-ancient-libtool.desc
deleted file mode 100644
index 4b4f850..0000000
--- a/t/tests/6000_cruft-ancient-libtool.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: cruft-ancient-libtool
-Version: 1.0
-Description: Test that an very old ltmain.sh/ltconfig is detected correctly
-Test-For: ancient-libtool
-References: Debian Bug#293296
diff --git a/t/tests/6000_cruft-current-libtool.desc b/t/tests/6000_cruft-current-libtool.desc
deleted file mode 100644
index ab4dc91..0000000
--- a/t/tests/6000_cruft-current-libtool.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: cruft-current-libtool
-Version: 1.0
-Description: Test that a current ltmain.sh is detected correctly
-Test-Against: ancient-libtool
-References: Debian Bug#293296
diff --git a/t/tests/6000_cruft-empty-diff.desc b/t/tests/6000_cruft-empty-diff.desc
deleted file mode 100644
index 3a545ef..0000000
--- a/t/tests/6000_cruft-empty-diff.desc
+++ /dev/null
@@ -1,6 +0,0 @@
-Testname: cruft-empty-diff
-Version: 1.0-1
-Type: non-native
-Description: Test an empty Debian diff
-Test-For: empty-debian-diff
-References: Debian Bug#498668
diff --git a/t/tests/6000_cruft-general-diff.desc b/t/tests/6000_cruft-general-diff.desc
deleted file mode 100644
index 75fc346..0000000
--- a/t/tests/6000_cruft-general-diff.desc
+++ /dev/null
@@ -1,23 +0,0 @@
-Testname: cruft-general-diff
-Version: 1.0-1
-Type: non-native
-Description: Check for cruft added in the diff
-Test-For:
- debian-files-list-in-source
- diff-contains-arch-control-dir
- diff-contains-arch-inventory-file
- diff-contains-bts-control-dir
- diff-contains-bzr-control-dir
- diff-contains-cmake-cache-file
- diff-contains-cvs-conflict-copy
- diff-contains-cvs-control-dir
- diff-contains-editor-backup-file
- diff-contains-git-control-dir
- diff-contains-hg-control-dir
- diff-contains-hg-tags-file
- diff-contains-patch-failure-file
- diff-contains-substvars
- diff-contains-svk-commit-file
- diff-contains-svn-commit-file
- diff-contains-svn-conflict-file
- diff-contains-svn-control-dir
diff --git a/t/tests/6000_cruft-general-upstream.desc b/t/tests/6000_cruft-general-upstream.desc
deleted file mode 100644
index 6890663..0000000
--- a/t/tests/6000_cruft-general-upstream.desc
+++ /dev/null
@@ -1,19 +0,0 @@
-Testname: cruft-general-upstream
-Version: 1.0-1
-Type: non-native
-Description: Check for cruft in the upstream source
-Test-For:
- configure-generated-file-in-source
- source-contains-arch-control-dir
- source-contains-arch-inventory-file
- source-contains-bts-control-dir
- source-contains-bzr-control-dir
- source-contains-cvs-conflict-copy
- source-contains-cvs-control-dir
- source-contains-git-control-dir
- source-contains-hg-control-dir
- source-contains-hg-tags-file
- source-contains-svk-commit-file
- source-contains-svn-commit-file
- source-contains-svn-conflict-file
- source-contains-svn-control-dir
diff --git a/t/tests/6000_debhelper-arch-depends.desc b/t/tests/6000_debhelper-arch-depends.desc
deleted file mode 100644
index 07bd111..0000000
--- a/t/tests/6000_debhelper-arch-depends.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: debhelper-arch-depends
-Version: 1.0
-Description: Test arch-specific dependencies on dh commands
-Test-Against: missing-build-dependency-for-dh_-command
diff --git a/t/tests/6000_debhelper-brace-expansion.desc b/t/tests/6000_debhelper-brace-expansion.desc
deleted file mode 100644
index 269bd5b..0000000
--- a/t/tests/6000_debhelper-brace-expansion.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: debhelper-brace-expansion
-Version: 1.0
-Description: Check for brace expansion in debhelper config files
-Test-For: brace-expansion-in-debhelper-config-file
-References: Debian Bug#480939
diff --git a/t/tests/6000_debhelper-dh-clean-k-deprecated.desc b/t/tests/6000_debhelper-dh-clean-k-deprecated.desc
deleted file mode 100644
index e8b7ef7..0000000
--- a/t/tests/6000_debhelper-dh-clean-k-deprecated.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: debhelper-dh-clean-k-deprecated
-Version: 1.0
-Description: Test for debhelper >=7 packages using dh_clean -k
-Test-For:
- dh-clean-k-is-deprecated
diff --git a/t/tests/6000_debhelper-dh-clean-k-ok.desc b/t/tests/6000_debhelper-dh-clean-k-ok.desc
deleted file mode 100644
index 9d38d67..0000000
--- a/t/tests/6000_debhelper-dh-clean-k-ok.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: debhelper-dh-clean-k-ok
-Version: 1.0
-Description: Test that debhelper < 7 packages can use dh_clean -k
-Test-Against:
- dh-clean-k-is-deprecated
diff --git a/t/tests/6000_debhelper-dh-depends.desc b/t/tests/6000_debhelper-dh-depends.desc
deleted file mode 100644
index bd9bd65..0000000
--- a/t/tests/6000_debhelper-dh-depends.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: debhelper-dh-depends
-Version: 1.0
-Description: Test required dependencies for dh* scripts
-Test-For: debhelper-script-needs-versioned-build-depends
diff --git a/t/tests/6000_debhelper-no-depends.desc b/t/tests/6000_debhelper-no-depends.desc
deleted file mode 100644
index ea1b967..0000000
--- a/t/tests/6000_debhelper-no-depends.desc
+++ /dev/null
@@ -1,8 +0,0 @@
-Testname: debhelper-no-depends
-Version: 1.0
-Description: Test dependency requirements for debhelper
-Test-For:
- debhelper-but-no-misc-depends
- missing-build-dependency-for-dh_-command
- package-lacks-versioned-build-depends-on-debhelper
- package-uses-debhelper-but-lacks-build-depends
diff --git a/t/tests/6000_debhelper-script-token-unneeded.desc b/t/tests/6000_debhelper-script-token-unneeded.desc
deleted file mode 100644
index 8e37818..0000000
--- a/t/tests/6000_debhelper-script-token-unneeded.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: debhelper-script-token-unneeded
-Version: 1.0
-Description: Check unnecessary debhelper script token
-Test-Against: maintainer-script-lacks-debhelper-token
diff --git a/t/tests/6000_debhelper-script-token.desc b/t/tests/6000_debhelper-script-token.desc
deleted file mode 100644
index 9ea703f..0000000
--- a/t/tests/6000_debhelper-script-token.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: debhelper-script-token
-Version: 1.0
-Description: Check debhelper script token with rule minimization
-Test-For: maintainer-script-lacks-debhelper-token
diff --git a/t/tests/6000_fields-wrong-section.desc b/t/tests/6000_fields-wrong-section.desc
deleted file mode 100644
index 3e709d0..0000000
--- a/t/tests/6000_fields-wrong-section.desc
+++ /dev/null
@@ -1,8 +0,0 @@
-Testname: fields-wrong-section
-Version: 1.0
-Description: Packages placed in the wrong sections
-Test-For:
- doc-package-should-be-section-doc
- dev-package-should-be-section-libdevel
- perl-package-should-be-section-perl
- python-package-should-be-section-python
diff --git a/t/tests/6000_files-embedded-pear-module.desc b/t/tests/6000_files-embedded-pear-module.desc
deleted file mode 100644
index ae80270..0000000
--- a/t/tests/6000_files-embedded-pear-module.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: files-embedded-pear-module
-Version: 1.0
-Description: Check for detection of embedded PEAR modules
-Test-For: embedded-pear-module
-References: <g8t2fb$r9t$4@ger.gmane.org>
diff --git a/t/tests/6000_files-games-section.desc b/t/tests/6000_files-games-section.desc
deleted file mode 100644
index 08969c5..0000000
--- a/t/tests/6000_files-games-section.desc
+++ /dev/null
@@ -1,8 +0,0 @@
-Testname: files-games-section
-Section: games
-Version: 1.0
-Description: Correct section for games packages
-Test-For:
- games-package-should-be-section-games
- package-section-games-but-contains-no-game
- package-section-games-but-has-usr-bin
diff --git a/t/tests/6000_files-override-misplaced.desc b/t/tests/6000_files-override-misplaced.desc
deleted file mode 100644
index d8bb58b..0000000
--- a/t/tests/6000_files-override-misplaced.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: files-override-misplaced
-Version: 1.0
-Description: Check for misplaced override file detection
-Test-For: override-file-in-wrong-location
diff --git a/t/tests/6000_files-windows-devel-file-in-package.desc b/t/tests/6000_files-windows-devel-file-in-package.desc
deleted file mode 100644
index 8076670..0000000
--- a/t/tests/6000_files-windows-devel-file-in-package.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: files-windows-devel-file-in-package
-Version: 1.0
-Description: Test tag windows-devel-file-in-package
-Test-For: windows-devel-file-in-package
diff --git a/t/tests/6000_files-zero-byte-doc.desc b/t/tests/6000_files-zero-byte-doc.desc
deleted file mode 100644
index 96c4cfe..0000000
--- a/t/tests/6000_files-zero-byte-doc.desc
+++ /dev/null
@@ -1,6 +0,0 @@
-Testname: files-zero-byte-doc
-Version: 1.0
-Section: doc
-Description: Check detection of zero-byte files in doc directories
-Test-For: zero-byte-file-in-doc-directory
-References: Debian Bug#507273
diff --git a/t/tests/6000_menu-format-desktop-mimetype.desc b/t/tests/6000_menu-format-desktop-mimetype.desc
deleted file mode 100644
index 19e027d..0000000
--- a/t/tests/6000_menu-format-desktop-mimetype.desc
+++ /dev/null
@@ -1,6 +0,0 @@
-Testname: menu-format-desktop-mimetype
-Version: 1.0
-Section: doc
-Description: Check update-desktop-detabase and MimeType *.desktop
-Test-For: desktop-mimetype-without-update-call
-References: Debian Bug#488832
diff --git a/t/tests/6000_menus-doc-base-sections.desc b/t/tests/6000_menus-doc-base-sections.desc
deleted file mode 100644
index 1fb0070..0000000
--- a/t/tests/6000_menus-doc-base-sections.desc
+++ /dev/null
@@ -1,6 +0,0 @@
-Testname: menus-doc-base-sections
-Version: 1.0
-Description: Test some doc-base section related tags
-Test-Against: doc-base-unknown-section
-Test-For: doc-base-uses-applications-section
-References: Debian Bug#495836
diff --git a/t/tests/6000_menus-script-check-ok.desc b/t/tests/6000_menus-script-check-ok.desc
deleted file mode 100644
index 39aa562..0000000
--- a/t/tests/6000_menus-script-check-ok.desc
+++ /dev/null
@@ -1,7 +0,0 @@
-Testname: menus-script-check-ok
-Version: 1.0
-Description: Correct program checks in maintainer scripts
-Test-Against:
- maintainer-script-does-not-check-for-existence-of-installdocs
- maintainer-script-does-not-check-for-existence-of-updatemenus
- maintainer-script-does-not-check-for-existence-of-wm-menu-config
diff --git a/t/tests/6000_nmu-case-insensitive.desc b/t/tests/6000_nmu-case-insensitive.desc
deleted file mode 100644
index 7c7e017..0000000
--- a/t/tests/6000_nmu-case-insensitive.desc
+++ /dev/null
@@ -1,8 +0,0 @@
-Testname: nmu-case-insensitive
-Version: 1.0
-Author: Russ Allbery <rra@debian.ORG>
-Description: Test case-insensitive matching of e-mail addresses
-Test-Against:
- changelog-should-mention-nmu
- source-nmu-has-incorrect-version-number
-References: Debian Bug#486795
diff --git a/t/tests/6000_nmu-local-changelog.desc b/t/tests/6000_nmu-local-changelog.desc
deleted file mode 100644
index 2c256f9..0000000
--- a/t/tests/6000_nmu-local-changelog.desc
+++ /dev/null
@@ -1,7 +0,0 @@
-Testname: nmu-local-changelog
-Version: 1.0
-Description: Test suppression of NMU tags for local packages
-Test-Against:
- changelog-should-mention-nmu
- source-nmu-has-incorrect-version-number
-References: Debian Bug#501523
diff --git a/t/tests/6000_nmu-local-version.desc b/t/tests/6000_nmu-local-version.desc
deleted file mode 100644
index 029d071..0000000
--- a/t/tests/6000_nmu-local-version.desc
+++ /dev/null
@@ -1,7 +0,0 @@
-Testname: nmu-local-version
-Version: 1.0local1
-Description: Test suppression of NMU tags for local packages
-Test-Against:
- changelog-should-mention-nmu
- source-nmu-has-incorrect-version-number
-References: Debian Bug#501523
diff --git a/t/tests/6000_nmu-ubuntu-native.desc b/t/tests/6000_nmu-ubuntu-native.desc
deleted file mode 100644
index a0efd28..0000000
--- a/t/tests/6000_nmu-ubuntu-native.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: nmu-ubuntu-native
-Version: 1.0
-Description: Test NMU tag suppression for Ubuntu native packages
-Test-Against: changelog-should-mention-nmu
-References: Debian Bug #507740
diff --git a/t/tests/6000_package-version-became-native.desc b/t/tests/6000_package-version-became-native.desc
deleted file mode 100644
index 0ad1cba..0000000
--- a/t/tests/6000_package-version-became-native.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: package-version-became-native
-Version: 1.0
-Description: Test for packages where the version suddenly becomes native
-Test-For: latest-debian-changelog-entry-changed-to-native
-References: Debian Bug #504070
diff --git a/t/tests/6000_patch-systems-quilt-description.desc b/t/tests/6000_patch-systems-quilt-description.desc
deleted file mode 100644
index ea167b3..0000000
--- a/t/tests/6000_patch-systems-quilt-description.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: patch-systems-quilt-description
-Version: 1.0
-Description: Test for quilt patches which do not have accompanying descriptions
-Test-For: quilt-patch-missing-description
-References: Debian Bug #498892
diff --git a/t/tests/6000_rules-dh-unused-target-nonempty.desc b/t/tests/6000_rules-dh-unused-target-nonempty.desc
deleted file mode 100644
index 425f79d..0000000
--- a/t/tests/6000_rules-dh-unused-target-nonempty.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: rules-dh-unused-target-nonempty
-Version: 1.0
-Description: Allow dh in unused targets, but nothing else
-Test-For: binary-arch-rules-but-pkg-is-arch-indep
-References: <20080806175819.GV11882@mail-vs.djpig.de>
diff --git a/t/tests/6000_rules-dh-unused-target.desc b/t/tests/6000_rules-dh-unused-target.desc
deleted file mode 100644
index a8f2e17..0000000
--- a/t/tests/6000_rules-dh-unused-target.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: rules-dh-unused-target
-Version: 1.0
-Description: Allow dh in unused targets
-Test-Against: binary-arch-rules-but-pkg-is-arch-indep
-References: <20080806175819.GV11882@mail-vs.djpig.de>
diff --git a/t/tests/6000_rules-ignore-define.desc b/t/tests/6000_rules-ignore-define.desc
deleted file mode 100644
index 4bb7035..0000000
--- a/t/tests/6000_rules-ignore-define.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: rules-ignore-define
-Version: 1.0
-Description: Ignore define blocks when checking rule files
-Test-Against: binary-arch-rules-but-pkg-is-arch-indep
-References: Debian Bug#510869
diff --git a/t/tests/6000_scripts-calls-init-script.desc b/t/tests/6000_scripts-calls-init-script.desc
deleted file mode 100644
index d092bee..0000000
--- a/t/tests/6000_scripts-calls-init-script.desc
+++ /dev/null
@@ -1,7 +0,0 @@
-Testname: scripts-calls-init-script
-Version: 1.0
-Description: Test proper use of invoke-rc.d
-Test-For:
- maintainer-script-calls-init-script-directly
- script-calls-init-script-directly
-References: Debian Bug#381485
diff --git a/t/tests/6000_scripts-control-interpreters.desc b/t/tests/6000_scripts-control-interpreters.desc
deleted file mode 100644
index 6fc0dd3..0000000
--- a/t/tests/6000_scripts-control-interpreters.desc
+++ /dev/null
@@ -1,14 +0,0 @@
-Testname: scripts-control-interpreters
-Type: native
-Version: 1.0
-Architecture: any
-Description: Check maintainer and config script interpreters
-Test-For: control-interpreter-in-usr-local
- wrong-path-for-interpreter
- forbidden-config-interpreter
- forbidden-postrm-interpreter
- unusual-control-interpreter
- preinst-interpreter-without-predepends
- control-interpreter-without-depends
- unknown-control-interpreter
-References: Debian Bug#508307
diff --git a/t/tests/6000_scripts-maintainer-script-empty.desc b/t/tests/6000_scripts-maintainer-script-empty.desc
deleted file mode 100644
index 425a622..0000000
--- a/t/tests/6000_scripts-maintainer-script-empty.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: scripts-maintainer-script-empty
-Version: 1.0
-Description: Test for empty maintainer scripts
-Test-For: maintainer-script-empty
diff --git a/t/tests/6000_scripts-ocamlrun.desc b/t/tests/6000_scripts-ocamlrun.desc
deleted file mode 100644
index 128f017..0000000
--- a/t/tests/6000_scripts-ocamlrun.desc
+++ /dev/null
@@ -1,5 +0,0 @@
-Testname: scripts-ocamlrun
-Version: 1.0
-Description: Test correct handling of ocamlrun scripts
-Test-Against: missing-dep-for-interpreter
-References: Debian Bug#495431
diff --git a/t/tests/6000_shared-libs-unversioned.desc b/t/tests/6000_shared-libs-unversioned.desc
deleted file mode 100644
index af8be6e..0000000
--- a/t/tests/6000_shared-libs-unversioned.desc
+++ /dev/null
@@ -1,7 +0,0 @@
-Testname: shared-libs-unversioned
-Version: 1.0
-Architecture: any
-Description: Test handling of shared libraries without versioned SONAMEs
-Test-For: shlib-without-versioned-soname
-Test-Against: shlib-missing-in-control-file
-References: Debian Bug#506673
diff --git a/t/tests/6000_standards-version-invalid.desc b/t/tests/6000_standards-version-invalid.desc
deleted file mode 100644
index 91319c6..0000000
--- a/t/tests/6000_standards-version-invalid.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: standards-version-invalid
-Version: 1.0
-Description: Test invalid standards version
-Test-For: invalid-standards-version
diff --git a/t/tests/6000_standards-version-newer.desc b/t/tests/6000_standards-version-newer.desc
deleted file mode 100644
index ff136f5..0000000
--- a/t/tests/6000_standards-version-newer.desc
+++ /dev/null
@@ -1,4 +0,0 @@
-Testname: standards-version-newer
-Version: 1.0
-Description: Test too-new standards version
-Test-For: newer-standards-version
diff --git a/t/tests/6000_watch-file-general.desc b/t/tests/6000_watch-file-general.desc
deleted file mode 100644
index e7afa34..0000000
--- a/t/tests/6000_watch-file-general.desc
+++ /dev/null
@@ -1,11 +0,0 @@
-Testname: watch-file-general
-Type: non-native
-Version: 2.0.ds1-1
-Description: General watch file checks
-Test-For:
- debian-watch-file-declares-multiple-versions
- debian-watch-file-should-dversionmangle-not-uversionmangle
- debian-watch-file-should-use-sf-redirector
- debian-watch-file-unknown-version
- debian-watch-file-uses-deprecated-sf-redirector-method
-References: Debian Bug#510398
diff --git a/t/tests/6500_generic-dh-make-2005.desc b/t/tests/6500_generic-dh-make-2005.desc
deleted file mode 100644
index a3017f4..0000000
--- a/t/tests/6500_generic-dh-make-2005.desc
+++ /dev/null
@@ -1,21 +0,0 @@
-Testname: generic-dh-make-2005
-Type: non-native
-Author: Frank Lichtenheld <djpig@debian.org>
-Version: 1-1
-Description: Generic dh_make template generated in 2005
-Test-For:
- ancient-standards-version
- copyright-without-copyright-notice
- debian-rules-ignores-make-clean-error
- debian-rules-sets-DH_COMPAT
- debian-watch-file-is-missing
- description-is-dh_make-template
- dh_suidregister-is-obsolete
- dh_testversion-is-deprecated
- extended-description-is-probably-too-short
- helper-templates-in-copyright
- new-package-should-close-itp-bug
- package-uses-deprecated-debhelper-compat-version
- readme-debian-contains-debmake-template
- section-is-dh_make-template
- wrong-bug-number-in-closes
diff --git a/t/tests/6500_generic-dh-make-2008.desc b/t/tests/6500_generic-dh-make-2008.desc
deleted file mode 100644
index 2f38cfe..0000000
--- a/t/tests/6500_generic-dh-make-2008.desc
+++ /dev/null
@@ -1,23 +0,0 @@
-Testname: generic-dh-make-2008
-Type: non-native
-Author: Russ Allbery <rra@debian.org>
-Version: 1.0-1
-Description: Generic dh_make template generated in 2008
-Test-For:
- bad-homepage
- copyright-contains-dh_make-todo-boilerplate
- copyright-has-url-from-dh_make-boilerplate
- copyright-lists-upstream-authors-with-dh_make-boilerplate
- copyright-with-old-dh-make-debian-copyright
- copyright-without-copyright-notice
- debian-watch-file-is-missing
- description-is-dh_make-template
- dh-make-template-in-source
- extended-description-is-probably-too-short
- new-package-should-close-itp-bug
- package-contains-empty-directory
- readme-debian-contains-debmake-template
- section-is-dh_make-template
- superfluous-clutter-in-homepage
- wrong-bug-number-in-closes
-References: Debian Bug#497347
diff --git a/t/tests/6500_generic-empty.desc b/t/tests/6500_generic-empty.desc
deleted file mode 100644
index 4d111ce..0000000
--- a/t/tests/6500_generic-empty.desc
+++ /dev/null
@@ -1,18 +0,0 @@
-Testname: generic-empty
-Version: 1.0
-Description: Pathological empty package
-Test-For:
- bad-urgency-in-changes-file
- changed-by-address-malformed
- changed-by-address-missing
- changelog-should-mention-nmu
- debian-rules-missing-required-target
- maintainer-address-missing
- maintainer-not-full-name
- no-copyright-file
- no-priority-field
- no-section-field
- no-section-field-for-source
- no-standards-version-field
- package-has-no-description
- source-nmu-has-incorrect-version-number
diff --git a/t/tests/README b/t/tests/README
index d0d5a41..a8cafca 100644
--- a/t/tests/README
+++ b/t/tests/README
@@ -1,30 +1,60 @@
 WRITING A TEST
 ==============
 
-A test in this framework consists of two components: a .desc file
-providing metadata about the test and a directory containing the files
-used to build the test package.
+A test in this framework is a directory containing a desc file, providing
+metadata about the test, and other files used to build the test package.
 
-The .desc file
---------------
+Naming conventions
+------------------
+
+Each test name should begin with the name of the part tested, e.g.
+
+<checkname>-...
+<unpackname>-...
+lintian-...
+lintian-info-...
+
+Use generic- as a prefix for test cases that don't cover a specific
+portion of Lintian but instead test Lintian's behavior on a useful special
+case of package (such as a generic dh-make template).
+
+Sequence numbers
+----------------
+
+Each test should have a sequence number to get a more deterministic order.
+You do not need to use unique numbers, only enough to make the order
+deterministic and to your liking!  You should use the middle of the
+assigned range as default number and only divert from it if you have a
+reason to.
+
+Number ranges:
+
+0000 - 0999	Basic test, that generally just assure that the test
+		suite and lintian are not completly broken
+1000 - 1999	Tests for lib/       [1500]
+2000 - 2999	Tests for frontend/  [2500]
+3000 - 3999	Tests for unpack/    [3500]
+4000 - 4999	Tests for collection/[4500]
+5000 - 6999	Tests for checks/    [6000]
+7000 - 8999	<unused>
+9000 - 9999	Tests for reporting/ [9500]
 
-The .desc file is formatted like a Debian control file and should be
-named with a sequence number, an underscore, and the name of the test
-directory.  See "TEST NAMING CONVENTIONS" below for information about
-the sequence number and test and directory naming.
+The desc file
+-------------
 
-The required fields are:
+The desc file is formatted like a Debian control file.  The required
+fields are:
 
     Testname: <should match the directory name>
+    Sequence: <sequence number>
     Version: <version number of package>
     Description: <description of the purpose of the test>
 
-In addition, the tags (if any) that the test case is testing for
-should be listed in a Test-For key.  The tags that the test case is
-testing are not issued (checking againts false positives) should be
-listed in a Test-Against key.  In both cases, the tags should be
-separated by whitespace.  The following format is suggested for
-multiple tags:
+In addition, the tags (if any) that the test case is testing for should be
+listed in a Test-For key.  The tags that the test case is testing are not
+issued (checking againts false positives) should be listed in a
+Test-Against key.  In both cases, the tags should be separated by
+whitespace.  The following format is suggested for multiple tags:
 
     Test-For:
      lintian-tag-1
@@ -32,10 +62,10 @@ multiple tags:
 
 with the tags listed in alphabetical order.
 
-If testing the results of the different command line options lintian provides
-use the Options key.  When not specified, the default options are -I -E.
-For example, to test the -T option when used in combination with
---show-overrides one would use:
+The default lintian command-line options are -I -E.  You can change these
+options with an Options field specifying the lintian options to use.  This
+overrides the default, so add -I -E if you want to include those options.
+For example, to test --show-overrides with the -T option, use:
 
     Options: --show-overrides -T no-copyright-file
 
@@ -47,12 +77,11 @@ the test case as a non-native package, add:
 to the .desc file.  You will also want to change the version number to
 be non-native unless you're testing a mismatch.
 
-Unless you're writing a test case just to improve Lintian's test
-coverage, you will normally want to add a References field giving the
-source of the test or the bug that you're testing for.  This should be
-one of "Debian Bug#nnnn" for a bug report, a URL into the
-debian-lint-maint mailing list archives, or a message ID for the
-message to the list.
+Unless you're writing a test case just to improve Lintian's test coverage,
+you will normally want to add a References field giving the source of the
+test or the bug that you're testing for.  This should be one of "Debian
+Bug#nnnn" for a bug report, a URL into the debian-lint-maint mailing list
+archives, or a message ID for the message to the list.
 
 All other fields in the .desc file are optional and control the values
 filled into the template control and changelog files by the test suite
@@ -128,41 +157,6 @@ have some file in the debian directory.  Normally, this is handled by
 creating a small README file; see t/tests/basic for an example.
 
 
-TEST NAMING CONVENTIONS
-=======================
-
-Each test name should begin with the name of the part tested,
-e.g.
-
-<checkname>-...
-<unpackname>-...
-lintian-...
-lintian-info-...
-
-Use generic- as a prefix for test cases that don't cover a
-specific portion of Lintian but instead test Lintian's behavior
-on a useful special case of package (such as a generic dh-make
-template).
-
-The .desc file names should start with a number to get a more
-deterministic order. You do not need to use unique numbers, only
-enough to make the order deterministic and to your liking!
-You should use the middle of the assigned range as default
-number and only divert from it if you have a reason to.
-
-Number ranges:
-
-0000 - 0999	Basic test, that generally just assure that the test
-		suite and lintian are not completly broken
-1000 - 1999	Tests for lib/       [1500]
-2000 - 2999	Tests for frontend/  [2500]
-3000 - 3999	Tests for unpack/    [3500]
-4000 - 4999	Tests for collection/[4500]
-5000 - 6999	Tests for checks/    [6000]
-7000 - 8999	<unused>
-9000 - 9999	Tests for reporting/ [9500]
-
-
 RUNNING THE TEST SUITE
 ======================
 
diff --git a/t/tests/basic-non-native/desc b/t/tests/basic-non-native/desc
new file mode 100644
index 0000000..c398c20
--- /dev/null
+++ b/t/tests/basic-non-native/desc
@@ -0,0 +1,4 @@
+Testname: basic-non-native
+Sequence: 0001
+Type: non-native
+Version: 1.0-1
diff --git a/t/tests/basic/desc b/t/tests/basic/desc
new file mode 100644
index 0000000..60db16e
--- /dev/null
+++ b/t/tests/basic/desc
@@ -0,0 +1,3 @@
+Testname: basic
+Sequence: 0000
+Version: 1.0
diff --git a/t/tests/changelog-file-etch-nmu/desc b/t/tests/changelog-file-etch-nmu/desc
new file mode 100644
index 0000000..c17f79c
--- /dev/null
+++ b/t/tests/changelog-file-etch-nmu/desc
@@ -0,0 +1,6 @@
+Testname: changelog-file-etch-nmu
+Sequence: 6000
+Type: non-native
+Version: 1.0-1etch1.1
+Description: Test for a code name in an unstable upload
+Test-Against: version-refers-to-distribution
diff --git a/t/tests/changelog-file-etch/desc b/t/tests/changelog-file-etch/desc
new file mode 100644
index 0000000..69100b1
--- /dev/null
+++ b/t/tests/changelog-file-etch/desc
@@ -0,0 +1,6 @@
+Testname: changelog-file-etch
+Sequence: 6000
+Type: non-native
+Version: 1.0-1etch1
+Description: Test for a code name in an unstable upload
+Test-For: version-refers-to-distribution
diff --git a/t/tests/changelog-file-stable/desc b/t/tests/changelog-file-stable/desc
new file mode 100644
index 0000000..41300c5
--- /dev/null
+++ b/t/tests/changelog-file-stable/desc
@@ -0,0 +1,8 @@
+Testname: changelog-file-stable
+Sequence: 6000
+Type: non-native
+Version: 1.0-1etch1
+Description: Test a stable-proposed-updates package
+Test-Against:
+ bad-distribution-in-changes-file
+ version-refers-to-distribution
diff --git a/t/tests/control-file-general/desc b/t/tests/control-file-general/desc
new file mode 100644
index 0000000..a0cae2b
--- /dev/null
+++ b/t/tests/control-file-general/desc
@@ -0,0 +1,14 @@
+Testname: control-file-general
+Sequence: 6000
+Version: 1.0
+Description: Various problems with debian/control
+Test-For:
+ binary-control-field-duplicates-source
+ build-info-in-binary-control-file-section
+ duplicate-long-description
+ duplicate-short-description
+ missing-comma-after-substvar
+ no-section-field-for-source
+ package-depends-on-itself
+ stronger-dependency-implies-weaker
+References: Debian Bug#30020, Debian Bug#409099
diff --git a/t/tests/copyright-file-doc-symlink/desc b/t/tests/copyright-file-doc-symlink/desc
new file mode 100644
index 0000000..4c69581
--- /dev/null
+++ b/t/tests/copyright-file-doc-symlink/desc
@@ -0,0 +1,5 @@
+Testname: copyright-file-doc-symlink
+Sequence: 6000
+Version: 1.0
+Description: Test a symlinked /usr/share/doc
+Test-Against: usr-share-doc-symlink-without-dependency
diff --git a/t/tests/copyright-file-general/desc b/t/tests/copyright-file-general/desc
new file mode 100644
index 0000000..add85ac
--- /dev/null
+++ b/t/tests/copyright-file-general/desc
@@ -0,0 +1,24 @@
+Testname: copyright-file-general
+Sequence: 6000
+Version: 1.0
+Description: Test checking of copyright files
+Test-For:
+ FSSTND-dir-in-usr
+ copyright-contains-dh-make-perl-boilerplate
+ copyright-file-compressed
+ copyright-file-contains-full-apache-2-license
+ copyright-file-contains-full-gfdl-license
+ copyright-file-contains-full-gpl-license
+ copyright-file-is-symlink
+ copyright-has-url-from-dh_make-boilerplate
+ copyright-lists-upstream-authors-with-dh_make-boilerplate
+ copyright-refers-to-bad-php-license
+ copyright-refers-to-compressed-license
+ copyright-refers-to-incorrect-directory
+ copyright-refers-to-old-directory
+ copyright-refers-to-problematic-php-license
+ copyright-should-refer-to-common-license-file-for-gfdl
+ copyright-should-refer-to-common-license-file-for-gpl
+ copyright-without-copyright-notice
+ debian-copyright-file-uses-obsolete-national-encoding
+ old-style-copyright-file
diff --git a/t/tests/cruft-ancient-libtool-2/desc b/t/tests/cruft-ancient-libtool-2/desc
new file mode 100644
index 0000000..4365f5e
--- /dev/null
+++ b/t/tests/cruft-ancient-libtool-2/desc
@@ -0,0 +1,6 @@
+Testname: cruft-ancient-libtool-2
+Sequence: 6000
+Version: 1.0
+Description: Test that an old (1.5.2) ltmain.sh is detected correctly
+Test-For: ancient-libtool
+References: Debian Bug#293296
diff --git a/t/tests/cruft-ancient-libtool/desc b/t/tests/cruft-ancient-libtool/desc
new file mode 100644
index 0000000..4d748d2
--- /dev/null
+++ b/t/tests/cruft-ancient-libtool/desc
@@ -0,0 +1,6 @@
+Testname: cruft-ancient-libtool
+Sequence: 6000
+Version: 1.0
+Description: Test that an very old ltmain.sh/ltconfig is detected correctly
+Test-For: ancient-libtool
+References: Debian Bug#293296
diff --git a/t/tests/cruft-current-libtool/desc b/t/tests/cruft-current-libtool/desc
new file mode 100644
index 0000000..3c2fb3a
--- /dev/null
+++ b/t/tests/cruft-current-libtool/desc
@@ -0,0 +1,6 @@
+Testname: cruft-current-libtool
+Sequence: 6000
+Version: 1.0
+Description: Test that a current ltmain.sh is detected correctly
+Test-Against: ancient-libtool
+References: Debian Bug#293296
diff --git a/t/tests/cruft-empty-diff/desc b/t/tests/cruft-empty-diff/desc
new file mode 100644
index 0000000..8922f61
--- /dev/null
+++ b/t/tests/cruft-empty-diff/desc
@@ -0,0 +1,7 @@
+Testname: cruft-empty-diff
+Sequence: 6000
+Version: 1.0-1
+Type: non-native
+Description: Test an empty Debian diff
+Test-For: empty-debian-diff
+References: Debian Bug#498668
diff --git a/t/tests/cruft-general-diff/desc b/t/tests/cruft-general-diff/desc
new file mode 100644
index 0000000..df2634d
--- /dev/null
+++ b/t/tests/cruft-general-diff/desc
@@ -0,0 +1,24 @@
+Testname: cruft-general-diff
+Sequence: 6000
+Version: 1.0-1
+Type: non-native
+Description: Check for cruft added in the diff
+Test-For:
+ debian-files-list-in-source
+ diff-contains-arch-control-dir
+ diff-contains-arch-inventory-file
+ diff-contains-bts-control-dir
+ diff-contains-bzr-control-dir
+ diff-contains-cmake-cache-file
+ diff-contains-cvs-conflict-copy
+ diff-contains-cvs-control-dir
+ diff-contains-editor-backup-file
+ diff-contains-git-control-dir
+ diff-contains-hg-control-dir
+ diff-contains-hg-tags-file
+ diff-contains-patch-failure-file
+ diff-contains-substvars
+ diff-contains-svk-commit-file
+ diff-contains-svn-commit-file
+ diff-contains-svn-conflict-file
+ diff-contains-svn-control-dir
diff --git a/t/tests/cruft-general-upstream/desc b/t/tests/cruft-general-upstream/desc
new file mode 100644
index 0000000..e705404
--- /dev/null
+++ b/t/tests/cruft-general-upstream/desc
@@ -0,0 +1,20 @@
+Testname: cruft-general-upstream
+Sequence: 6000
+Version: 1.0-1
+Type: non-native
+Description: Check for cruft in the upstream source
+Test-For:
+ configure-generated-file-in-source
+ source-contains-arch-control-dir
+ source-contains-arch-inventory-file
+ source-contains-bts-control-dir
+ source-contains-bzr-control-dir
+ source-contains-cvs-conflict-copy
+ source-contains-cvs-control-dir
+ source-contains-git-control-dir
+ source-contains-hg-control-dir
+ source-contains-hg-tags-file
+ source-contains-svk-commit-file
+ source-contains-svn-commit-file
+ source-contains-svn-conflict-file
+ source-contains-svn-control-dir
diff --git a/t/tests/debhelper-arch-depends/desc b/t/tests/debhelper-arch-depends/desc
new file mode 100644
index 0000000..4be4529
--- /dev/null
+++ b/t/tests/debhelper-arch-depends/desc
@@ -0,0 +1,5 @@
+Testname: debhelper-arch-depends
+Sequence: 6000
+Version: 1.0
+Description: Test arch-specific dependencies on dh commands
+Test-Against: missing-build-dependency-for-dh_-command
diff --git a/t/tests/debhelper-brace-expansion/desc b/t/tests/debhelper-brace-expansion/desc
new file mode 100644
index 0000000..a5c94a1
--- /dev/null
+++ b/t/tests/debhelper-brace-expansion/desc
@@ -0,0 +1,6 @@
+Testname: debhelper-brace-expansion
+Sequence: 6000
+Version: 1.0
+Description: Check for brace expansion in debhelper config files
+Test-For: brace-expansion-in-debhelper-config-file
+References: Debian Bug#480939
diff --git a/t/tests/debhelper-dh-clean-k-deprecated/desc b/t/tests/debhelper-dh-clean-k-deprecated/desc
new file mode 100644
index 0000000..84403ff
--- /dev/null
+++ b/t/tests/debhelper-dh-clean-k-deprecated/desc
@@ -0,0 +1,6 @@
+Testname: debhelper-dh-clean-k-deprecated
+Sequence: 6000
+Version: 1.0
+Description: Test for debhelper >=7 packages using dh_clean -k
+Test-For:
+ dh-clean-k-is-deprecated
diff --git a/t/tests/debhelper-dh-clean-k-ok/desc b/t/tests/debhelper-dh-clean-k-ok/desc
new file mode 100644
index 0000000..6497cc6
--- /dev/null
+++ b/t/tests/debhelper-dh-clean-k-ok/desc
@@ -0,0 +1,6 @@
+Testname: debhelper-dh-clean-k-ok
+Sequence: 6000
+Version: 1.0
+Description: Test that debhelper < 7 packages can use dh_clean -k
+Test-Against:
+ dh-clean-k-is-deprecated
diff --git a/t/tests/debhelper-dh-depends/desc b/t/tests/debhelper-dh-depends/desc
new file mode 100644
index 0000000..684ea00
--- /dev/null
+++ b/t/tests/debhelper-dh-depends/desc
@@ -0,0 +1,5 @@
+Testname: debhelper-dh-depends
+Sequence: 6000
+Version: 1.0
+Description: Test required dependencies for dh* scripts
+Test-For: debhelper-script-needs-versioned-build-depends
diff --git a/t/tests/debhelper-no-depends/desc b/t/tests/debhelper-no-depends/desc
new file mode 100644
index 0000000..9cbc738
--- /dev/null
+++ b/t/tests/debhelper-no-depends/desc
@@ -0,0 +1,9 @@
+Testname: debhelper-no-depends
+Sequence: 6000
+Version: 1.0
+Description: Test dependency requirements for debhelper
+Test-For:
+ debhelper-but-no-misc-depends
+ missing-build-dependency-for-dh_-command
+ package-lacks-versioned-build-depends-on-debhelper
+ package-uses-debhelper-but-lacks-build-depends
diff --git a/t/tests/debhelper-script-token-unneeded/desc b/t/tests/debhelper-script-token-unneeded/desc
new file mode 100644
index 0000000..a0621fb
--- /dev/null
+++ b/t/tests/debhelper-script-token-unneeded/desc
@@ -0,0 +1,5 @@
+Testname: debhelper-script-token-unneeded
+Sequence: 6000
+Version: 1.0
+Description: Check unnecessary debhelper script token
+Test-Against: maintainer-script-lacks-debhelper-token
diff --git a/t/tests/debhelper-script-token/desc b/t/tests/debhelper-script-token/desc
new file mode 100644
index 0000000..f7f08c8
--- /dev/null
+++ b/t/tests/debhelper-script-token/desc
@@ -0,0 +1,5 @@
+Testname: debhelper-script-token
+Sequence: 6000
+Version: 1.0
+Description: Check debhelper script token with rule minimization
+Test-For: maintainer-script-lacks-debhelper-token
diff --git a/t/tests/distribution-ubuntu-native/desc b/t/tests/distribution-ubuntu-native/desc
new file mode 100644
index 0000000..ac07567
--- /dev/null
+++ b/t/tests/distribution-ubuntu-native/desc
@@ -0,0 +1,6 @@
+Testname: distribution-ubuntu-native
+Sequence: 2500
+Version: 1.0
+Description: Check *.changes distribution checking for Ubuntu
+Test-Against: bad-distribution-in-changes-file
+References: Debian Bug#507740
diff --git a/t/tests/fields-wrong-section/desc b/t/tests/fields-wrong-section/desc
new file mode 100644
index 0000000..9794d92
--- /dev/null
+++ b/t/tests/fields-wrong-section/desc
@@ -0,0 +1,9 @@
+Testname: fields-wrong-section
+Sequence: 6000
+Version: 1.0
+Description: Packages placed in the wrong sections
+Test-For:
+ doc-package-should-be-section-doc
+ dev-package-should-be-section-libdevel
+ perl-package-should-be-section-perl
+ python-package-should-be-section-python
diff --git a/t/tests/files-embedded-pear-module/desc b/t/tests/files-embedded-pear-module/desc
new file mode 100644
index 0000000..b3a8e7b
--- /dev/null
+++ b/t/tests/files-embedded-pear-module/desc
@@ -0,0 +1,6 @@
+Testname: files-embedded-pear-module
+Sequence: 6000
+Version: 1.0
+Description: Check for detection of embedded PEAR modules
+Test-For: embedded-pear-module
+References: <g8t2fb$r9t$4@ger.gmane.org>
diff --git a/t/tests/files-games-section/desc b/t/tests/files-games-section/desc
new file mode 100644
index 0000000..f81ecb5
--- /dev/null
+++ b/t/tests/files-games-section/desc
@@ -0,0 +1,9 @@
+Testname: files-games-section
+Sequence: 6000
+Section: games
+Version: 1.0
+Description: Correct section for games packages
+Test-For:
+ games-package-should-be-section-games
+ package-section-games-but-contains-no-game
+ package-section-games-but-has-usr-bin
diff --git a/t/tests/files-override-misplaced/desc b/t/tests/files-override-misplaced/desc
new file mode 100644
index 0000000..4637a47
--- /dev/null
+++ b/t/tests/files-override-misplaced/desc
@@ -0,0 +1,5 @@
+Testname: files-override-misplaced
+Sequence: 6000
+Version: 1.0
+Description: Check for misplaced override file detection
+Test-For: override-file-in-wrong-location
diff --git a/t/tests/files-windows-devel-file-in-package/desc b/t/tests/files-windows-devel-file-in-package/desc
new file mode 100644
index 0000000..252b20d
--- /dev/null
+++ b/t/tests/files-windows-devel-file-in-package/desc
@@ -0,0 +1,5 @@
+Testname: files-windows-devel-file-in-package
+Sequence: 6000
+Version: 1.0
+Description: Test tag windows-devel-file-in-package
+Test-For: windows-devel-file-in-package
diff --git a/t/tests/files-zero-byte-doc/desc b/t/tests/files-zero-byte-doc/desc
new file mode 100644
index 0000000..1b0c9bc
--- /dev/null
+++ b/t/tests/files-zero-byte-doc/desc
@@ -0,0 +1,7 @@
+Testname: files-zero-byte-doc
+Sequence: 6000
+Version: 1.0
+Section: doc
+Description: Check detection of zero-byte files in doc directories
+Test-For: zero-byte-file-in-doc-directory
+References: Debian Bug#507273
diff --git a/t/tests/generic-dh-make-2005/desc b/t/tests/generic-dh-make-2005/desc
new file mode 100644
index 0000000..adec7de
--- /dev/null
+++ b/t/tests/generic-dh-make-2005/desc
@@ -0,0 +1,22 @@
+Testname: generic-dh-make-2005
+Sequence: 6500
+Type: non-native
+Author: Frank Lichtenheld <djpig@debian.org>
+Version: 1-1
+Description: Generic dh_make template generated in 2005
+Test-For:
+ ancient-standards-version
+ copyright-without-copyright-notice
+ debian-rules-ignores-make-clean-error
+ debian-rules-sets-DH_COMPAT
+ debian-watch-file-is-missing
+ description-is-dh_make-template
+ dh_suidregister-is-obsolete
+ dh_testversion-is-deprecated
+ extended-description-is-probably-too-short
+ helper-templates-in-copyright
+ new-package-should-close-itp-bug
+ package-uses-deprecated-debhelper-compat-version
+ readme-debian-contains-debmake-template
+ section-is-dh_make-template
+ wrong-bug-number-in-closes
diff --git a/t/tests/generic-dh-make-2008/desc b/t/tests/generic-dh-make-2008/desc
new file mode 100644
index 0000000..700fa79
--- /dev/null
+++ b/t/tests/generic-dh-make-2008/desc
@@ -0,0 +1,24 @@
+Testname: generic-dh-make-2008
+Sequence: 6500
+Type: non-native
+Author: Russ Allbery <rra@debian.org>
+Version: 1.0-1
+Description: Generic dh_make template generated in 2008
+Test-For:
+ bad-homepage
+ copyright-contains-dh_make-todo-boilerplate
+ copyright-has-url-from-dh_make-boilerplate
+ copyright-lists-upstream-authors-with-dh_make-boilerplate
+ copyright-with-old-dh-make-debian-copyright
+ copyright-without-copyright-notice
+ debian-watch-file-is-missing
+ description-is-dh_make-template
+ dh-make-template-in-source
+ extended-description-is-probably-too-short
+ new-package-should-close-itp-bug
+ package-contains-empty-directory
+ readme-debian-contains-debmake-template
+ section-is-dh_make-template
+ superfluous-clutter-in-homepage
+ wrong-bug-number-in-closes
+References: Debian Bug#497347
diff --git a/t/tests/generic-empty/desc b/t/tests/generic-empty/desc
new file mode 100644
index 0000000..a994997
--- /dev/null
+++ b/t/tests/generic-empty/desc
@@ -0,0 +1,19 @@
+Testname: generic-empty
+Sequence: 6500
+Version: 1.0
+Description: Pathological empty package
+Test-For:
+ bad-urgency-in-changes-file
+ changed-by-address-malformed
+ changed-by-address-missing
+ changelog-should-mention-nmu
+ debian-rules-missing-required-target
+ maintainer-address-missing
+ maintainer-not-full-name
+ no-copyright-file
+ no-priority-field
+ no-section-field
+ no-section-field-for-source
+ no-standards-version-field
+ package-has-no-description
+ source-nmu-has-incorrect-version-number
diff --git a/t/tests/menu-format-desktop-mimetype/desc b/t/tests/menu-format-desktop-mimetype/desc
new file mode 100644
index 0000000..6ffe94a
--- /dev/null
+++ b/t/tests/menu-format-desktop-mimetype/desc
@@ -0,0 +1,7 @@
+Testname: menu-format-desktop-mimetype
+Sequence: 6000
+Version: 1.0
+Section: doc
+Description: Check update-desktop-detabase and MimeType *.desktop
+Test-For: desktop-mimetype-without-update-call
+References: Debian Bug#488832
diff --git a/t/tests/menus-doc-base-sections/desc b/t/tests/menus-doc-base-sections/desc
new file mode 100644
index 0000000..bd6564c
--- /dev/null
+++ b/t/tests/menus-doc-base-sections/desc
@@ -0,0 +1,7 @@
+Testname: menus-doc-base-sections
+Sequence: 6000
+Version: 1.0
+Description: Test some doc-base section related tags
+Test-Against: doc-base-unknown-section
+Test-For: doc-base-uses-applications-section
+References: Debian Bug#495836
diff --git a/t/tests/menus-script-check-ok/desc b/t/tests/menus-script-check-ok/desc
new file mode 100644
index 0000000..ab62fab
--- /dev/null
+++ b/t/tests/menus-script-check-ok/desc
@@ -0,0 +1,8 @@
+Testname: menus-script-check-ok
+Sequence: 6000
+Version: 1.0
+Description: Correct program checks in maintainer scripts
+Test-Against:
+ maintainer-script-does-not-check-for-existence-of-installdocs
+ maintainer-script-does-not-check-for-existence-of-updatemenus
+ maintainer-script-does-not-check-for-existence-of-wm-menu-config
diff --git a/t/tests/nmu-case-insensitive/desc b/t/tests/nmu-case-insensitive/desc
new file mode 100644
index 0000000..2de1c87
--- /dev/null
+++ b/t/tests/nmu-case-insensitive/desc
@@ -0,0 +1,9 @@
+Testname: nmu-case-insensitive
+Sequence: 6000
+Version: 1.0
+Author: Russ Allbery <rra@debian.ORG>
+Description: Test case-insensitive matching of e-mail addresses
+Test-Against:
+ changelog-should-mention-nmu
+ source-nmu-has-incorrect-version-number
+References: Debian Bug#486795
diff --git a/t/tests/nmu-local-changelog/desc b/t/tests/nmu-local-changelog/desc
new file mode 100644
index 0000000..4a533e1
--- /dev/null
+++ b/t/tests/nmu-local-changelog/desc
@@ -0,0 +1,8 @@
+Testname: nmu-local-changelog
+Sequence: 6000
+Version: 1.0
+Description: Test suppression of NMU tags for local packages
+Test-Against:
+ changelog-should-mention-nmu
+ source-nmu-has-incorrect-version-number
+References: Debian Bug#501523
diff --git a/t/tests/nmu-local-version/desc b/t/tests/nmu-local-version/desc
new file mode 100644
index 0000000..fbd4a0d
--- /dev/null
+++ b/t/tests/nmu-local-version/desc
@@ -0,0 +1,8 @@
+Testname: nmu-local-version
+Sequence: 6000
+Version: 1.0local1
+Description: Test suppression of NMU tags for local packages
+Test-Against:
+ changelog-should-mention-nmu
+ source-nmu-has-incorrect-version-number
+References: Debian Bug#501523
diff --git a/t/tests/nmu-ubuntu-native/desc b/t/tests/nmu-ubuntu-native/desc
new file mode 100644
index 0000000..6bc454a
--- /dev/null
+++ b/t/tests/nmu-ubuntu-native/desc
@@ -0,0 +1,6 @@
+Testname: nmu-ubuntu-native
+Sequence: 6000
+Version: 1.0
+Description: Test NMU tag suppression for Ubuntu native packages
+Test-Against: changelog-should-mention-nmu
+References: Debian Bug #507740
diff --git a/t/tests/overrides/desc b/t/tests/overrides/desc
new file mode 100644
index 0000000..149b19c
--- /dev/null
+++ b/t/tests/overrides/desc
@@ -0,0 +1,3 @@
+Testname: overrides
+Sequence: 1500
+Version: 1.0
diff --git a/t/tests/package-version-became-native/desc b/t/tests/package-version-became-native/desc
new file mode 100644
index 0000000..b45d71f
--- /dev/null
+++ b/t/tests/package-version-became-native/desc
@@ -0,0 +1,6 @@
+Testname: package-version-became-native
+Sequence: 6000
+Version: 1.0
+Description: Test for packages where the version suddenly becomes native
+Test-For: latest-debian-changelog-entry-changed-to-native
+References: Debian Bug #504070
diff --git a/t/tests/patch-systems-quilt-description/desc b/t/tests/patch-systems-quilt-description/desc
new file mode 100644
index 0000000..c027224
--- /dev/null
+++ b/t/tests/patch-systems-quilt-description/desc
@@ -0,0 +1,6 @@
+Testname: patch-systems-quilt-description
+Sequence: 6000
+Version: 1.0
+Description: Test for quilt patches which do not have accompanying descriptions
+Test-For: quilt-patch-missing-description
+References: Debian Bug #498892
diff --git a/t/tests/rules-dh-unused-target-nonempty/desc b/t/tests/rules-dh-unused-target-nonempty/desc
new file mode 100644
index 0000000..a26d8b4
--- /dev/null
+++ b/t/tests/rules-dh-unused-target-nonempty/desc
@@ -0,0 +1,6 @@
+Testname: rules-dh-unused-target-nonempty
+Sequence: 6000
+Version: 1.0
+Description: Allow dh in unused targets, but nothing else
+Test-For: binary-arch-rules-but-pkg-is-arch-indep
+References: <20080806175819.GV11882@mail-vs.djpig.de>
diff --git a/t/tests/rules-dh-unused-target/desc b/t/tests/rules-dh-unused-target/desc
new file mode 100644
index 0000000..d74fb45
--- /dev/null
+++ b/t/tests/rules-dh-unused-target/desc
@@ -0,0 +1,6 @@
+Testname: rules-dh-unused-target
+Sequence: 6000
+Version: 1.0
+Description: Allow dh in unused targets
+Test-Against: binary-arch-rules-but-pkg-is-arch-indep
+References: <20080806175819.GV11882@mail-vs.djpig.de>
diff --git a/t/tests/rules-ignore-define/desc b/t/tests/rules-ignore-define/desc
new file mode 100644
index 0000000..4be9693
--- /dev/null
+++ b/t/tests/rules-ignore-define/desc
@@ -0,0 +1,6 @@
+Testname: rules-ignore-define
+Sequence: 6000
+Version: 1.0
+Description: Ignore define blocks when checking rule files
+Test-Against: binary-arch-rules-but-pkg-is-arch-indep
+References: Debian Bug#510869
diff --git a/t/tests/runtests-options/desc b/t/tests/runtests-options/desc
new file mode 100644
index 0000000..04e6397
--- /dev/null
+++ b/t/tests/runtests-options/desc
@@ -0,0 +1,9 @@
+Testname: runtests-options
+Sequence: 0700
+Version: 1.0
+Description: Test a bad package but use -C to only catch some tags
+Test-For:
+ invalid-standards-version
+Test-Against:
+ new-essential-package
+Options: -C standards-version
diff --git a/t/tests/scripts-calls-init-script/desc b/t/tests/scripts-calls-init-script/desc
new file mode 100644
index 0000000..af391ed
--- /dev/null
+++ b/t/tests/scripts-calls-init-script/desc
@@ -0,0 +1,8 @@
+Testname: scripts-calls-init-script
+Sequence: 6000
+Version: 1.0
+Description: Test proper use of invoke-rc.d
+Test-For:
+ maintainer-script-calls-init-script-directly
+ script-calls-init-script-directly
+References: Debian Bug#381485
diff --git a/t/tests/scripts-control-interpreters/desc b/t/tests/scripts-control-interpreters/desc
new file mode 100644
index 0000000..ffa3744
--- /dev/null
+++ b/t/tests/scripts-control-interpreters/desc
@@ -0,0 +1,15 @@
+Testname: scripts-control-interpreters
+Sequence: 6000
+Type: native
+Version: 1.0
+Architecture: any
+Description: Check maintainer and config script interpreters
+Test-For: control-interpreter-in-usr-local
+ wrong-path-for-interpreter
+ forbidden-config-interpreter
+ forbidden-postrm-interpreter
+ unusual-control-interpreter
+ preinst-interpreter-without-predepends
+ control-interpreter-without-depends
+ unknown-control-interpreter
+References: Debian Bug#508307
diff --git a/t/tests/scripts-maintainer-script-empty/desc b/t/tests/scripts-maintainer-script-empty/desc
new file mode 100644
index 0000000..0354700
--- /dev/null
+++ b/t/tests/scripts-maintainer-script-empty/desc
@@ -0,0 +1,5 @@
+Testname: scripts-maintainer-script-empty
+Sequence: 6000
+Version: 1.0
+Description: Test for empty maintainer scripts
+Test-For: maintainer-script-empty
diff --git a/t/tests/scripts-ocamlrun/desc b/t/tests/scripts-ocamlrun/desc
new file mode 100644
index 0000000..14faee5
--- /dev/null
+++ b/t/tests/scripts-ocamlrun/desc
@@ -0,0 +1,6 @@
+Testname: scripts-ocamlrun
+Sequence: 6000
+Version: 1.0
+Description: Test correct handling of ocamlrun scripts
+Test-Against: missing-dep-for-interpreter
+References: Debian Bug#495431
diff --git a/t/tests/shared-libs-unversioned/desc b/t/tests/shared-libs-unversioned/desc
new file mode 100644
index 0000000..be2da65
--- /dev/null
+++ b/t/tests/shared-libs-unversioned/desc
@@ -0,0 +1,8 @@
+Testname: shared-libs-unversioned
+Sequence: 6000
+Version: 1.0
+Architecture: any
+Description: Test handling of shared libraries without versioned SONAMEs
+Test-For: shlib-without-versioned-soname
+Test-Against: shlib-missing-in-control-file
+References: Debian Bug#506673
diff --git a/t/tests/standards-version-invalid/desc b/t/tests/standards-version-invalid/desc
new file mode 100644
index 0000000..87059be
--- /dev/null
+++ b/t/tests/standards-version-invalid/desc
@@ -0,0 +1,5 @@
+Testname: standards-version-invalid
+Sequence: 6000
+Version: 1.0
+Description: Test invalid standards version
+Test-For: invalid-standards-version
diff --git a/t/tests/standards-version-newer/desc b/t/tests/standards-version-newer/desc
new file mode 100644
index 0000000..4956ec6
--- /dev/null
+++ b/t/tests/standards-version-newer/desc
@@ -0,0 +1,5 @@
+Testname: standards-version-newer
+Sequence: 6000
+Version: 1.0
+Description: Test too-new standards version
+Test-For: newer-standards-version
diff --git a/t/tests/watch-file-general/desc b/t/tests/watch-file-general/desc
new file mode 100644
index 0000000..b30e808
--- /dev/null
+++ b/t/tests/watch-file-general/desc
@@ -0,0 +1,12 @@
+Testname: watch-file-general
+Sequence: 6000
+Type: non-native
+Version: 2.0.ds1-1
+Description: General watch file checks
+Test-For:
+ debian-watch-file-declares-multiple-versions
+ debian-watch-file-should-dversionmangle-not-uversionmangle
+ debian-watch-file-should-use-sf-redirector
+ debian-watch-file-unknown-version
+ debian-watch-file-uses-deprecated-sf-redirector-method
+References: Debian Bug#510398

-- 
Debian package checker


Reply to: