Package: lintian Version: 2.5.10.2 Tags: patch Followup-For: Bug #692282
Please consider the attached patch.
diff -rNu ../old/lintian-2.5.10.2/checks/control-file ./checks/control-file --- ../old/lintian-2.5.10.2/checks/control-file 2012-09-17 11:56:05.000000000 +0200 +++ ./checks/control-file 2012-11-23 23:31:07.000000000 +0100 @@ -265,6 +265,10 @@ } } +if (defined $info->source_field ('xs-testsuite') + xor -e $info->debfiles('tests/control')) { + tag 'inconsistent-xs-testsuite-field'; } + } diff -rNu ../old/lintian-2.5.10.2/checks/control-file.desc ./checks/control-file.desc --- ../old/lintian-2.5.10.2/checks/control-file.desc 2012-09-17 11:56:05.000000000 +0200 +++ ./checks/control-file.desc 2012-11-23 22:13:12.000000000 +0100 @@ -200,3 +200,15 @@ Info: The control file contains commented-out VCS-* lines, most probably a result of dh_make. These URLs should either be valid and uncommented, or removed. + +Tag: inconsistent-xs-testsuite-field +Severity: wishlist +Certainty: certain +Ref: http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=blob_plain;f=doc/README.package-tests;hb=HEAD +Info: A debian/tests/control file exists, but no "XS-Testsuite: autopkgtest" + header is present in the source stanza of debian/control, or the header + exists but not the file. + . + For discoverability, packages shipping tests for the autopkgtest + testing framework should declare their presence using an + "XS-Testsuite: autopkgtest" header in debian/control.