Re: How to run tests without installing?
- In reply to: Brooks Davis : "Re: How to run tests without installing?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 May 2024 00:18:39 UTC
> On Apr 29, 2024, at 1:47 PM, Brooks Davis <brooks@freebsd.org> wrote: > > 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? >> >> 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. > > 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 “make check MK_MAKE_CHECK_USE_SANDBOX=yes -DNO_ROOT”. It’s not perfect, but it might do what you want without breaking your system. Cheers, -Enji