On Sat, Jul 26, 2025 at 05:27:11PM +0800, 'David Gow' via KUnit Development wrote:
>
> The biggest question I'd have around having "make kunit" / "make test"
> would be which configuration should be used. The simple answer of the
> default KUnit configuration (kunit.py run) is probably right, but UML
> only works on x86{,-64} and ignores the current config.
At least for now, what I'd suggest is to have "make kunit" use the
default config for those architectures that support UML. At the
moment the default Kunit configuration runs all of the unit tests, and
the unit tests are so fast that I think it's fine.
On my development system, running all of the tests takes 4.8s of wall
clock time. Running just the ext4 kunit tests only takes 2.5s. Now,
this *is* a pretty fast development system with 48 cores, but even if
I force only one CPU to be used with --jobs=1, it's still 6.8 seconds
for al tests versus 3.9 seconds for just the ext4 kunit tests. So
using the default configuration should be relatively acceptable.
> There was a push to have something more general than KUnit, too, which
> catalogued per-subsystem test requirements (either in MAINTAINERS, or
> as a part of something like
>
https://github.com/dzickusrh/test-catalog/tree/main ), which would
> solve the problem of different subsystems having different test
> requirements, but consequently introducing more complexity for the
> average user. (And I think those efforts are largely morphing into
> more coverage-focused things, than per-maintainer/subsystem tests
> requirements, too.)
Yeah, that's a much harder problem. It's going to vary depending on
problem scoping; are you someone who is writing a drive-by patch and
you want to run the minimum set of tests demanding by the maintainer?
Are you a subsystem developer who wants to run a more expansive set of
testS? Or are you the subsystem maintainer running the full set of
tests before sending a pull request to Linus?
And it might depend on the test resources that you have available. If
you are a subsystem developer who is on the road and only has their
laptop, the set of test you might run might be different if you are at
home with your 48-core threadripper development system.
So yeah, let's just have "make kunit" be a simpler way of kicking off
all of the kunit tests. That's probably going to be much less
controversial, and a lot easier to get upstream.
Cheers,
- Ted