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

Re: Is there a way to specify test-only dependency for autodep8 tests?



On Thu, Apr 29, 2021 at 06:54:14PM +0530, Nilesh Patra wrote:
> Hi,
> 
> At present it looks like the autodep8 tests (which is run via
> gem2deb-test-runner) takes in the package, installs dependencies and
> runs the upstream tests as autopkgtests - great!
> 
> However, is there a way to specify explicitly more test dependencies?
> For example, the package ruby-mini-portile2 needs a Test-only dep on
> build-essential, otherwise the autopkgtests fail failing to find the C
> compiler. So I had to manually create a d/tests/control(commit
> here[1]) and specify a
> depends on @builddeps@ (which would also pull in build-essential).
> 
> Is there a way to not do this manual work, maybe an option somewhere to
> propagate more test depends for autopkgtests?
> Please let me know
> 
> [1]: https://salsa.debian.org/ruby-team/ruby-mini-portile2/-/commit/57670f0660c6562378a4fd8b073b91f7216b55af
> 
> Nilesh

You want something like this:

$ cat debian/tests/autopkgtest-pkg-ruby.conf
───────┬───────────────────────────────────────────────────────────────
       │ File: debian/tests/autopkgtest-pkg-ruby.conf
───────┼───────────────────────────────────────────────────────────────
   1   │ extra_depends = build-essential
───────┴───────────────────────────────────────────────────────────────

(source: rubygems)

This is documented in the autodep8(1) manpage.

Attachment: signature.asc
Description: PGP signature


Reply to: