[lintian] 01/01: t: Add test for tag
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit f7817906852bb43ef2cbd5e62a6e0b3a3d37498d
Author: Niels Thykier <niels@thykier.net>
Date: Mon Sep 1 22:31:41 2014 +0200
t: Add test for tag
Signed-off-by: Niels Thykier <niels@thykier.net>
---
t/COVERAGE | 6 ++----
t/source/testsuite-inconsistent-field/Makefile | 19 +++++++++++++++++++
t/source/testsuite-inconsistent-field/desc | 5 +++++
t/source/testsuite-inconsistent-field/tags | 1 +
4 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/t/COVERAGE b/t/COVERAGE
index 0e7f108..bb5d68e 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,6 +1,6 @@
Last generated 2014-09-01
-Coverage (Tags): 1033/1103 (93.65%), w. legacy tests: 1091/1103 (98.91%)
-Coverage (Checks): 37/45 (82.22%), w. legacy tests: 39/45 (86.67%)
+Coverage (Tags): 1034/1103 (93.74%), w. legacy tests: 1092/1103 (99.00%)
+Coverage (Checks): 38/45 (84.44%), w. legacy tests: 40/45 (88.89%)
The following tags are not tested by the test suite:
@@ -20,8 +20,6 @@ menus executable-menu-file
shared-libs shlib-without-PT_GNU_STACK-section
-testsuite inconsistent-testsuite-field
-
The following tags are only tested by the legacy test suite:
binaries binary-has-unneeded-section
diff --git a/t/source/testsuite-inconsistent-field/Makefile b/t/source/testsuite-inconsistent-field/Makefile
new file mode 100644
index 0000000..121df19
--- /dev/null
+++ b/t/source/testsuite-inconsistent-field/Makefile
@@ -0,0 +1,19 @@
+name = testsuite-inconsistent-field
+dir = $(name)-1.0
+
+all:
+ mkdir $(dir)
+ mkdir $(dir)/debian
+ cp changelog copyright control rules $(dir)/debian/
+ echo 7 > $(dir)/debian/compat
+ mkdir $(dir)/debian/source
+ echo 1.0 > $(dir)/debian/source/format
+ mkdir $(dir)/debian/tests
+ echo 'Tests: test.sh' > $(dir)/debian/tests/control
+ echo '#!/bin/sh' > $(dir)/debian/tests/test.sh
+ dpkg-source -sn -b $(dir)
+ sed -i '/^Testsuite: /d' *.dsc
+
+clean:
+ rm -rf $(dir)
+ rm -f $(name)_*
diff --git a/t/source/testsuite-inconsistent-field/desc b/t/source/testsuite-inconsistent-field/desc
new file mode 100644
index 0000000..45e48aa
--- /dev/null
+++ b/t/source/testsuite-inconsistent-field/desc
@@ -0,0 +1,5 @@
+Testname: testsuite-inconsistent-field
+Sequence: 6000
+Version: 1.0
+Description: Test a source with inconsistent Testsuite field
+Test-For: inconsistent-testsuite-field
diff --git a/t/source/testsuite-inconsistent-field/tags b/t/source/testsuite-inconsistent-field/tags
new file mode 100644
index 0000000..e9d98ef
--- /dev/null
+++ b/t/source/testsuite-inconsistent-field/tags
@@ -0,0 +1 @@
+I: testsuite-inconsistent-field source: inconsistent-testsuite-field
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: