[SCM] kdecoration packaging branch, kubuntu_unstable, updated. 3c9af7a3883448d58ab82099559e04b906924db8

Harald Sitter apachelogger-guest at moszumanska.debian.org
Wed Dec 3 09:46:42 UTC 2014


Gitweb-URL: http://git.debian.org/?p=pkg-kde/plasma/kdecoration.git;a=commitdiff;h=3c9af7a

The following commit has been merged in the kubuntu_unstable branch:
commit 3c9af7a3883448d58ab82099559e04b906924db8
Author: Harald Sitter <sitter at kde.org>
Date:   Wed Dec 3 10:46:33 2014 +0100

    switch to autopkgtest
---
 debian/control                  |  1 +
 debian/rules                    |  2 ++
 debian/tests/control            |  4 ++++
 debian/tests/testsuite          | 10 ++++++++++
 debian/tests/testsuite.xsession | 10 ++++++++++
 5 files changed, 27 insertions(+)

diff --git a/debian/control b/debian/control
index 4b87ef9..1f1ba44 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Build-Depends: cmake,
                qtbase5-dev
 Standards-Version: 3.9.5
 Section: libs
+XS-Testsuite: autopkgtest
 Homepage: https://projects.kde.org/projects/kde/workspace/kdecoration
 
 Package: libkdecorations2-dev
diff --git a/debian/rules b/debian/rules
index cc97280..32885c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,5 @@ include /usr/share/pkg-kde-tools/qt-kde-team/3/debian-qt-kde.mk
 
 override_dh_strip:
 	$(overridden_command) --dbg-package=libkdecorations2-dbg
+
+.PHONY: override_dh_auto_test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e7fde3c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,4 @@
+Tests: testsuite
+Depends: @builddeps@, build-essential,
+         xvfb, xauth, dbus-x11, openbox
+Restrictions: rw-build-tree
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
new file mode 100644
index 0000000..00220b9
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ -d /usr/lib/ccache ]; then
+    export PATH="/usr/lib/ccache:$PATH"
+fi
+debian/rules clean 2>&1
+dpkg-source --before-build .
+debian/rules build 2>&1
+xvfb-run -a --server-args="-screen 0 1024x768x24+32" \
+    dbus-launch --exit-with-session debian/tests/testsuite.xsession
diff --git a/debian/tests/testsuite.xsession b/debian/tests/testsuite.xsession
new file mode 100755
index 0000000..3a00834
--- /dev/null
+++ b/debian/tests/testsuite.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+#!/bin/sh
+export LANG=C.UTF-8
+export LC_ALL=C.UTF-8
+[ -e debian/tests.home ] || mkdir debian/tests.home
+HOME=debian/tests.home openbox &
+sleep 5
+HOME=debian/tests.home dh_auto_test
+rm -rf debian/home/tests.home
+

-- 
kdecoration packaging



More information about the pkg-kde-commits mailing list