-
-override_dh_gencontrol:
- if dpkg-vendor --derives-from ubuntu ; then \
- dh_gencontrol -- -T$(CURDIR)/debian/ubuntu_control_vars ; \
- else \
- dh_gencontrol -- -T$(CURDIR)/debian/debian_control_vars ; \
- fi
+ find . -iname '*.pyc' -delete
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+ rm -rf .testrepository
+ testr init
+ bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | subunit2pyunit || true
+ testr slowest
+ testr last --subunit | subunit-filter -s --no-passthrough | subunit-stats
+endif