1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#! /usr/bin/make -f
export PYBUILD_TEST_ARGS=-v
%:
dh $@ --buildsystem=pybuild --test-pytest
ifeq ($(DEB_BUILD_ARCH), s390x)
override_dh_auto_test:
else
export DISPLAY=:99.0
execute_before_dh_auto_test:
/sbin/start-stop-daemon --start --quiet --pidfile $(CURDIR)/custom_xvfb.pid --make-pidfile --background --output $(CURDIR)/custom_xvfb.log --exec /usr/bin/Xvfb -- :99
/sbin/start-stop-daemon --start --quiet --pidfile $(CURDIR)/custom_herbstluftwm.pid --make-pidfile --background --output $(CURDIR)/custom_herbstluftwm.log --exec /usr/bin/herbstluftwm -- --replace
execute_after_dh_auto_test:
/sbin/start-stop-daemon --stop --quiet --pidfile $(CURDIR)/custom_herbstluftwm.pid --remove-pidfile || true
/sbin/start-stop-daemon --stop --quiet --pidfile $(CURDIR)/custom_xvfb.pid --remove-pidfile || true
endif
|