[Pkg-javascript-devel] New autodep8/pkg-js-tools features
Xavier
yadd at debian.org
Wed Jun 10 12:52:56 BST 2020
Fix (variable are extra_*, not pkg_nodejs_extra_*)
Le 28/05/2020 à 17:48, Xavier a écrit :
> Hi all,
>
> autodep8 0.23 permits to add some additional restrictions or additional
> package in pkg-js-tools autopkgtest without having to set a manual
> debian/tests/control
>
> Additional dependencies: for a package which has circular dependency,
> you can
> * remove test during build (and its dependencies)
> * write test in debian/tests/pkg-js/test as usual
> * write a debian/tests/autopkgtest-pkg-nodejs.conf with test
> dependencies:
>
> extra_depends=node-tap,node-tape
>
> NB1: this will be concatenated with default dependencies:
> "@, @builddeps@, pkg-js-autopkgtest
> NB2: this additional dependencies will also be added to "require"
> test (concatenated with "@, nodejs, pkg-js-autopkgtest"
>
> Additional restrictions: autopkgtest will disable network access except
> if "needs-internet" is set. To add it (for npm, yarnpkg,...):
> * write test in debian/tests/pkg-js/test as usual
> * write a debian/tests/autopkgtest-pkg-nodejs.conf with
> additional restrictions:
>
> extra_restrictions=needs-internet
>
> Default:
> * require: superficial, skippable
> * test : allow-stderr, skippable
>
> Other feature (not in autodep8 but in pkg-js-tools): if build and
> autopkgtest tests differ, you can use debian/nodejs/test to overwrite
> debian/tests/pkg-js/test during build
More information about the Pkg-javascript-devel
mailing list