[med-svn] [njplot] 01/03: autopkgtest needs running X server - use xvfb

Andreas Tille tille at debian.org
Sat Jan 14 08:01:34 UTC 2017


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

tille pushed a commit to branch master
in repository njplot.

commit 0c08fd91c18e12da794d31f832aae622bc2c9288
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jan 14 08:54:52 2017 +0100

    autopkgtest needs running X server - use xvfb
---
 debian/changelog           | 6 ++++++
 debian/tests/control       | 2 +-
 debian/tests/run-unit-test | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8f8e365..fd0ffe3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+njplot (2.4-5) UNRELEASED; urgency=medium
+
+  * autopkgtest needs running X server - use xvfb
+
+ -- Andreas Tille <tille at debian.org>  Sat, 14 Jan 2017 08:52:13 +0100
+
 njplot (2.4-4) unstable; urgency=medium
 
   * Team upload
diff --git a/debian/tests/control b/debian/tests/control
index d2aa55a..5b7ae3b 100644
--- a/debian/tests/control
+++ 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 5af7535..dae698a 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -16,7 +16,7 @@ gunzip *.gz
 echo "TEST START"
 
 echo "/usr/bin/njplot -psonly example.phb"
-/usr/bin/njplot -psonly example.phb
+xvfb-run --auto-servernum --server-num=20 -s '-screen 0 1024x768x24' /usr/bin/njplot -psonly example.phb
 
 echo "file example.ps"
 file example.ps

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/njplot.git



More information about the debian-med-commit mailing list