#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk XVFB_OPTS = --auto-servernum --server-num=20 -s "-noreset" SKIP_TESTS = \ test_logging_to_file IGNORE_TESTS = \ tests/module/mobject/text/test_typst_mobject.py \ tests/test_graphical_units/test_opengl.py \ tests/test_release_script.py \ tests/test_scene_rendering/opengl ifeq ($(DEB_HOST_ARCH),i386) # This tests seems to exhibit some numerical instability on i386 SKIP_TESTS += \ test_ApplyMatrix endif space = $(eval) $(eval) concat_with = $(subst $(space),$1,$2) export PYBUILD_TEST_CUSTOM = 1 export PYBUILD_TEST_ARGS = xvfb-run $(XVFB_OPTS) {interpreter} -m pytest \ -m 'not slow' \ $(addprefix --ignore$(space),$(IGNORE_TESTS)) \ $(if $(SKIP_TESTS),-k 'not ($(call concat_with,$(space)or$(space),$(SKIP_TESTS)))') %: dh $@ --buildsystem=pybuild