[SCM] kdesrc-build packaging branch, master, updated. debian/1.12.1-1-6-g214511a
Pino Toscano
pino-guest at alioth.debian.org
Tue Mar 1 09:35:32 UTC 2011
The following commit has been merged in the master branch:
commit 788d54766857dc9269b30004e9a07f5aab988772
Author: Pino Toscano <pino at kde.org>
Date: Tue Mar 1 10:26:33 2011 +0100
run the test suite during the build
... relocating the $HOME for it in a subdirectory of the sources
---
debian/changelog | 2 ++
debian/rules | 11 ++++++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 2592f7b..e2b77d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ kdesrc-build (1.13-0r1) UNRELEASED; urgency=low
Also, build-depend on them, so we can run the test suite.
* Recommend git, subversion, gcc, g++, cmake, make.
* Update copyright.
+ * Run the test suite during the build, relocating the $HOME for it in
+ a subdirectory of the sources.
-- Pino Toscano <pino at kde.org> Tue, 01 Mar 2011 10:01:41 +0100
diff --git a/debian/rules b/debian/rules
index dfc1a83..dc1d203 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,16 @@
#!/usr/bin/make -f
+TESTS_TMPDIR := $(CURDIR)/home_tests
+
%:
dh $@ --with kde
-.PHONY: override_dh_auto_test
+override_dh_auto_test:
+ rm -rf $(TESTS_TMPDIR)
+ mkdir -p $(TESTS_TMPDIR)
+ HOME=$(TESTS_TMPDIR) perl kdesrc-build-test.pl
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf $(TESTS_TMPDIR)
--
kdesrc-build packaging
More information about the pkg-kde-commits
mailing list