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

[lintian] 01/01: Add a regression test for a potential false positive in the "vcs-field-has-unexpected-spaces" tag. (Ref: #884870)



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit 8e1ba53fa85469ab4f2e67e7514b3a800c0a6004
Author: Chris Lamb <lamby@debian.org>
Date:   Wed Dec 20 20:22:32 2017 +0000

    Add a regression test for a potential false positive in the "vcs-field-has-unexpected-spaces" tag. (Ref: #884870)
---
 debian/changelog                                        |  3 +++
 .../debian/debian/control.in                            | 17 +++++++++++++++++
 t/tests/fields-malformed-vcs-fields-unrel/desc          |  5 +++++
 t/tests/fields-malformed-vcs-fields-unrel/tags          |  0
 4 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 331a40c..c53ed25 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -37,6 +37,9 @@ lintian (2.5.66) UNRELEASED; urgency=medium
     + [CL] Correct invalid "else if" syntax with "elsif". Thanks to Uwe
       Kleine-König for the report.
 
+  * t/tests/fields-malformed-vcs-fields-unrel:
+    + [CL] Add a regression test for a potential false positive in the
+      "vcs-field-has-unexpected-spaces" tag.  (Ref: #884870)
   * t/tests/files-multiarch-foreign-files:
     + [CL] Don't hardcode architecture triplet to fix FTBFS on non-amd64
       architectures.  (Closes: #884683)
diff --git a/t/tests/fields-malformed-vcs-fields-unrel/debian/debian/control.in b/t/tests/fields-malformed-vcs-fields-unrel/debian/debian/control.in
new file mode 100644
index 0000000..8a89a48
--- /dev/null
+++ b/t/tests/fields-malformed-vcs-fields-unrel/debian/debian/control.in
@@ -0,0 +1,17 @@
+Source: {$source}
+Priority: optional
+Section: {$section}
+Maintainer: {$author}
+Standards-Version: {$standards_version}
+Build-Depends: {$build_depends}
+Rules-Requires-Root: no
+Vcs-Git: https://anonscm.debian.org/test/test.git -b valid/syntax
+
+Package: {$source}
+Architecture: {$architecture}
+Depends: $\{misc:Depends\}
+Description: {$description}
+ 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.  It may
+ be an empty package.
diff --git a/t/tests/fields-malformed-vcs-fields-unrel/desc b/t/tests/fields-malformed-vcs-fields-unrel/desc
new file mode 100644
index 0000000..2f9aab3
--- /dev/null
+++ b/t/tests/fields-malformed-vcs-fields-unrel/desc
@@ -0,0 +1,5 @@
+Testname: fields-malformed-vcs-fields-unrel
+Description: Test malformed VCS-* fields
+Version: 1.0
+Test-Against:
+ vcs-field-has-unexpected-spaces
diff --git a/t/tests/fields-malformed-vcs-fields-unrel/tags b/t/tests/fields-malformed-vcs-fields-unrel/tags
new file mode 100644
index 0000000..e69de29

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: