[SCM] kde-cli-tools packaging branch, master, updated. e79be137f5f2a844d02465f1fed5a87455a3a7e1

Maximiliano Curia maxy at moszumanska.debian.org
Tue Jun 30 08:09:37 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/plasma/kde-cli-tools.git;a=commitdiff;h=2405613

The following commit has been merged in the master branch:
commit 240561333ba8c121479075161518c129a569a50f
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Mon Jun 29 22:58:31 2015 +0200

    Add basic autopkgtests support
---
 debian/rules           |  3 ++-
 debian/tests/acc       | 11 +++++++++++
 debian/tests/control   |  6 ++++++
 debian/tests/testsuite |  3 +++
 4 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 07ff508..4c072bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,4 +7,5 @@ override_dh_strip:
 	$(overridden_command) --dbg-package=kde-cli-tools-dbg
 
 override_dh_auto_test:
-	- dh_auto_test
+	# Ignore unit tests at build time
+	:
diff --git a/debian/tests/acc b/debian/tests/acc
new file mode 100755
index 0000000..f8dc629
--- /dev/null
+++ b/debian/tests/acc
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+for in_file in debian/*.acc.in; do
+    out_file=${in_file%.in}
+    sed 's/@@DEB_HOST_MULTIARCH@@/'"${DEB_HOST_MULTIARCH}"'/' \
+        "${in_file}" > "${out_file}"
+done
+
+dh_acc
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..652436b
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,6 @@
+Tests: testsuite
+Depends: @, @builddeps@, xvfb, xauth, dbus-x11
+Restrictions: build-needed
+
+# Tests: acc
+# Depends: @, dh-acc, exuberant-ctags
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
new file mode 100755
index 0000000..f6083b5
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+xvfb-run -a dh_auto_test

-- 
kde-cli-tools packaging



More information about the pkg-kde-commits mailing list