Disable fakeroot emulation when running tests

- tests only works under regular user or real root.

Git-Dch: Full
This commit is contained in:
Andreas Henriksson 2016-04-11 10:10:39 +02:00
parent fee1094301
commit 267c427582

13
debian/rules vendored
View File

@ -40,10 +40,15 @@ override_dh_auto_install:
dh_auto_install --builddirectory=build-debian-devel
override_dh_auto_test:
mkdir -p build-debian-release/tmp
dh_auto_test --builddirectory=build-debian-release
mkdir -p build-debian-devel/tmp
dh_auto_test --builddirectory=build-debian-devel
mkdir -p build-debian-release/tmp build-debian-devel/tmp
ifneq (,$(FAKEROOTKEY))
echo "Detected running under fakeroot, resetting LD_LIBRARY_PATH as tests are not compatible with fakeroot."
LD_PRELOAD="" dh_auto_test --builddirectory=build-debian-release
LD_PRELOAD="" dh_auto_test --builddirectory=build-debian-devel
else
dh_auto_test --builddirectory=build-debian-release
dh_auto_test --builddirectory=build-debian-devel
endif
override_dh_strip:
dh_strip --dbgsym-migration='libgit2-dbg (<< 0.24.0-2~)'