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

treinen pushed a commit to branch stretch/master
in repository dose3.

commit 8501f437d6cec7b4c96c564bfb037503c8a5f68a
Author: Ralf Treinen <trei...@free.fr>
Date:   Tue Jul 18 22:24:13 2017 +0200

    cherry-pick 0f07033: add test case for versioned virtual packages
---
 debian/changelog                    |  1 +
 debian/tests/bug867104              | 17 +++++++++++++++++
 debian/tests/control                |  2 +-
 debian/tests/repos/virtual_and_real | 14 ++++++++++++++
 4 files changed, 33 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index af570ef..88bdbd3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ dose3 (5.0.1-8+deb9u1) stretch; urgency=medium
   * patch virtual_provides: packages that provide the same virtual package
     in different versions, or that provide the same versioned virtual package
     as a real package, are co-installable (closes: #867104).
+  * add test-case for versioned virtual packages
 
  -- Ralf Treinen <trei...@debian.org>  Tue, 29 Aug 2017 14:43:57 +0200
 
diff --git a/debian/tests/bug867104 b/debian/tests/bug867104
new file mode 100755
index 0000000..9697c11
--- /dev/null
+++ b/debian/tests/bug867104
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# debian bug 867104: wanna-build issue with src:perl versioned Provides
+
+set -e
+
+this=dose-debcheck
+indir=debian/tests/repos
+outdir=${ADT_ARTIFACTS}/${this}
+mkdir -p ${outdir}
+
+packfile=$indir/virtual_and_real
+base=$(basename $packfile)
+
+dose-debcheck --checkonly=main ${packfile} \
+    | tee ${outdir}/${base}.out \
+    | grep -q "broken-packages: 0"
diff --git a/debian/tests/control b/debian/tests/control
index 29b1424..abb12d7 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,4 +1,4 @@
-Tests: dose-debcheck bug811569 bug790422
+Tests: dose-debcheck bug811569 bug790422 bug867104
 Depends: dose-distcheck
 
 Tests: dose-builddebcheck
diff --git a/debian/tests/repos/virtual_and_real 
b/debian/tests/repos/virtual_and_real
new file mode 100644
index 0000000..28553c6
--- /dev/null
+++ b/debian/tests/repos/virtual_and_real
@@ -0,0 +1,14 @@
+Package: main
+Version: 1
+Architecture: amd64
+Depends: perl-base, libscalar-list-utils-perl (= 1:1.48-1)
+
+Package: perl-base
+Version: 5.24.1-5
+Architecture: amd64
+Provides: libscalar-list-utils-perl (= 1:1.42.02)
+
+Package: libscalar-list-utils-perl
+Version: 1:1.48-1
+Architecture: amd64
+

-- 
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