Indeed this is a great suggestion. Some sort of CONFIG_HASHTABLE_TEST (similar to what happens with list sorting for example) is definitely something I'd like to add.
Posted Aug 15, 2012 15:01 UTC (Wed) by alex (subscriber, #1355)
[Link]
While enabling run time testing of some kernel features is useful (the VM torture tests spring to mind) it would be much better if library code was testable in a user space build that didn't involve bringing a kernel up.
How about adding "make unittests" as a target for the kernel build?