[SCM] libksane packaging branch, master, updated. debian/4.12.3-2-17-gce80915
Maximiliano Curia
maxy at moszumanska.debian.org
Tue Feb 24 16:02:25 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/libksane.git;a=commitdiff;h=848c145
The following commit has been merged in the master branch:
commit 848c145fb1ee4123f3a3e4b83fd9b2182c3ea1c4
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date: Fri Feb 20 08:46:56 2015 +0100
Add basic autopkgtests support
---
debian/control | 1 +
debian/tests/acc | 14 ++++++++++++++
debian/tests/control | 6 ++++++
debian/tests/testsuite | 3 +++
4 files changed, 24 insertions(+)
diff --git a/debian/control b/debian/control
index 225af36..a07dbdb 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,7 @@ Build-Depends: cmake,
libx11-dev,
pkg-kde-tools (>= 0.12)
Standards-Version: 3.9.6
+XS-Testsuite: autopkgtest
Homepage: https://projects.kde.org/projects/kde/kdegraphics/libs/libksane
Vcs-Browser: http://anonscm.debian.org/cgit/pkg-kde/applications/libksane.git
Vcs-Git: git://anonscm.debian.org/pkg-kde/applications/libksane.git
diff --git a/debian/tests/acc b/debian/tests/acc
new file mode 100755
index 0000000..85b5b21
--- /dev/null
+++ b/debian/tests/acc
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+for in_file in debian/*.acc.in; do
+ if ! [ -e "$in_file" ]; then
+ continue
+ fi
+ 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..d9b40f1
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,6 @@
+# Tests: testsuite
+# Depends: @, @builddeps@, build-essential
+# 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..dabe645
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+dh_auto_test
--
libksane packaging
More information about the pkg-kde-commits
mailing list