2013/8/27 Sebastian Ramacher <sramac...@debian.org> > > To run the tests, the extensions modules need to be available in > PYTHONPATH. Starting with something like the test targets found at > https://wiki.debian.org/Python/LibraryStyleGuide, one could use > > # Callable functions to determine the correct PYTHONPATH > pythonpath = $$(ls -d $(CURDIR)/build/lib.*-$(1)) > > ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) > test-python%: > PYTHONPATH=$(call pythonpath,$*) \ > python$* -m unittest discover -s test/ -p '*.py' -v > > override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%) > endif > > (untested) > > tested here:
debian/rules override_dh_auto_test make[1]: Entering directory `/tmp/buildd/pyliblo-0.9.1' make[1]: *** No rule to make target `test-python2.7', needed by `override_dh_auto_test'. Stop. mira
_______________________________________________ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers