Date: Tue, 14 May 2024 17:18:39 -0700 From: Enji Cooper <yaneurabeya@gmail.com> To: Brooks Davis <brooks@freebsd.org> Cc: Christian Weisgerber <naddy@mips.inka.de>, freebsd-hackers@freebsd.org Subject: Re: How to run tests without installing? Message-ID: <FE4F10DD-EC61-47E4-9CB6-9F7AD758E81D@gmail.com> In-Reply-To: <ZjAHcluVI2SGh8Ul@spindle.one-eyed-alien.net> References: <Zi93yxSsEnttr3Ay@lorvorc.mips.inka.de> <ZjAHcluVI2SGh8Ul@spindle.one-eyed-alien.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_02171A0C-E809-4575-8036-FCE18037610D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 29, 2024, at 1:47=E2=80=AFPM, Brooks Davis <brooks@freebsd.org> = wrote: >=20 > On Mon, Apr 29, 2024 at 12:34:51PM +0200, Christian Weisgerber wrote: >> How can I run the regression tests on my work-in-progress without >> installing it first? >>=20 >> Say I'm changing something in sh. Can I run the tests on the >> compiled sh in /usr/obj, without having to install my potentially >> broken work into the system? Running "make tests" in src/bin/sh >> doesn't seem to actually test anything. >=20 > Generally speaking you can't. This is one of the problematic things > about the current test framework. The best you can do for something > like sh where you really don't want to install a broken one is = probably > installing in a jail and running tests there. Try =E2=80=9Cmake check MK_MAKE_CHECK_USE_SANDBOX=3Dyes -DNO_ROOT=E2=80=9D= . It=E2=80=99s not perfect, but it might do what you want without = breaking your system. Cheers, -Enji= --Apple-Mail=_02171A0C-E809-4575-8036-FCE18037610D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkHfexGRJ3gYRdA2gGpE5DjPsNJgFAmZD/18ACgkQGpE5DjPs NJi0LBAAis1MzHG1LoKi+9iN73r/uiU3QS1OyWq0qBt3Ygbb8GmUHhJRakWFEBIZ n1ckcga0rPyjAlmTAO4rZ+2+nH/clHRT/p5Irq+b9YmqehTX3TY7BSNguzzopUF6 e510MwD2RUtIVNLkSkEgWCZ8gksH2GCHOqhDL7ZGDPSkQuE56DX76h+KSkctPI6z DdV7jnQGLGqv4eRd/Z9WF6IjhieqtPr9KJmMZ7If7WjOJanazWc2GiWFJGsyFTqW JVQXjPwLaW2yUPh19iuG2GziyZxDjpaz8dM5e5gT+2VVS6Uv4VPypp4FBp1ToJTL WSZ+TudyRGHscRi4luMybalEyRYCx2Bb3JUKNdyJpJruqKytvAIHvfHifvxdIYJy wfKqODSF2v9Fw6O1z2h7lSsxtjWdQfRc6gsChoNLTOUgVDDkvQJ7NKl2XS7FLKAH RKjyQSaMhBVyTAnAsboT+mbZO7xkyLdm4D1ahSgqMVdqT1rrXbBwBMOr6HtdgLoP xWNDi+fd0Bhhh5XJLBT3OtXo3hX57H6tkB5gm6qG3haO5v30gHUaA3tCf9lqTIPk sZ180xTAcBrRoLXMoFOTR+yeYIkbbIFpezE+Ko8Qb6Vq+PeW+uLBw/FClS1fSm8x Qzem56b22d8RoP2aRaxrPUGpzvbetGESiRTVVAe0dppvkFdobTY= =7mX7 -----END PGP SIGNATURE----- --Apple-Mail=_02171A0C-E809-4575-8036-FCE18037610D--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE4F10DD-EC61-47E4-9CB6-9F7AD758E81D>