#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # make SOURCE_DATE_EPOCH available during the build, so the build host # is not embedded into the binary include /usr/share/dpkg/pkg-info.mk %: dh $@ override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) cd obj-* && $(MAKE) install DESTDIR=$(CURDIR)/test_root mkdir -p "$(CURDIR)/test_root/tmp" xvfb-run -a dh_auto_test --no-parallel -- XDG_DATA_DIRS=$(CURDIR)/test_root/usr/share:/usr/local/share:/usr/share TMPDIR="$(CURDIR)/test_root/tmp" # check leftover temporary files cd "$(CURDIR)/test_root/tmp" && find | sort endif