We finally got 'selftests' in the Linux kernel tree! I've been wanting this for years, but of course, I've not actually done anything to try to make it happen. Great job to the developers who did it, now we can start to populate it with more stuff as time goes on.
93 plus ones
Shared publicly•View activity
- So does kernel have unit-tests now? If yes, then that's really huge! Btw how's it work? It uses (isolates/mocks) some kernel calls from the source or operates on a working loaded kernel image directly?
upd Ah got that after looking briefly at the code - nevermind :)Feb 28, 2013
- Hm, what keeps an open question to me after reading the README is: Do you need to have this kernel running already to test it? Or can it happen at build time already?Feb 28, 2013
- External tests are great! I'd still like to see more test_*.c things in the kernel itself (like test_nx.c) for inspecting things that are only possible within ring-0.Feb 28, 2013
- Looking at the code, the tests are to be run after you boot the new kernel.Feb 28, 2013
- Would the Trinity fuzzer be too big/too intrusive to have in the tools part of the kernel?Feb 28, 2013
- Feb 28, 2013
- this selftest subsystem was primary intended for batch validation tests with deterministic data rather than long running stress testing. Now may be the scope of these unit tests has changed a bit since then.Feb 28, 2013
- we've had kernel tests at runtime for a while at least (RCU, some of the security stuff I worked on, lockdep), for things that can only be tested really from inside the kernel.Feb 28, 2013
Add a comment...