[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Major update of python-support



* Josselin Mouette <joss@debian.org> [2009-03-02 16:21:20 +0100]:

> Le lundi 02 mars 2009 à 15:48 +0100, Vincent Bernat a écrit :
> > I ask  this because I  have many packages  that use unittests  after the
> > build.  I add  /var/lib/python-support  to PYTHONPATH  and launch  those
> > tests. Because the path has changed, this does not work any more.
> > 
> > You suggest to run those tests against the sources instead. However, the
> > main interests of those tests for me is to check that the binary package
> > works as expected. For example, if setup.py (or debian/rules) forgets to
> > ship one  file, this would  go unseen if  unittests are run  against the
> > sources.
> 
> In this case, you should run the unit tests from the directory where you
> install the modules, before running dh_pysupport.

Note that the only way to accurately test that installing the binary
package will yield a correctly-working installation is to actually
install the binary package and run the unit tests against the installed
package; build-time tests will not be able to detect things like
problems with postinst scripts and so on.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar

Attachment: signature.asc
Description: Digital signature


Reply to: