<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/27 Sebastian Ramacher <span dir="ltr"><<a href="mailto:sramacher@debian.org" target="_blank">sramacher@debian.org</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
To run the tests, the extensions modules need to be available in<br>
PYTHONPATH. Starting with something like the test targets found at<br>
<a href="https://wiki.debian.org/Python/LibraryStyleGuide" target="_blank">https://wiki.debian.org/Python/LibraryStyleGuide</a>, one could use<br>
<br>
# Callable functions to determine the correct PYTHONPATH<br>
pythonpath = $$(ls -d $(CURDIR)/build/lib.*-$(1))<br>
<br>
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))<br>
test-python%:<br>
  PYTHONPATH=$(call pythonpath,$*) \<br>
    python$* -m unittest discover -s test/ -p '*.py' -v<br>
<br>
override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)<br>
endif<br>
<br>
(untested)<br>
<br></blockquote></div><br></div><div class="gmail_extra">tested here:<br></div><div class="gmail_extra"><br>   debian/rules override_dh_auto_test<br>make[1]: Entering directory `/tmp/buildd/pyliblo-0.9.1'<br>make[1]: *** No rule to make target `test-python2.7', needed by `override_dh_auto_test'.  Stop.<br>
<br></div><div class="gmail_extra">mira<br></div></div>