d/rules: Make it clear that we respect nocheck option

This commit is contained in:
Simon McVittie 2018-09-19 21:32:00 +01:00
parent 81271df54e
commit b7406e5f34

2
debian/rules vendored
View File

@ -173,12 +173,14 @@ ifneq ($(filter %-udeb,$(binaries)),)
endif
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# So that gsettings can find the (uninstalled) gtk schemas
mkdir -p debian/build/glib-2.0/schemas/
cp gtk/org.gtk.* debian/build/glib-2.0/schemas/
glib-compile-schemas debian/build/glib-2.0/schemas/
# Remove LD_PRELOAD so we don't run with fakeroot, which makes dbus-related tests fail
env -u LD_PRELOAD dh_auto_test --builddirectory=debian/build/deb -- -k check -j1
endif
override_dh_auto_install:
dh_auto_install --builddirectory=debian/build/deb --destdir=debian/install/deb