[Pkg-ocaml-maint-commits] [dose3] 01/01: test case for bug #867104

Ralf Treinen treinen at moszumanska.debian.org
Tue Jul 18 20:28:36 UTC 2017


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

treinen pushed a commit to branch master
in repository dose3.

commit 0f07033bffb7b5dd6139c83837772e794a9270c9
Author: Ralf Treinen <treinen at free.fr>
Date:   Tue Jul 18 22:24:13 2017 +0200

    test case for bug #867104
---
 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 8f7c604..29efbb6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ dose3 (5.0.1-9) UNRELEASED; 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 a test-case for bug  #867104
   * dose-doc: set Multi-Arch=foreign
   * add build-dependency on ocamlbuild
   * standards-version 4.0.0 (no change)
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



More information about the Pkg-ocaml-maint-commits mailing list