Use pybuild for running tests
Ondřej Nový
6 years ago
8 | 8 | dh $@ --with python2,python3 --buildsystem=pybuild |
9 | 9 | |
10 | 10 | override_dh_auto_test: |
11 | for py in $$(pyversions -r 2>/dev/null) ; do echo "Testing with $$py:" ; $$py unittests.py; done | |
12 | for py in $$(py3versions -r 2>/dev/null) ; do echo "Testing with $$py:" ; $$py unittests.py; done | |
11 | PYBUILD_SYSTEM=custom \ | |
12 | PYBUILD_TEST_ARGS="{interpreter} unittests.py" \ | |
13 | dh_auto_test |