Add KUnit tests for the kfifo data structure....
They test the vast majority of macros defined in the kfifo
header (include/linux/kfifo.h).
These are inspired by the existing tests for the 'list' doubly
linked in lib/list-test.c [1].
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib/list-test.c
Signed-off-by: Diego Vieira <diego.daniel.professional@xxxxxxxxx>
---
lib/Kconfig.debug | 14 +++
lib/Makefile | 1 +
lib/kfifo-test.c | 222 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 237 insertions(+)
create mode 100644 lib/kfifo-test.c
+MODULE_LICENSE("GPL");