[pocl] 01/14: use a temporary, writable $HOME while running the testsuite

Andreas Beckmann anbe at moszumanska.debian.org
Mon Apr 25 09:11:32 UTC 2016


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

anbe pushed a commit to branch master
in repository pocl.

commit e1f11e7de67cc74fc93351d3e612dae386a88502
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue Mar 22 00:19:05 2016 +0100

    use a temporary, writable $HOME while running the testsuite
    
    sbuild/pbuilder nowadays build with HOME=/nonexistent
---
 debian/changelog | 6 +++++-
 debian/rules     | 5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3f72411..c718b3c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,15 @@
-pocl (0.11-1) experimental; urgency=medium
+pocl (0.11-1) UNRELEASED; urgency=medium
 
+  [ Vincent Danjean ]
   * New upstream version
   * Fix "FTBFS on arm64" by targetting llvm arch to cortex-a53 on arm64
     (Closes: #787686)
   * Fix "vcs-browser field does not work" by fixing URL in debian/control
     (Closes: #775844)
 
+  [ Andreas Beckmann ]
+  * Use a temporary, writable $HOME while running the testsuite.
+
  -- Vincent Danjean <vdanjean at debian.org>  Fri, 12 Jun 2015 10:07:30 +0200
 
 pocl (0.10-12) experimental; urgency=medium
diff --git a/debian/rules b/debian/rules
index bda7726..c1c17f0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -73,7 +73,9 @@ override_dh_auto_test:
 	# Failure in testsuite is delayed until symbols handling
 	# and all files are logged.
 	$(RM) debian/stamp-failed-testsuite
-	if ! dh_auto_test ; then \
+	$(RM) -r debian/testsuite-tmp-home
+	mkdir debian/testsuite-tmp-home
+	if ! HOME=$(CURDIR)/debian/testsuite-tmp-home dh_auto_test ; then \
 		for f in $$(find tests/testsuite.dir -type f); do \
 			echo "******************************************" ;\
 			echo "* File: $$f" ;\
@@ -83,6 +85,7 @@ override_dh_auto_test:
 		done ;\
 		touch debian/stamp-failed-testsuite; \
 	fi
+	$(RM) -r debian/testsuite-tmp-home
 
 override_dh_makeshlibs:
 	dh_makeshlibs

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/pocl.git



More information about the Pkg-opencl-commits mailing list