[Pkg-ocaml-maint-commits] [dose3] 01/09: dep8 tests: dose-{debcheck, builddebcheck, outdated}
Ralf Treinen
treinen at moszumanska.debian.org
Tue Oct 21 19:15:20 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 d8b90814fba3995eaf6786a0022483c6411ff0b1
Author: Ralf Treinen <treinen at free.fr>
Date: Mon Oct 20 21:35:04 2014 +0200
dep8 tests: dose-{debcheck,builddebcheck,outdated}
---
debian/changelog | 11 ++++++-----
debian/tests/control | 7 +++++++
debian/tests/dose-builddebcheck | 16 ++++++++++++++++
debian/tests/dose-debcheck | 13 ++++++-------
debian/tests/dose-outdated | 15 +++++++++++++++
debian/tests/repos/Packages1 | 4 ++++
debian/tests/repos/Sources1 | 15 +++++++++++++++
7 files changed, 69 insertions(+), 12 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index dba32f2..888e5e5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,12 @@
dose3 (3.3~beta1-1) UNRELEASED; urgency=low
* new upstream version:
- - refreshed patches:
- binaries-prefix-edos,coinstall-binary-name,buildcheck-redirect-output
- - dropped patches that were integrated upstream:
- buildcheck-manpage,buildcheck-manpage-native-arch,multiarch-accept-value-no
- * add rudimentary as-installed package checks
+ - refreshed patches: binaries-prefix-edos, coinstall-binary-name,
+ buildcheck-redirect-output
+ - dropped patches that were integrated upstream: buildcheck-manpage,
+ buildcheck-manpage-native-arch, multiarch-accept-value-no
+ * add rudimentary as-installed package tests for dose-debcheck,
+ dose-builddebcheck, dose-outdated
-- Ralf Treinen <treinen at debian.org> Mon, 20 Oct 2014 19:59:11 +0200
diff --git a/debian/tests/control b/debian/tests/control
index b5f3f5e..24c025a 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,9 @@
Tests: dose-debcheck
Depends: dose-distcheck
+
+Tests: dose-builddebcheck
+Depends: dose-builddebcheck
+
+Tests: dose-outdated
+Depends: dose-extra
+
diff --git a/debian/tests/dose-builddebcheck b/debian/tests/dose-builddebcheck
new file mode 100755
index 0000000..b1a2cf7
--- /dev/null
+++ b/debian/tests/dose-builddebcheck
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+this=dose-builddebcheck
+indir=debian/tests/repos
+outdir=${ADT_ARTIFACTS}/${this}
+mkdir -p ${outdir}
+
+packfile=$indir/Packages1
+srcfile=$indir/Sources1
+
+base=$(basename $packfile)
+dose-builddebcheck --deb-native-arch=toaster ${packfile} ${srcfile} \
+ | tee ${outdir}/${base}.out \
+ | grep -q "broken-packages: 0"
diff --git a/debian/tests/dose-debcheck b/debian/tests/dose-debcheck
index 8c2def1..92f0705 100755
--- a/debian/tests/dose-debcheck
+++ b/debian/tests/dose-debcheck
@@ -7,10 +7,9 @@ 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
+packfile=$indir/Packages1
+base=$(basename $packfile)
+
+dose-debcheck ${packfile} \
+ | tee ${outdir}/${base}.out \
+ | grep -q "broken-packages: 0"
diff --git a/debian/tests/dose-outdated b/debian/tests/dose-outdated
new file mode 100755
index 0000000..ff59515
--- /dev/null
+++ b/debian/tests/dose-outdated
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+this=dose-outdated
+indir=debian/tests/repos
+outdir=${ADT_ARTIFACTS}/${this}
+mkdir -p ${outdir}
+
+packfile=$indir/Packages1
+base=$(basename $packfile)
+
+dose-outdated ${packfile} \
+ | tee ${outdir}/${base}.out \
+ | grep -q "broken-packages: 0"
diff --git a/debian/tests/repos/Packages1 b/debian/tests/repos/Packages1
index 683828a..a06b7c8 100644
--- a/debian/tests/repos/Packages1
+++ b/debian/tests/repos/Packages1
@@ -13,3 +13,7 @@ Architecture: toaster
Version: 4.3
Conflicts: ddd
+Package: build-essential
+Architecture: toaster
+Version: 5.5-5
+Depends: ccc
diff --git a/debian/tests/repos/Sources1 b/debian/tests/repos/Sources1
new file mode 100644
index 0000000..d0803f8
--- /dev/null
+++ b/debian/tests/repos/Sources1
@@ -0,0 +1,15 @@
+Package: xxx
+Architecture: toaster
+Version: 17.1
+Build-Depends: bbb
+
+Package: yyy
+Architecture: toaster
+Version: 18.2
+Build-Depends: ccc
+
+Package: zzz
+Architecture: toaster
+Version: 19.3
+Build-Depends: ccc
+Build-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