summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-03-26 09:27:46 +0000
committerSimon McVittie <smcv@debian.org>2014-03-26 09:27:46 +0000
commit30b92e7ab7b38f8d63fea932b27ec247431e0113 (patch)
treeff22036f9b96fd75f15dc6c5135846286ec2e180
parent6ca919197372e2642f4702873dac233bad499206 (diff)
downloaddbus-30b92e7ab7b38f8d63fea932b27ec247431e0113.tar.gz
Improve autopkgtest supportdebian/1.8.0-3
- use a shell wildcard instead of dpkg-architecture, to avoid stderr spam failing the test if gcc is missing - wrap each test-case in an arbitrary (5 minute) timeout so that one test-case failing won't halt the whole build
-rw-r--r--debian/changelog10
-rw-r--r--debian/tests/control2
-rwxr-xr-xdebian/tests/installed-tests8
3 files changed, 15 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index c2314f07..94c2eb38 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+dbus (1.8.0-3) unstable; urgency=medium
+
+ * Improve autopkgtest support
+ - use a shell wildcard instead of dpkg-architecture, to avoid stderr spam
+ failing the test if gcc is missing
+ - wrap each test-case in an arbitrary (5 minute) timeout so that one
+ test-case failing won't halt the whole build
+
+ -- Simon McVittie <smcv@debian.org> Wed, 26 Mar 2014 09:17:20 +0000
+
dbus (1.8.0-2) unstable; urgency=low
* debian/rules: look for DEB_BUILD_PROFILES, the new name for
diff --git a/debian/tests/control b/debian/tests/control
index aa14ea06..0515c14b 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,5 +1,5 @@
Tests: installed-tests
-Depends: dbus, libdbus-1-3, dbus-1-dbg, dpkg-dev
+Depends: dbus, libdbus-1-3, dbus-1-dbg
Tests: build
Depends: libdbus-1-dev, dbus, build-essential
diff --git a/debian/tests/installed-tests b/debian/tests/installed-tests
index 0d9f1f6f..9f1be3ec 100755
--- a/debian/tests/installed-tests
+++ b/debian/tests/installed-tests
@@ -3,17 +3,16 @@
set -e
-multiarch="`dpkg-architecture -qDEB_HOST_MULTIARCH`"
-
+timeout="timeout 300s"
ret=0
i=0
-for dir in "/usr/lib/$multiarch/dbus-1.0/test" "/usr/lib/$multiarch/dbus-1.0/debug-build/lib/dbus-1.0/test"; do
+for dir in /usr/lib/*/dbus-1.0/test /usr/lib/*/dbus-1.0/debug-build/lib/dbus-1.0/test; do
for t in "$dir"/test-*; do
i=$(( $i + 1 ))
echo "# $i - $t ..."
echo "x" > "$ADTTMP/result"
- ( set +e; $t; echo "$?" > "$ADTTMP/result" ) 2>&1 | sed 's/^/# /'
+ ( set +e; $timeout $t; echo "$?" > "$ADTTMP/result" ) 2>&1 | sed 's/^/# /'
e="$(cat "$ADTTMP/result")"
case "$e" in
(0)
@@ -30,4 +29,5 @@ for dir in "/usr/lib/$multiarch/dbus-1.0/test" "/usr/lib/$multiarch/dbus-1.0/deb
done
done
+echo "1..$i"
exit $ret