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

Re: How to ask pkg-r-autopkgtests to "not" run tests?



Hi Nilesh

Am Sat, Nov 13, 2021 at 08:16:41PM +0530 schrieb Nilesh Patra:
> Hi,
> to run tests which is not packaged, and probably never will be.
> I did the following:
> 
> * Removed d/tests
> * Remove "Testsuite: autopkgtest-pkg-r" line from d/control
> * Removed unitTests directory from being installed.
> 
> However, _even after this_ pkg-r-autopkgtest launches and attempts running tests.
> How do I stop this from happening?

Hmmmm, removing Testsuite: autopkgtest-pkg-r should prevent the test
from running.  No idea why this does not work.

Here are some examples for alternative solutions to work around not
(yet) packaged data / code:

   https://salsa.debian.org/r-pkg-team/r-bioc-affy/-/blob/master/debian/tests/autopkgtest-pkg-r.hook
   https://salsa.debian.org/r-pkg-team/r-bioc-bluster/-/blob/master/debian/tests/autopkgtest-pkg-r.hook
   https://salsa.debian.org/r-pkg-team/r-bioc-purecn/-/blob/master/debian/tests/autopkgtest-pkg-r.hook

In file autopkgtest-pkg-r.hook you can place code that is executed as in
the usual run-unit-test script but without the beginning that copies the
data to the temporary dir.

Hope this helps

        Andreas.
-- 
http://fam-tille.de


Reply to: