On Sun, May 4, 2025 at 7:31 PM Tamir Duberstein <tam...@gmail.com> wrote: > > Is that true? The build host is often easier to work with. There's a > number of host tests on the C side that exist precisely for this > reason.
Even for tests that could run in the host (pure functions), if you test in the host, then you are not testing the actual kernel code, in the sense of same compile flags, target, etc. Moreover, you have UML, which gives you access to other APIs. As for "easier to work with", I am not sure what you mean -- KUnit does not really require anything special w.r.t. building the kernel normally. In a way, these restricted host tests actually are an extra hassle, in that you have to deal with yet another test environment and special restrictions. But which host tests are you referring to? Thanks for reviewing! Cheers, Miguel