Date: Tue, 15 Sep 2020 13:51:20 +0200 From: Mathieu Arnold <mat@freebsd.org> To: Christian Weisgerber <naddy@mips.inka.de> Cc: Mathieu Arnold <mat@freebsd.org>, freebsd-ports@freebsd.org Subject: Re: TEST_DEPENDS on itself? Message-ID: <20200915115120.dojdypsrvhgrt54g@aching.in.mat.cc> In-Reply-To: <20200914200706.GA33098@lorvorc.mips.inka.de> References: <slrnrluvc9.2msm.naddy@lorvorc.mips.inka.de> <20200914145923.hu7nzhmyb5l3onbr@aching.in.mat.cc> <20200914200706.GA33098@lorvorc.mips.inka.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--wckx62dswkvjniy5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 14, 2020 at 10:07:06PM +0200, Christian Weisgerber wrote: > Mathieu Arnold: >=20 > > > Is a port allowed to depend on the installed version of itself for > > > running "make test"? > >=20 > > Nope. Tests are run after the port is installed, so, it should already >=20 > 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 =3D=3D installed. > > be ok. What problem are you trying to solve. >=20 > 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: >=20 > TEST_DEPENDS=3D foo:bla/foo >=20 > 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? --=20 Mathieu Arnold --wckx62dswkvjniy5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAl9gqrNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgJdIA//VTGWP/HbkRWLMNhp78Aj+dVE1ADm7Qu95iqHVU0FtTQ/vPOT0Rdr7Dvj b0An27mccXji3nXAd4V3J1ZnnRLrsre87xTF0p8tI7ROb6IpaAFxyp6B2ey9/Pmp adn28XrfQDjXPRh3TuuRXE5ELSYW4oyC23nsLcQmae6zVMnCZS/vKQD/aRWzLwRI I00er5N526tC772hf0Nv5aNfcs50NQ1CsQ2QEC2fPtjxT/fiGg7uwUj/P6hDYRDy PcmubWdYWZkfFLUlTTsdQhruhbvIjpK5trExHzLd4dg6VKC1gRcfetUUVh40aHuP M1RuzignAnngxF3K5yali6uoeh/nNWAvptz+1ebizm9rAC2f11FXJ7O2s34dlZh1 7UqS9bg5VfXcbjM4L8hFXUPsJMgTNFGbUK9oNbTeHdQOVygoP1fuJv8YZl/21cDw 8Ywy9rIcYlTSAy4C5tPjNehxgJkp+VfIBlqHG8q2d1CjiwZK3DRYt2Vu9zHa7OXm B/9/mQGgzohabs0Tv1jHREAnwoayqz0M2di9H5oLsfwK/3v0upIV3QUMcQmXzXde Lsf3K8jKZZH/dejyBFsas+cZR9dTADFGzXifkqSgf85rTUkkIdMI88aujTBNe/ES 2N38GImxJvWDFbcYwUekpJ4OmaXjGPOGkWa8H7RMgOOj34r5yN4= =UAJC -----END PGP SIGNATURE----- --wckx62dswkvjniy5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200915115120.dojdypsrvhgrt54g>