summaryrefslogtreecommitdiff
path: root/debian/tests
diff options
context:
space:
mode:
authorScarlett Clark <sgclark@kubuntu.org>2015-02-05 18:07:53 +0000
committerScarlett Clark <sgclark@kubuntu.org>2015-02-05 18:07:53 +0000
commit56514eb8e6f4ba84972529330b3e546a3b776546 (patch)
tree62c53037f4a94a72d6ea99137afbbe01c924b225 /debian/tests
downloadkde4libs-56514eb8e6f4ba84972529330b3e546a3b776546.tar.gz
Initial commit for kde4libs for kde-applications.
Diffstat (limited to 'debian/tests')
-rwxr-xr-xdebian/tests/acc3
-rw-r--r--debian/tests/control10
-rwxr-xr-xdebian/tests/testsuite11
-rwxr-xr-xdebian/tests/testsuite.xsession6
4 files changed, 30 insertions, 0 deletions
diff --git a/debian/tests/acc b/debian/tests/acc
new file mode 100755
index 0000000..ecd74f2
--- /dev/null
+++ b/debian/tests/acc
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+dh_acc
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a3f706e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,10 @@
+Tests: testsuite
+Depends: @, @builddeps@, build-essential,
+ xvfb, xauth, dbus-x11, libxml2-utils,
+ kde-runtime, oxygen-icon-theme, iputils-ping | inetutils-ping,
+ libqt4-sql-sqlite
+Restrictions: rw-build-tree
+
+Tests: acc
+Depends: @,
+ dh-acc, exuberant-ctags
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
new file mode 100755
index 0000000..a4f08c5
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+sed -i 's/-DKDE4_BUILD_TESTS=false/-DKDE4_BUILD_TESTS=true/' debian/rules
+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" \
+ 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..64ab039
--- /dev/null
+++ b/debian/tests/testsuite.xsession
@@ -0,0 +1,6 @@
+#!/bin/sh
+kdeinit4
+dh_auto_test
+ret=$?
+kdeinit4_shutdown
+exit $ret