[Pkg-owncloud-commits] [ocsync] 01/01: Activated unit tests

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Dec 27 15:40:35 UTC 2013


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository ocsync.

commit 68a45b6667ee0ec1aed68dd8c05fc5fd04735c18
Author: Sandro Knauß <bugs at sandroknauss.de>
Date:   Fri Dec 27 16:30:09 2013 +0100

    Activated unit tests
---
 debian/control          | 4 +++-
 debian/rules            | 3 ++-
 debian/tests/control    | 2 ++
 debian/tests/make-tests | 2 ++
 4 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 47dbb83..46c6a70 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,10 @@ Priority: optional
 Maintainer: ownCloud for Debian maintainers <pkg-owncloud-maintainers at lists.alioth.debian.org>
 Uploaders: Sandro Knauß <bugs at sandroknauss.de>
 Build-Depends: debhelper (>= 9), cmake, libsqlite3-dev, libneon27-gnutls-dev, libssh-dev,
- libsmbclient-dev, check, pkg-kde-tools
+ libsmbclient-dev, check, pkg-kde-tools,
+ libcmocka-dev
 Standards-Version: 3.9.5
+XS-Testsuite: autopkgtest
 Vcs-Git: git://anonscm.debian.org/pkg-owncloud/ocsync.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-owncloud/ocsync.git
 Homepage: http://owncloud.org/sync-clients/
diff --git a/debian/rules b/debian/rules
index 472795f..0566b63 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,4 +7,5 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 override_dh_auto_configure:
 	dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_LOG4C=OFF \
-		-DLOG_TO_CALLBACK=ON -DSYSCONF_INSTALL_DIR=/etc -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH)
+		-DLOG_TO_CALLBACK=ON -DSYSCONF_INSTALL_DIR=/etc -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) \
+		-DUNIT_TESTING=ON
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f33bfb4
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: make-test
+Restrictions: build-needed
diff --git a/debian/tests/make-tests b/debian/tests/make-tests
new file mode 100755
index 0000000..9d4f8a6
--- /dev/null
+++ b/debian/tests/make-tests
@@ -0,0 +1,2 @@
+#! /bin/sh
+make tests

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/ocsync.git



More information about the Pkg-owncloud-commits mailing list