Date: Mon, 14 Sep 2020 22:07:06 +0200 From: Christian Weisgerber <naddy@mips.inka.de> To: Mathieu Arnold <mat@freebsd.org> Cc: freebsd-ports@freebsd.org Subject: Re: TEST_DEPENDS on itself? Message-ID: <20200914200706.GA33098@lorvorc.mips.inka.de> In-Reply-To: <20200914145923.hu7nzhmyb5l3onbr@aching.in.mat.cc> References: <slrnrluvc9.2msm.naddy@lorvorc.mips.inka.de> <20200914145923.hu7nzhmyb5l3onbr@aching.in.mat.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > 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. -- Christian "naddy" Weisgerber naddy@mips.inka.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200914200706.GA33098>