| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | -include /usr/share/openstack-pkg-tools/pkgos.make |
| 4 | |
| 5 | export PYBUILD_NAME=sadisplay |
| 6 | export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}/ |
| 7 | export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests |
| 8 | export PYBUILD_TEST_ARGS_python3=tests |
| 9 | |
| 10 | %: |
| 11 | dh $@ --buildsystem=pybuild --with python3 |
| 12 | |
| 13 | override_dh_auto_test: |
| 14 | set -ex ; for i in $(py3versions -vr 2>/dev/null) ; do \ |
| 15 | python$$i -m pytest -v tests -k 'not test_single_mapper and not test_inherits' ; \ |
| 16 | done |