[Pkg-ocaml-maint-commits] [dose3] 01/01: add as-installed package check: edos-debcheck
Ralf Treinen
treinen at moszumanska.debian.org
Fri Oct 17 19:01:56 UTC 2014
This is an automated email from the git hooks/post-receive script.
treinen pushed a commit to branch master
in repository dose3.
commit 10c05354385c23c55155b1d2e96203c179fe5072
Author: Ralf Treinen <treinen at free.fr>
Date: Fri Oct 17 20:55:09 2014 +0200
add as-installed package check: edos-debcheck
---
debian/changelog | 6 ++++++
debian/control | 1 +
debian/tests/control | 2 ++
debian/tests/dose-debcheck | 16 ++++++++++++++++
debian/tests/repos/Packages1 | 15 +++++++++++++++
5 files changed, 40 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2649675..e443033 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+dose3 (3.2.2-4) UNRELEASED; urgency=medium
+
+ * add rudimentary as-installed package checks
+
+ -- Ralf Treinen <treinen at debian.org> Fri, 17 Oct 2014 20:54:48 +0200
+
dose3 (3.2.2-3) unstable; urgency=medium
* debian/changelog: fix my email address in previous changelog entry.
diff --git a/debian/control b/debian/control
index 062c7eb..ff1c5b9 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,7 @@ Standards-Version: 3.9.5
Homepage: http://www.mancoosi.org/software/
Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/dose3.git
Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/dose3.git
+XS-Testsuite: autopkgtest
Package: libdose3-ocaml-dev
Architecture: any
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..b5f3f5e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: dose-debcheck
+Depends: dose-distcheck
diff --git a/debian/tests/dose-debcheck b/debian/tests/dose-debcheck
new file mode 100755
index 0000000..8c2def1
--- /dev/null
+++ b/debian/tests/dose-debcheck
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+this=dose-debcheck
+indir=debian/tests/repos
+outdir=${ADT_ARTIFACTS}/${this}
+mkdir -p ${outdir}
+
+for packfile in $indir/Packages1
+do
+ base=$(basename $packfile)
+ dose-debcheck ${packfile} \
+ | tee ${outdir}/${base}.out \
+ | grep -q "broken-packages: 0"
+done
diff --git a/debian/tests/repos/Packages1 b/debian/tests/repos/Packages1
new file mode 100644
index 0000000..683828a
--- /dev/null
+++ b/debian/tests/repos/Packages1
@@ -0,0 +1,15 @@
+Package: aaa
+Architecture: toaster
+Version: 2.1
+Depends: bbb
+
+Package: bbb
+Architecture: toaster
+Version: 3.2
+Depends: ccc
+
+Package: ccc
+Architecture: toaster
+Version: 4.3
+Conflicts: ddd
+
--
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