Posted Aug 9, 2012 14:32 UTC (Thu) by pj (subscriber, #4506)
Parent article: A generic hash table
Coming right after the 'kernel regressions' article, this made me wonder... does this new generic hash table implementation come with a test suite? If so, that would be a measurable, notable improvement over the other N implementations that Sasha could point to.
Posted Aug 14, 2012 17:02 UTC (Tue) by sashal (subscriber, #81842)
[Link]
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.
Thanks for the suggestion!
User space unit tests?
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?