TEST_DEPENDS on itself?
Mathieu Arnold
mat at freebsd.org
Tue Sep 15 11:51:23 UTC 2020
On Mon, Sep 14, 2020 at 10:07:06PM +0200, Christian Weisgerber wrote:
> Mathieu Arnold:
>
> > > Is a port allowed to depend on the installed version of itself for
> > > running "make test"?
> >
> > Nope. Tests are run after the port is installed, so, it should already
>
> That is not true. "test" depends on "stage". It does not install
> the port.
Oh, you are right, I don't know why my brain made the shortcut staged ==
installed.
> > be ok. What problem are you trying to solve.
>
> I'm working on a port that can't run its regression tests out of
> the build or stage areas. The command to be tested will call
> submodules with compiled in absolute paths (/usr/local/libexec/...).
> So this port bla/foo would require to be already installed for
> testing:
>
> TEST_DEPENDS= foo:bla/foo
>
> The foo command will call /usr/local/libexec/foo/foo-helper. If
> the latter isn't there, foo won't run.
Well, you cannot have recursive dependencies, so a port cannot depend on
itself. What about if you chroot in STAGEDIR to run the tests?
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20200915/59740f21/attachment.sig>
More information about the freebsd-ports
mailing list