mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 12:13:18 +00:00
Disable fakeroot emulation when running tests
- tests only works under regular user or real root. Git-Dch: Full
This commit is contained in:
parent
fee1094301
commit
267c427582
13
debian/rules
vendored
13
debian/rules
vendored
@ -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~)'
|
||||
|
Loading…
Reference in New Issue
Block a user