On Tue, Jul 16, 2024 at 11:04:06AM -0700, John Hubbard wrote:
This is a classic case of testing a kernel API via ioctl into the kernel, so I think it meets your criteria for moving to KUnit. Having said that, I must now go try out KUnit in a bit more depth before I'm sure that this will work out. But it should.
I've found the docs really helpful: https://docs.kernel.org/dev-tools/kunit/
Searching for *_kunit.c will also give a lot of examples. And the kunit folks are really responsive to questions, helping guide finding solutions to novel testing needs, etc. :)