Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 2024 20:47:46 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Christian Weisgerber <naddy@mips.inka.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: How to run tests without installing?
Message-ID:  <ZjAHcluVI2SGh8Ul@spindle.one-eyed-alien.net>
In-Reply-To: <Zi93yxSsEnttr3Ay@lorvorc.mips.inka.de>
References:  <Zi93yxSsEnttr3Ay@lorvorc.mips.inka.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- Brooks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZjAHcluVI2SGh8Ul>