[Python-modules-team] Bug#767509: please run unit tests when building the package

Thomas Goirand zigo at debian.org
Fri Oct 31 15:25:50 UTC 2014


Package: python-webpy
Version: 1:0.37+20120626-1
Severity: important
Tags: patch

Hi,

It would be nice to run unit tests for this package. I worked
out a patch for doing so, and I attached it. Note that the
below build-depends-indep has to then be added:

Build-Depends-Indep: mysql-client,
                     mysql-server,
                     postgresql,
                     postgresql-client,
                     python-dbutils,
                     python-mysqldb,
                     python-pygresql,
                     python-sqlite,
                     locales-all | language-pack-en

Then in debian/rules, we should write:

> override_dh_auto_test:
> ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
>         chmod +x debian/run_tests.sh
>         set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \
>                 pyvers=$${pyvers} debian/run_tests.sh ; \
>         done
> endif

Please consider adding this before Jessie is out, as tests are
important part of Q/A.

Cheers,

Thomas Goirand (zigo)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_tests.sh
Type: text/x-shellscript
Size: 3551 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20141031/84f10da0/attachment.bin>


More information about the Python-modules-team mailing list