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

treinen pushed a commit to branch master
in repository dose3.

commit b555218c29d6c64c05339f610b74da9be02d1dbc
Author: Ralf Treinen <trei...@pps.univ-paris-diderot.fr>
Date:   Sat Jan 30 15:40:25 2016 +0100

    add a test case for bug811569
---
 debian/changelog                         |  5 +++--
 debian/tests/bug811569                   | 17 +++++++++++++++++
 debian/tests/control                     |  2 +-
 debian/tests/repos/weird.fields.Packages | 21 +++++++++++++++++++++
 4 files changed, 42 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 49fc382..c532e77 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,8 +4,9 @@ dose3 (4.1-4) UNRELEASED; urgency=medium
     (closes: #812203)
   * patch lexing-debian-fields: syntax of debian fields according to
     debian policy. Patch taken from upstream. (closes: #811569)
-
- -- Ralf Treinen <trei...@debian.org>  Sat, 30 Jan 2016 15:22:27 +0100
+  * add a test case for bug#811569
+  
+ -- Ralf Treinen <trei...@debian.org>  Sat, 30 Jan 2016 15:43:37 +0100
 
 dose3 (4.1-3) unstable; urgency=medium
 
diff --git a/debian/tests/bug811569 b/debian/tests/bug811569
new file mode 100755
index 0000000..47c17de
--- /dev/null
+++ b/debian/tests/bug811569
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# debian bug 811569: accept weird characters in debian field names
+
+set -e
+
+this=dose-debcheck
+indir=debian/tests/repos
+outdir=${ADT_ARTIFACTS}/${this}
+mkdir -p ${outdir}
+
+packfile=$indir/weird.fields.Packages
+base=$(basename $packfile)
+
+dose-debcheck ${packfile} \
+    | tee ${outdir}/${base}.out \
+    | grep -q "broken-packages: 0"
diff --git a/debian/tests/control b/debian/tests/control
index 24c025a..09c2d67 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,4 +1,4 @@
-Tests: dose-debcheck
+Tests: dose-debcheck bug811569
 Depends: dose-distcheck
 
 Tests: dose-builddebcheck
diff --git a/debian/tests/repos/weird.fields.Packages 
b/debian/tests/repos/weird.fields.Packages
new file mode 100644
index 0000000..b54ef11
--- /dev/null
+++ b/debian/tests/repos/weird.fields.Packages
@@ -0,0 +1,21 @@
+Package: aaa
+Architecture: toaster
+Version: 2.1
+Depends: bbb
+Python_Version: 2.7
+
+Package: bbb
+Architecture: toaster
+Version: 3.2
+Depends: ccc
+# Depends: commented line should be ignored
+
+Package: ccc
+Architecture: toaster
+Version: 4.3
+Conflicts: ddd
+
+Package: build-essential
+Architecture: toaster
+Version: 5.5-5
+Depends: ccc

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/dose3.git

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to