#!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk DEB_COMPRESS_EXCLUDE := .py DEB_INSTALL_CHANGELOGS_ALL := RELEASE_NOTES PYGLET_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p' | sed -rne 's,\.dfsg.*$,,p') XVFB_OPTS=--auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" # not sure what is the most legit rule to invoke tests, so here it would be binary-install/python-pyglet:: xvfb-run $(XVFB_OPTS) python -m pytest tests/unit # should all pass xvfb-run $(XVFB_OPTS) python -m pytest tests/integration/ || : # ok to fail for now