[SCM] modemmanager-qt packaging branch, kubuntu_unstable, updated. 5b925a7e0b301c5e5facb90348a81fc895d4c191
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Thu Apr 2 11:16:46 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/frameworks/modemmanager-qt.git;a=commitdiff;h=5b925a7
The following commit has been merged in the kubuntu_unstable branch:
commit 5b925a7e0b301c5e5facb90348a81fc895d4c191
Author: Harald Sitter <sitter at kde.org>
Date: Thu Apr 2 13:16:29 2015 +0200
convert to autopkgtest like the rest of frameworks
---
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 9b31063..ee8ba34 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,7 @@ Build-Depends: cmake,
Standards-Version: 3.9.6
Section: libs
Homepage: https://projects.kde.org/projects/frameworks/modemmanager-qt
+XS-Testsuite: autopkgtest
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-kde/frameworks/modemmanager-qt.git
Vcs-Git: git://anonscm.debian.org/pkg-kde/frameworks/modemmanager-qt.git
diff --git a/debian/rules b/debian/rules
index 967fe7b..2b8ae40 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=libkf5modemmanagerqt6-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
+
--
modemmanager-qt packaging
More information about the pkg-kde-commits
mailing list