[Pkg-owncloud-commits] [owncloud-client] 02/02: Fix the testsuite (Closes: #733306)

Sandro Knauß hefee-guest at moszumanska.debian.org
Mon Dec 30 22:15:08 UTC 2013


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

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

commit 5abac8de9676616a1311724786a7384f96038e4d
Author: Sandro Knauß <bugs at sandroknauss.de>
Date:   Mon Dec 30 23:14:06 2013 +0100

    Fix the testsuite (Closes: #733306)
---
 debian/rules            | 4 ++++
 debian/tests/make-tests | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index ce2b641..2987327 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,10 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
 	dh $@ --parallel --with sphinxdoc --with pkgkde_symbolshelper
 
 # Only do this for an indep build
+override_dh_auto_test:
+	mkdir obj-$(DEB_HOST_GNU_TYPE)/config
+	XDG_CONFIG_HOME=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/config dh_auto_test
+	rm -r obj-$(DEB_HOST_GNU_TYPE)/config
 
 override_dh_auto_configure-arch:
 	dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DUNIT_TESTING=ON
diff --git a/debian/tests/make-tests b/debian/tests/make-tests
index 9d4f8a6..88b1ce5 100755
--- a/debian/tests/make-tests
+++ b/debian/tests/make-tests
@@ -1,2 +1,4 @@
 #! /bin/sh
-make tests
+mkdir config
+XDG_CONFIG_HOME=$(ADTTMP)/config/ make tests
+rm -r config

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



More information about the Pkg-owncloud-commits mailing list