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

Re: pybuild and unittest at build time



Hi Luca,

On Fri, 26 Dec 2014 11:50:14 +0100, Luca Falavigna wrote:
> A package I'd like to sponsor has a test suite [0], and I'd like to be
> able to run it at build time. Launching "python{,3} test_isoweek.py"
> seems enough to trigger the test suite.
>
> pybuild is not able to run the test suite automatically, could you
> suggest me the best way to implement this feature?

Something like this should do the trick:

  export PYBUILD_TEST_ARGS={interpreter} $(CURDIR)/test_isoweek.py --verbose

  override_dh_auto_test:
          PYBUILD_SYSTEM=custom dh_auto_test

(Copied from my python-markdown package.)

--
Dmitry Shachnev

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: