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

[SCM] Debian package checker branch, master, updated. 2.5.1-207-gc4e191d



The following commit has been merged in the master branch:
commit c4e191d2ad7b54cddb596c5ab93021e79f07a75b
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Aug 7 23:44:09 2011 +0200

    Made all (non-legacy) tests use/require a desc file
    
    The debs and source test suites now also use a desc file; although
    not all parts are enforced.  Particularly the "Test-For" and
    "Test-Against" fields are not checked by t/runtests yet.  Template
    support is not ready yet either.
    
    update-coverage has been completely ported to the desc files.

diff --git a/private/update-coverage b/private/update-coverage
index 0f9da81..7296214 100755
--- a/private/update-coverage
+++ b/private/update-coverage
@@ -54,7 +54,7 @@ $total = scalar keys %tags;
 
 # 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>, <t/changes/*.desc>) {
+for my $desc (<t/tests/*/desc>, <t/changes/*.desc>, <t/debs/*/desc>, <t/source/*/desc>) {
     my ($data) = read_dpkg_control($desc);
     if (exists $data->{'test-for'}) {
         for my $tag (split(' ', $data->{'test-for'})) {
@@ -63,18 +63,6 @@ for my $desc (<t/tests/*/desc>, <t/changes/*.desc>) {
     }
 }
 
-# Parse all tags files for the changes and debs test suite.
-for my $tagfile (<t/debs/*/tags>, <t/source/*/tags>) {
-    open(IN, '<', $tagfile) or die "Cannot open $tagfile: $!\n";
-    local $_;
-    while (<IN>) {
-        if (/^.: \S+(?: (?:changes|source|udeb))?: (\S+)/) {
-            delete $tags{$1};
-        }
-    }
-    close IN;
-}
-
 $tc = $total - scalar keys %tags;
 
 # Now parse all tags files from the old test suite looking for what tags that
diff --git a/t/debs/control-field-traversal-4/desc b/t/debs/control-field-traversal-4/desc
new file mode 100644
index 0000000..f735556
--- /dev/null
+++ b/t/debs/control-field-traversal-4/desc
@@ -0,0 +1,5 @@
+Testname: control-field-traversal-4
+Sequence: 6000
+Version: 1.0
+Description: Test for directory traversal issues via field names or values
+
diff --git a/t/debs/control-files-bad/desc b/t/debs/control-files-bad/desc
new file mode 100644
index 0000000..7e7544f
--- /dev/null
+++ b/t/debs/control-files-bad/desc
@@ -0,0 +1,7 @@
+Testname: control-files-bad
+Sequence: 6000
+Version: 1.0
+Description: Test for bad owner of control files
+Test-For:
+ control-file-has-bad-owner
+ control-file-has-bad-permissions
diff --git a/t/debs/control-files-weird-files/desc b/t/debs/control-files-weird-files/desc
new file mode 100644
index 0000000..ab1eb22
--- /dev/null
+++ b/t/debs/control-files-weird-files/desc
@@ -0,0 +1,8 @@
+Testname: control-files-weird-files
+Sequence: 6000
+Version: 1.0
+Description: Test for bad owner of control files
+Test-For:
+ not-allowed-control-file
+ control-file-is-empty
+ unknown-control-file
diff --git a/t/debs/copyright-file-foreign-package/desc b/t/debs/copyright-file-foreign-package/desc
new file mode 100644
index 0000000..fb6c47c
--- /dev/null
+++ b/t/debs/copyright-file-foreign-package/desc
@@ -0,0 +1,6 @@
+Testname: copyright-file-foreign-package
+Sequence: 6000
+Version: 1.0
+Description: Test for foreign symlink in package
+Test-For:
+ cannot-check-whether-usr-share-doc-symlink-points-to-foreign-package
diff --git a/t/debs/deb-format-ancient-file/desc b/t/debs/deb-format-ancient-file/desc
new file mode 100644
index 0000000..c63a29d
--- /dev/null
+++ b/t/debs/deb-format-ancient-file/desc
@@ -0,0 +1,7 @@
+Testname: deb-format-ancient-file
+Sequence: 6000
+Version: 1.0
+Description: Test package containing an ancient file
+Test-For:
+ package-contains-ancient-file
+ tar-errors-from-control
diff --git a/t/debs/deb-format-extra-member/desc b/t/debs/deb-format-extra-member/desc
new file mode 100644
index 0000000..c5f24b7
--- /dev/null
+++ b/t/debs/deb-format-extra-member/desc
@@ -0,0 +1,5 @@
+Testname: deb-format-extra-member
+Sequence: 6000
+Version: 1.0
+Description: Test package for an ar archive in the wrong order
+Test-For: malformed-deb-archive
diff --git a/t/debs/deb-format-lzma/desc b/t/debs/deb-format-lzma/desc
new file mode 100644
index 0000000..772dd3d
--- /dev/null
+++ b/t/debs/deb-format-lzma/desc
@@ -0,0 +1,5 @@
+Testname: deb-format-lzma
+Sequence: 6000
+Version: 1.0
+Description: Test package with LZMA compression
+Test-For: lzma-deb-archive
diff --git a/t/debs/deb-format-record-size/desc b/t/debs/deb-format-record-size/desc
new file mode 100644
index 0000000..f9e3f2a
--- /dev/null
+++ b/t/debs/deb-format-record-size/desc
@@ -0,0 +1,4 @@
+Testname: deb-format-record-size
+Sequence: 6000
+Version: 1.0
+Description: Test package with a non-standard tar record size
diff --git a/t/debs/deb-format-wrong-order/desc b/t/debs/deb-format-wrong-order/desc
new file mode 100644
index 0000000..8915b96
--- /dev/null
+++ b/t/debs/deb-format-wrong-order/desc
@@ -0,0 +1,5 @@
+Testname: deb-format-wrong-order
+Sequence: 6000
+Version: 1.0
+Description: Test package for an ar archive in the wrong order
+Test-For: malformed-deb-archive
diff --git a/t/debs/description-synopsis-spaces/desc b/t/debs/description-synopsis-spaces/desc
new file mode 100644
index 0000000..54bf91b
--- /dev/null
+++ b/t/debs/description-synopsis-spaces/desc
@@ -0,0 +1,4 @@
+Testname: description-synopsis-spaces
+Sequence: 6000
+Version: 1.0
+Description: Test for the synopsis starting with spaces
diff --git a/t/debs/fields-general-bad/desc b/t/debs/fields-general-bad/desc
new file mode 100644
index 0000000..7539538
--- /dev/null
+++ b/t/debs/fields-general-bad/desc
@@ -0,0 +1,13 @@
+Testname: fields-general-bad
+Sequence: 6000
+Version: 1.0
+Description: Test for package with control bad values
+Test-For:
+ bad-package-name
+ bad-relation
+ bad-version-in-relation
+ bad-version-number
+ too-many-architectures
+ unknown-architecture
+ unknown-field-in-control
+ unknown-priority
diff --git a/t/debs/fields-general-missing/desc b/t/debs/fields-general-missing/desc
new file mode 100644
index 0000000..91ed288
--- /dev/null
+++ b/t/debs/fields-general-missing/desc
@@ -0,0 +1,7 @@
+Testname: fields-general-missing
+Sequence: 6000
+Version: 1.0
+Description: Test for missing control fields
+Test-For:
+  no-architecture-field
+  no-maintainer-field
diff --git a/t/debs/fields-malformed-source/desc b/t/debs/fields-malformed-source/desc
new file mode 100644
index 0000000..0b2e209
--- /dev/null
+++ b/t/debs/fields-malformed-source/desc
@@ -0,0 +1,5 @@
+Testname: fields-malformed-source
+Sequence: 6000
+Version: 1.0
+Description: Test for bad source package name
+Test-For: source-field-malformed
diff --git a/t/debs/fields-multi-arch-illegal/desc b/t/debs/fields-multi-arch-illegal/desc
new file mode 100644
index 0000000..2e115a5
--- /dev/null
+++ b/t/debs/fields-multi-arch-illegal/desc
@@ -0,0 +1,5 @@
+Testname: fields-multi-arch-illegal
+Sequence: 6000
+Version: 1.0
+Description: Test package with illegal Multi-arch value
+Test-For: illegal-multi-arch-value
diff --git a/t/debs/fields-multi-arch-unknown/desc b/t/debs/fields-multi-arch-unknown/desc
new file mode 100644
index 0000000..b51d5db
--- /dev/null
+++ b/t/debs/fields-multi-arch-unknown/desc
@@ -0,0 +1,5 @@
+Testname: fields-multi-arch-unknown
+Sequence: 6000
+Version: 1.0
+Description: Test package with an unknown Multi-arch value
+Test-For: unknown-multi-arch-value
diff --git a/t/debs/fields-obsolete-relation/desc b/t/debs/fields-obsolete-relation/desc
new file mode 100644
index 0000000..bc04873
--- /dev/null
+++ b/t/debs/fields-obsolete-relation/desc
@@ -0,0 +1,5 @@
+Testname: fields-obsolete-relation
+Sequence: 6000
+Version: 1.0
+Description: Test for obsolete relation syntax in a binary package
+Test-For: obsolete-relation-form
diff --git a/t/debs/fields-wildcard-binary/desc b/t/debs/fields-wildcard-binary/desc
new file mode 100644
index 0000000..b6e4bdf
--- /dev/null
+++ b/t/debs/fields-wildcard-binary/desc
@@ -0,0 +1,6 @@
+Testname: fields-wildcard-binary
+Sequence: 6000
+Version: 1.0
+Description: Test for architecture wildcard in binary package
+Test-For: arch-wildcard-in-binary-package
+
diff --git a/t/runtests b/t/runtests
index 4ac23d1..a7d3f21 100755
--- a/t/runtests
+++ b/t/runtests
@@ -242,112 +242,44 @@ run_tests(\&test_changes, @tests);
 $tests_run += scalar(@tests);
 msg_flush;
 
-# --- Run all debs tests
-
-$prev = $prev || scalar(@tests);
-@tests = ();
-if ($singletest) {
-    my $test = $singletest;
-    if (-d "$TESTSET/debs/$test") {
-	@tests = ($test);
-    }
-} elsif ($tag) {
-    @tests = generic_find_test_for_tag($tag, "$TESTSET/debs/*/tags");
-} else {
-    unless (-d "$TESTSET/debs") {
-	fail("cannot find $TESTSET/debs: $!");
-    }
-    @tests = map {
-	if (-d $_) {
-	    s,^\Q$TESTSET/debs/\E,,;
-	    $_;
-	} else {
-	    ();
+foreach my $tsi (['debs', "$TESTSET/debs/*/desc", sub { generic_test_runner('debs', 'deb', @_) } ],
+		 ['source', "$TESTSET/source/*/desc", sub { generic_test_runner('source', 'dsc', @_) } ],
+		 ['tests', "$TESTSET/tests/*/desc", sub { test_package('tests', @_) } ]) {
+    my ($tdir, $globstr, $runner) = @$tsi;
+    $prev = $prev || scalar(@tests);
+    @tests = ();
+    if ($singletest) {
+	my $test = $singletest;
+	if (-d "$TESTSET/$tdir/$test") {
+	    @tests = ($test);
+	} elsif (-f "$LINTIAN_ROOT/checks/$singletest.desc"){
+	    @tests = map { read_dpkg_control($_) } <$TESTSET/tests/$singletest-*/desc>;
 	}
-    } sort(<$TESTSET/debs/*>);
-}
-if ($prev and @tests) {
-    print "\n";
-    $prev = 0;
-}
-print "Found the following debs tests: @tests\n" if $DEBUG;
-print "Raw Debian package tests:\n" if @tests;
-
-run_tests( sub { generic_test_runner('debs', 'deb', @_) }, @tests);
-$tests_run += scalar(@tests);
-msg_flush;
-
-# --- Run all source tests
-
-$prev = $prev || scalar(@tests);
-@tests = ();
-if ($singletest) {
-    my $test = $singletest;
-    if (-d "$TESTSET/source/$test") {
-	@tests = ($test);
-    }
-} elsif ($tag) {
-    @tests = generic_find_test_for_tag($tag, "$TESTSET/source/*/tags");
-} else {
-    unless (-d "$TESTSET/source") {
-	fail("cannot find $TESTSET/source: $!");
-    }
-    @tests = map {
-	if (-d $_) {
-	    s,^\Q$TESTSET/source/\E,,;
-	    $_;
-	} else {
-	    ();
+    } elsif ($tag) {
+	@tests = find_tests_for_tag($tag, "$globstr");
+    } else {
+	unless (-d "$TESTSET/$tdir/") {
+	    fail("cannot find $TESTSET/$tdir: $!");
 	}
-    } sort(<$TESTSET/source/*>);
-}
-if ($prev and @tests) {
-    print "\n";
-    $prev = 0;
-}
-print "Found the following source tests: @tests\n" if $DEBUG;
-print "Raw Debian source package tests:\n" if @tests;
-
-run_tests( sub { generic_test_runner('source', 'dsc', @_) }, @tests);
-
-$tests_run += scalar(@tests);
-msg_flush;
-
-# --- Run all package tests
-
-$prev = $prev || scalar(@tests);
-@tests = ();
-if ($singletest) {
-    my $desc = "$TESTSET/tests/$singletest/desc";
-    if (-f $desc) {
-	@tests = read_dpkg_control($desc);
-    } elsif (-f "$LINTIAN_ROOT/checks/$singletest.desc"){
-	@tests = map { read_dpkg_control($_) } <$TESTSET/tests/$singletest-*/desc>;
+	@tests = map { read_dpkg_control($_) } glob $globstr;
     }
-} elsif ($tag) {
-    @tests = find_tests_for_tag($tag, "$TESTSET/tests/*/desc");
-} else {
-    unless (-d "$TESTSET/tests/") {
-	fail("cannot find $TESTSET/tests: $!");
-    }
-    @tests = map { read_dpkg_control($_) } <$TESTSET/tests/*/desc>;
-}
-@tests = sort {
-    $a->{sequence} <=> $b->{sequence}
-	|| $a->{testname} cmp $b->{testname}
+    @tests = sort {
+	$a->{sequence} <=> $b->{sequence}
+          || $a->{testname} cmp $b->{testname}
     } @tests;
-print "\n" if ($prev and @tests);
-if ($DEBUG) {
-    print 'Found the following tests: ';
-    print join(' ', map { $_->{testname} } @tests);
-    print "\n";
-}
-print "Package tests:\n" if @tests;
+    print "\n" if ($prev and @tests);
+    if ($DEBUG) {
+	print 'Found the following tests: ';
+	print join(' ', map { $_->{testname} } @tests);
+	print "\n";
+    }
+    print "Package tests ($tdir):\n" if @tests;
 
-run_tests(sub { test_package('tests', @_) }, @tests);
+    run_tests($runner, @tests);
+    $tests_run += scalar(@tests);
+    msg_flush;
+}
 
-$tests_run += scalar(@tests);
-msg_flush;
 
 # --- Check whether we ran any tests
 
@@ -589,7 +521,15 @@ sub generic_find_test_for_tag {
 # Returns a truth value on success, undef on test failure.  May call die/fail
 # if the test is broken.
 sub generic_test_runner {
-    my ($dir, $ext, $test) = @_;
+    my ($dir, $ext, $testdata) = @_;
+
+    if (!check_test_is_sane($TESTSET, $testdata)) {
+	msg_print "Skipping test $testdata->{testname} $testdata->{version}... architecture mismatch\n";
+	return 1;
+    }
+
+    my $test = $testdata->{testname};
+
     msg_print "Running $test... ";
 
     my $testdir = "$TESTSET/$dir/$test";
@@ -614,7 +554,7 @@ sub generic_test_runner {
     runsystem_ok("$LINTIAN --allow-root --no-cfg -I -E $targetdir/*.$ext 2>&1"
 		 . " | sort > $RUNDIR/tags.$test");
 
-    return _check_result(undef, "$testdir/tags", "$RUNDIR/tags.$test");
+    return _check_result($testdata, "$testdir/tags", "$RUNDIR/tags.$test");
 }
 
 sub _check_result {
@@ -655,6 +595,8 @@ sub _check_result {
 	open my $etags, '<', $actual or fail("opening: $actual");
 	while (<$etags>) {
 		next if m/^N: /;
+		# Some of the traversal tests are skipped; accept that in the output
+		next if m/tainted/o && m/skipping/o;
 		# Looks for "$code: $package[ $type]: $tag"
 		if (not /^.: \S+(?: (?:changes|source|udeb))?: (\S+)/o) {
 		    msg_print (($testdata->{'todo'} eq 'yes')? 'TODO' : 'E');
@@ -797,7 +739,7 @@ sub check_test_is_sane {
 	print 'check_test_is_sane <= ' . Dumper($data);
     }
 
-    unless ($data->{testname} && $data->{version}) {
+    unless ($data->{testname} && exists $data->{version}) {
 	fail('Name or Version missing');
     }
 
diff --git a/t/source/changelog-file-symlink/control b/t/source/changelog-file-symlink/control
index 3cfb4bb..44ed361 100644
--- a/t/source/changelog-file-symlink/control
+++ b/t/source/changelog-file-symlink/control
@@ -8,7 +8,7 @@ Standards-Version: 3.9.1
 Package: changelog-file-symlink
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Test for directory traversal issues via field names or values
+Description: Test for d/changelog being a symlink
  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.
diff --git a/t/source/changelog-file-symlink/desc b/t/source/changelog-file-symlink/desc
new file mode 100644
index 0000000..f92fe08
--- /dev/null
+++ b/t/source/changelog-file-symlink/desc
@@ -0,0 +1,5 @@
+Testname: changelog-file-symlink
+Sequence: 6000
+Version: 1.0
+Description: Test for d/changelog being a symlink
+Test-For: changelog-is-symlink
diff --git a/t/source/control-field-traversal-1/desc b/t/source/control-field-traversal-1/desc
new file mode 100644
index 0000000..f2be4f1
--- /dev/null
+++ b/t/source/control-field-traversal-1/desc
@@ -0,0 +1,4 @@
+Testname: control-field-traversal-1
+Sequence: 6000
+Version: 1.0
+Description: Test for directory traversal issues via field names or values
diff --git a/t/source/control-field-traversal-2/desc b/t/source/control-field-traversal-2/desc
new file mode 100644
index 0000000..e407911
--- /dev/null
+++ b/t/source/control-field-traversal-2/desc
@@ -0,0 +1,4 @@
+Testname: control-field-traversal-2
+Sequence: 6000
+Version: 1.0
+Description: Test for directory traversal issues via field names or values
diff --git a/t/source/control-field-traversal-3/desc b/t/source/control-field-traversal-3/desc
new file mode 100644
index 0000000..c0343c7
--- /dev/null
+++ b/t/source/control-field-traversal-3/desc
@@ -0,0 +1,4 @@
+Testname: control-field-traversal-3
+Sequence: 6000
+Version: 1.0
+Description: Test for directory traversal issues via field names or values
diff --git a/t/source/control-file-duplicate-field/control b/t/source/control-file-duplicate-field/control
index db122cc..3d3ebaf 100644
--- a/t/source/control-file-duplicate-field/control
+++ b/t/source/control-file-duplicate-field/control
@@ -9,7 +9,7 @@ Package: control-file-duplicate-field
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Test for missing separators in control files
+Description: Test for d/control containing duplicate fields
  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.
diff --git a/t/source/control-file-duplicate-field/desc b/t/source/control-file-duplicate-field/desc
new file mode 100644
index 0000000..8828bbe
--- /dev/null
+++ b/t/source/control-file-duplicate-field/desc
@@ -0,0 +1,5 @@
+Testname: control-file-duplicate-field
+Sequence: 6000
+Version: 1.0
+Description: Test for d/control containing duplicate fields
+Test-For: debian-control-with-duplicate-fields
diff --git a/t/source/control-file-missing-separator/desc b/t/source/control-file-missing-separator/desc
new file mode 100644
index 0000000..a752965
--- /dev/null
+++ b/t/source/control-file-missing-separator/desc
@@ -0,0 +1,5 @@
+Testname: control-file-missing-separator
+Sequence: 6000
+Version: 1.0
+Description: Test for missing separators in control files
+Test-For: missing-separator-between-items
diff --git a/t/source/cruft-ancient-file/desc b/t/source/cruft-ancient-file/desc
new file mode 100644
index 0000000..7273972
--- /dev/null
+++ b/t/source/cruft-ancient-file/desc
@@ -0,0 +1,5 @@
+Testname: cruft-ancient-file
+Sequence: 6000
+Version: 1.0
+Description: Test package for ancient files producing tar errors
+Test-For: tar-errors-from-source
diff --git a/t/source/debian-source-dir-unknown-source-format/control b/t/source/debian-source-dir-unknown-source-format/control
index be1fcd8..1a13669 100644
--- a/t/source/debian-source-dir-unknown-source-format/control
+++ b/t/source/debian-source-dir-unknown-source-format/control
@@ -8,7 +8,7 @@ Standards-Version: 3.8.2
 Package: debian-source-dir-unknown-source-format
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Test for missing separators in control files
+Description: Test for source package without a known source format
  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.
diff --git a/t/source/debian-source-dir-unknown-source-format/desc b/t/source/debian-source-dir-unknown-source-format/desc
new file mode 100644
index 0000000..2605d35
--- /dev/null
+++ b/t/source/debian-source-dir-unknown-source-format/desc
@@ -0,0 +1,5 @@
+Testname: debian-source-dir-unknown-source-format
+Sequence: 6000
+Version: 1.0
+Description: Test for d/changelog being a symlink
+Test-For: unknown-source-format
diff --git a/t/source/debian-symlink/desc b/t/source/debian-symlink/desc
new file mode 100644
index 0000000..4eca8e5
--- /dev/null
+++ b/t/source/debian-symlink/desc
@@ -0,0 +1,4 @@
+Testname: debian-symlink
+Sequence: 6000
+Version: 1.0
+Description: Test for debian-dir being a symlink
diff --git a/t/source/magic-architecture-srcpkg-ok/control b/t/source/magic-architecture-srcpkg-ok/control
index 033e2fa..b281aea 100644
--- a/t/source/magic-architecture-srcpkg-ok/control
+++ b/t/source/magic-architecture-srcpkg-ok/control
@@ -8,7 +8,7 @@ Standards-Version: 3.9.2
 Package: magic-architecture-srcpkg-ok-data
 Architecture: all
 Depends: ${misc:Depends}
-Description: Test package for "all" plus specific architectures in .dscs
+Description: Test package for "all" plus specific arch in .dscs
  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.
@@ -16,7 +16,9 @@ Description: Test package for "all" plus specific architectures in .dscs
 Package: magic-architecture-srcpkg-ok
 Architecture: amd64
 Depends: ${misc:Depends}
-Description: Test package for "all" plus specific architectures in .dscs
+Description: Test package for "all" plus specific arch in .dscs (a)
  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.
+ .
+ Architecture specific package.
diff --git a/t/source/magic-architecture-srcpkg-ok/desc b/t/source/magic-architecture-srcpkg-ok/desc
new file mode 100644
index 0000000..a56ec60
--- /dev/null
+++ b/t/source/magic-architecture-srcpkg-ok/desc
@@ -0,0 +1,5 @@
+Testname: magic-architecture-srcpkg-ok
+Sequence: 6000
+Version: 1.0
+Description: Test package for "all" plus specific arch in .dscs
+Test-Against: magic-arch-in-arch-list
diff --git a/t/source/magic-architecture-srcpkg-ok/tags b/t/source/magic-architecture-srcpkg-ok/tags
index 3babbaf..e69de29 100644
--- a/t/source/magic-architecture-srcpkg-ok/tags
+++ b/t/source/magic-architecture-srcpkg-ok/tags
@@ -1,2 +0,0 @@
-I: magic-architecture-srcpkg-ok source: duplicate-long-description magic-architecture-srcpkg-ok-data magic-architecture-srcpkg-ok
-I: magic-architecture-srcpkg-ok source: duplicate-short-description magic-architecture-srcpkg-ok-data magic-architecture-srcpkg-ok
diff --git a/t/source/magic-architecture-srcpkg-wrong/desc b/t/source/magic-architecture-srcpkg-wrong/desc
new file mode 100644
index 0000000..6726bab
--- /dev/null
+++ b/t/source/magic-architecture-srcpkg-wrong/desc
@@ -0,0 +1,5 @@
+Testname: magic-architecture-srcpkg-wrong
+Sequence: 6000
+Version: 1.0
+Description: Test package for "any" plus specific arch in .dscs
+Test-For: magic-arch-in-arch-list
diff --git a/t/source/package-version-0/desc b/t/source/package-version-0/desc
new file mode 100644
index 0000000..ffec6c3
--- /dev/null
+++ b/t/source/package-version-0/desc
@@ -0,0 +1,4 @@
+Testname: package-version-0
+Sequence: 6000
+Version: 0
+Description: Test a package with version 0
diff --git a/t/source/unpack-srcpkg-dot-dir/desc b/t/source/unpack-srcpkg-dot-dir/desc
new file mode 100644
index 0000000..3f9a2bc
--- /dev/null
+++ b/t/source/unpack-srcpkg-dot-dir/desc
@@ -0,0 +1,4 @@
+Testname: unpack-srcpkg-dot-dir
+Sequence: 6000
+Version: 1.0
+Description: Test package for upstream tar files with a ./ prefix
diff --git a/t/source/unpack-srcpkg-dot-subdir/desc b/t/source/unpack-srcpkg-dot-subdir/desc
new file mode 100644
index 0000000..b65343d
--- /dev/null
+++ b/t/source/unpack-srcpkg-dot-subdir/desc
@@ -0,0 +1,4 @@
+Testname: unpack-srcpkg-dot-subdir
+Sequence: 6000
+Version: 1.0
+Description: Test package for upstream tar files with a ./ prefix
diff --git a/t/source/unpack-srcpkg-lzma/desc b/t/source/unpack-srcpkg-lzma/desc
new file mode 100644
index 0000000..bb3cb7a
--- /dev/null
+++ b/t/source/unpack-srcpkg-lzma/desc
@@ -0,0 +1,4 @@
+Testname: unpack-srcpkg-lzma
+Sequence: 6000
+Version: 1.0
+Description: Test package for lzma-compressed source packages
diff --git a/t/source/unpack-srcpkg-no-subdir/desc b/t/source/unpack-srcpkg-no-subdir/desc
new file mode 100644
index 0000000..f39046a
--- /dev/null
+++ b/t/source/unpack-srcpkg-no-subdir/desc
@@ -0,0 +1,4 @@
+Testname: unpack-srcpkg-no-subdir
+Sequence: 6000
+Version: 1.0
+Description: Test package for upstream tar files with no subdirectories
diff --git a/t/source/unpack-srcpkg-xz/desc b/t/source/unpack-srcpkg-xz/desc
new file mode 100644
index 0000000..1a05228
--- /dev/null
+++ b/t/source/unpack-srcpkg-xz/desc
@@ -0,0 +1,4 @@
+Testname: unpack-srcpkg-xz
+Sequence: 6000
+Version: 1.0
+Description: Test package for xz-compressed source packages

-- 
Debian package checker


Reply to: