[SCM] kstars packaging branch, master, updated. debian/16.04.1-1-5-gd47bf68

Maximiliano Curia maxy at moszumanska.debian.org
Sat Sep 10 16:49:56 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/kstars.git;a=commitdiff;h=d312695

The following commit has been merged in the master branch:
commit d312695081c4480e55342b1d5f74ea866f47e81f
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Mon Aug 29 10:40:02 2016 +0200

    Move auto tests to autopkgtests
---
 debian/rules           |  4 ++++
 debian/tests/acc       | 18 ++++++++++++++++++
 debian/tests/control   |  8 ++++++++
 debian/tests/testsuite |  3 +++
 4 files changed, 33 insertions(+)

diff --git a/debian/rules b/debian/rules
index f540b85..10b946b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,7 @@ include /usr/share/pkg-kde-tools/qt-kde-team/3/debian-qt-kde.mk
 
 override_dh_strip:
 	dh_strip --dbgsym-migration='kstars-dbg (<= 4:15.12.1-1~~)'
+
+override_dh_auto_test:
+	# Disable auto tests at build time
+	:
diff --git a/debian/tests/acc b/debian/tests/acc
new file mode 100755
index 0000000..4251c76
--- /dev/null
+++ b/debian/tests/acc
@@ -0,0 +1,18 @@
+#!/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_VERBOSE=1
+
+dh_acc
+ret=$?
+if [ 0 -ne $ret ] && [ -n "$ADT_ARTIFACTS" ]; then
+    cp -r logs "$ADT_ARTIFACTS"/acc.logs
+fi
+exit $ret
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0990f3c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,8 @@
+Tests: testsuite
+Depends: @, @builddeps@, build-essential,
+         xvfb, xauth, dbus (>= 1.8)
+Restrictions: build-needed
+
+# Tests: acc
+# Depends: @, dh-acc, exuberant-ctags
+# Restrictions: allow-stderr
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
new file mode 100755
index 0000000..e4e597c
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+xvfb-run dbus-run-session -- dh_auto_test

-- 
kstars packaging



More information about the pkg-kde-commits mailing list