#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test -- --before-test="ln -s $(CURDIR)/tests {build_dir}" --test-custom --test-args 'cd {build_dir}/tests && {interpreter} -m unittest unittests.run_BUSCO_unittests -v'
endif
