How is the Linux kernel tested?
embeddedbits.org
How is the Linux kernel tested?
1–10 of 59 posts
Re: How is the Linux kernel tested?
#2Re: How is the Linux kernel tested?
#3So what happens when Linus Torvalds dies? Is there someone else who will become BDFL?
Re: How is the Linux kernel tested?
#4Re: How is the Linux kernel tested?
#5Long way of saying "it's not".
I hate comments like this on HN.
The article clearly elaborates which methods/tools are used in their test process.
Re: How is the Linux kernel tested?
#6Long way of saying "it's not".
Re: How is the Linux kernel tested?
#7Re: How is the Linux kernel tested?
#8Re: How is the Linux kernel tested?
#9Why is there such little emphasis on “traditional” testing, that is, regular unit tests? At least some portion of the code base is surely suitable for normal unit tests. For example data structures, scheduling algorithms, file systems, ...
I am well aware that it's also possible to have dependency injection in C by using structs with function pointers, but I think we can all agree that it's a lot less pleasant to use than C++ abstract base classes, Go interfaces or Rust traits. This is why the Linux kernel only tends to use this sparingly (e.g., inode operations).
Re: How is the Linux kernel tested?
#10Why is there such little emphasis on “traditional” testing, that is, regular unit tests? At least some portion of the code base is surely suitable for normal unit tests. For example data structures, scheduling algorithms, file systems, ...
To solve this, you would need to either use a hierarchical decomposition of subsystems or do some crazy mocking to run subsystems outside of the full kernel.
There is a recent project (KUnit) to add a unit testing framework to the Linux kernel, but it remains to be seen how much adoption it will get.