[med-svn] [gdpc] 04/05: Activate autopkgtest using xvfb
Andreas Tille
tille at debian.org
Sat Dec 9 09:10:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository gdpc.
commit 91bb02f741dbffe586578e0ed407cfce5d87c330
Author: Andreas Tille <tille at debian.org>
Date: Sat Dec 9 08:34:01 2017 +0100
Activate autopkgtest using xvfb
---
debian/changelog | 6 ++++--
debian/tests/{control_not_used_since_x_application => control} | 2 +-
debian/tests/run-unit-test | 10 +++++++---
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index e2fb151..419344b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,14 @@
-gdpc (2.2.5-7) UNRELEASED; urgency=medium
+gdpc (2.2.5-7) unstable; urgency=medium
* Do not use the build architecture pkg-config (Thanks for the patch to
Helmut Grohne <helmut at subdivi.de>)
Closes: #883892
* Standards-Version: 4.1.2
* debhelper 10
+ * Activate autopkgtest using xvfb - no idea whether this makes real sense
+ but us it as an experiment
- -- Andreas Tille <tille at debian.org> Sat, 09 Dec 2017 07:50:26 +0100
+ -- Andreas Tille <tille at debian.org> Sat, 09 Dec 2017 07:53:15 +0100
gdpc (2.2.5-6) unstable; urgency=medium
diff --git a/debian/tests/control_not_used_since_x_application b/debian/tests/control
similarity index 73%
rename from debian/tests/control_not_used_since_x_application
rename to debian/tests/control
index d2aa55a..5b7ae3b 100644
--- a/debian/tests/control_not_used_since_x_application
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: @
+Depends: @, xvfb
Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index 68b20ed..0610a9b 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -5,6 +5,7 @@ pkg="gdpc"
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+ trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi
cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
@@ -14,8 +15,11 @@ cd $AUTOPKGTEST_TMP
gunzip *.gz
#test recipe from README file
-/usr/bin/gdpc cube 30 m 2 d 20 erase 1 2 3 4 liquid.test
-/usr/bin/gdpc m 2 d 10 erase xyz 2 3 4 5 md.test
-/usr/bin/gdpc m 2 d 10 erase usetypes xyz 2 3 4 5 manytypes.test
+xvfb-run --auto-servernum /usr/bin/gdpc cube 30 m 2 d 20 erase 1 2 3 4 liquid.test &
+xvfb-run --auto-servernum /usr/bin/gdpc m 2 d 10 erase xyz 2 3 4 5 md.test &
+xvfb-run --auto-servernum /usr/bin/gdpc m 2 d 10 erase usetypes xyz 2 3 4 5 manytypes.test &
+
+sleep 10
+kill -9 `ps aux | grep -w "^${USER}.*${pkg}" | grep -v "0:0[0-9] grep " | grep -v "0:0[0-9] ps " | sed "s/^${USER}[[:space:]]\+\([0-9]\+\)[[:space:]]\+.*/\1/"`
echo "PASS"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/gdpc.git
More information about the debian-med-commit
mailing list