[SCM] libnm-qt packaging branch, kubuntu_unstable, updated. a117887a5475da3dc371dbe6e6c16b55af46325f

Harald Sitter apachelogger-guest at moszumanska.debian.org
Fri Nov 14 08:36:04 UTC 2014


Gitweb-URL: http://git.debian.org/?p=pkg-kde/plasma/libnm-qt.git;a=commitdiff;h=a117887

The following commit has been merged in the kubuntu_unstable branch:
commit a117887a5475da3dc371dbe6e6c16b55af46325f
Author: Harald Sitter <sitter at kde.org>
Date:   Fri Nov 14 09:35:12 2014 +0100

    conver to autopkgtest so rohan gets something to do
    
    test will most certainly not pass as they fail in a minimal
    build envrionment (reproducibly) so likely some special runtime
    bit needs to be running (kded possibly?)
---
 debian/control                  |  1 +
 debian/tests/control            |  4 ++++
 debian/tests/testsuite          | 10 ++++++++++
 debian/tests/testsuite.xsession | 10 ++++++++++
 4 files changed, 25 insertions(+)

diff --git a/debian/control b/debian/control
index 0b1d338..d80332b 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Build-Depends: cmake,
 Standards-Version: 3.9.5
 Section: libs
 Homepage: https://projects.kde.org/projects/kde/workspace/libnm-qt
+XS-Testsuite: autopkgtest
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-kde/plasma/libnm-qt.git
 Vcs-Git: git://anonscm.debian.org/pkg-kde/plasma/libnm-qt.git
 
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
+

-- 
libnm-qt packaging



More information about the pkg-kde-commits mailing list