diff -Nru tryton-modules-account-invoice-stock-5.0.0/debian/changelog tryton-modules-account-invoice-stock-5.0.0/debian/changelog --- tryton-modules-account-invoice-stock-5.0.0/debian/changelog 2018-11-20 16:07:49.000000000 +0000 +++ tryton-modules-account-invoice-stock-5.0.0/debian/changelog 2019-01-01 19:34:56.000000000 +0000 @@ -1,3 +1,11 @@ +tryton-modules-account-invoice-stock (5.0.0-2) unstable; urgency=medium + + * Cleanup white space. + * Add a generic autopkgtest to run the module testsuite. + * Update the rules file with hints about and where to run tests. + + -- Mathias Behrle Tue, 01 Jan 2019 20:34:56 +0100 + tryton-modules-account-invoice-stock (5.0.0-1) unstable; urgency=medium * Merging upstream version 5.0.0. diff -Nru tryton-modules-account-invoice-stock-5.0.0/debian/rules tryton-modules-account-invoice-stock-5.0.0/debian/rules --- tryton-modules-account-invoice-stock-5.0.0/debian/rules 2018-10-16 10:17:20.000000000 +0000 +++ tryton-modules-account-invoice-stock-5.0.0/debian/rules 2019-01-01 16:57:31.000000000 +0000 @@ -2,10 +2,12 @@ MAJOR := $(shell python3 setup.py --version | awk -F "." '{print $$1 "." $$2}') -# Don't run tests for Tryton modules, they possibly depend on other modules -# of the same version, that are not yet available at build time from the archive -# in case of new releases. -# For the complete test suites refer to http://tests.tryton.org/ +# Don't run tests for Tryton modules at build time, they possibly depend +# on other modules of the same version, that possibly are not yet available +# from the archive in case of new releases. Instead the testsuite is run via +# autopkgtest. +# For the complete test suites on all supported databases refer to +# http://tests.tryton.org/ export PYBUILD_DISABLE=test %: @@ -13,5 +15,3 @@ override_dh_gencontrol: dh_gencontrol -- -Vversion:major="$(MAJOR)" - - diff -Nru tryton-modules-account-invoice-stock-5.0.0/debian/tests/control tryton-modules-account-invoice-stock-5.0.0/debian/tests/control --- tryton-modules-account-invoice-stock-5.0.0/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ tryton-modules-account-invoice-stock-5.0.0/debian/tests/control 2019-01-01 16:25:37.000000000 +0000 @@ -0,0 +1,5 @@ +Tests: run-testsuite +Depends: @, + python3-setuptools, + tryton-proteus, +Restrictions: allow-stderr diff -Nru tryton-modules-account-invoice-stock-5.0.0/debian/tests/run-testsuite tryton-modules-account-invoice-stock-5.0.0/debian/tests/run-testsuite --- tryton-modules-account-invoice-stock-5.0.0/debian/tests/run-testsuite 1970-01-01 00:00:00.000000000 +0000 +++ tryton-modules-account-invoice-stock-5.0.0/debian/tests/run-testsuite 2019-01-01 16:25:37.000000000 +0000 @@ -0,0 +1,6 @@ +#!/bin/sh -e + +module=$(python3 setup.py --name | sed s/trytond_//) + +cd /usr/lib/python3/dist-packages/trytond +python3 tests/run-tests.py -vv -m $module