[SCM] kplotting packaging branch, master, updated. debian/5.16.0-1-11-g27b7505

Maximiliano Curia maxy at moszumanska.debian.org
Sun Feb 14 17:23:46 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/frameworks/kplotting.git;a=commitdiff;h=dfef065

The following commit has been merged in the master branch:
commit dfef065efd1974a16df2ee076d6e7bb0b7eb5abf
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Sun Feb 14 11:09:42 2016 +0100

    Move auto_tests back to autopkgtests using xephyr
---
 debian/control         |  4 +---
 debian/rules           |  3 ++-
 debian/tests/control   |  6 +++---
 debian/tests/testsuite | 10 +++++++++-
 4 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/debian/control b/debian/control
index f030f88..7e75469 100644
--- a/debian/control
+++ b/debian/control
@@ -7,9 +7,7 @@ Build-Depends: cmake (>= 2.8.12),
                debhelper (>= 9),
                extra-cmake-modules (>= 5.19.0~),
                pkg-kde-tools (>= 0.15.15ubuntu1~),
-               qtbase5-dev (>= 5.4),
-               xauth,
-               xvfb
+               qtbase5-dev (>= 5.4)
 Standards-Version: 3.9.6
 Homepage: https://projects.kde.org/projects/frameworks/kplotting
 Vcs-Browser: http://anonscm.debian.org/cgit/pkg-kde/frameworks/kplotting.git
diff --git a/debian/rules b/debian/rules
index b6d5340..c93cb21 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,4 +7,5 @@ override_dh_strip:
 	$(overridden_command) --ddeb-migration='libkf5plotting5-dbg (<= 5.19.0-1~~)'
 
 override_dh_auto_test:
-	xvfb-run -a $(overridden_command)
+	# Disable auto_tests at build time
+	:
diff --git a/debian/tests/control b/debian/tests/control
index 541be7d..bdd3d8f 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,6 +1,6 @@
-# Tests: testsuite
-# Depends: @, @builddeps@, build-essential
-# Restrictions: build-needed
+Tests: testsuite
+Depends: @, @builddeps@, build-essential, xvfb, xauth, dbus-x11, xserver-xephyr
+Restrictions: build-needed
 
 Tests: acc
 Depends: @, dh-acc, exuberant-ctags
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
index f6083b5..1b28f44 100755
--- a/debian/tests/testsuite
+++ b/debian/tests/testsuite
@@ -1,3 +1,11 @@
 #!/bin/sh
 
-xvfb-run -a dh_auto_test
+[ -e debian/tests.home ] || mkdir debian/tests.home
+export HOME="$(pwd)/debian/tests.home"
+mkdir "$HOME"/.config || true
+xvfb-run -a --server-args="-screen 0 1024x768x24" \
+    Xephyr -reset -br -screen 1024x768 :2 & x_pid=$!
+
+trap "{ kill ${x_pid}; rm -rf debian/tests.home }" EXIT
+
+DISPLAY=:2 dbus-launch --exit-with-session dh_auto_test

-- 
kplotting packaging



More information about the pkg-kde-commits mailing list