Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH 0/1] Add KUnit tests for kfifo
@ 2024-07-22  0:18 Diego Vieira
  2024-07-22  0:18 ` [PATCH 1/1] lib/kfifo-test.c: add tests for the kfifo structure Diego Vieira
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Vieira @ 2024-07-22  0:18 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel, Brendan Higgins, David Gow, Rae Moar,
	linux-kselftest, kunit-dev
  Cc: n, andrealmeid, vinicius, diego.daniel.professional

From: diegodvv <diego.daniel.professional@gmail.com>

Hi all,

This is part of a hackathon organized by LKCAMP[1], focused on writing
tests using KUnit. We reached out a while ago asking for advice on what would
be a useful contribution[2] and ended up choosing data structures that did
not yet have tests. 

This patch adds tests for the kfifo data structure, defined in 
include/linux/kfifo.h, and is inspired by the KUnit tests for the doubly
linked list in lib/list-test.c[3].

[1] https://lkcamp.dev/about/
[2] https://lore.kernel.org/all/Zktnt7rjKryTh9-N@arch/
[3] https://elixir.bootlin.com/linux/latest/source/lib/list-test.c

Diego Vieira (1):
  lib/kfifo-test.c: add tests for the kfifo structure

 lib/Kconfig.debug |  14 +++
 lib/Makefile      |   1 +
 lib/kfifo-test.c  | 222 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 237 insertions(+)
 create mode 100644 lib/kfifo-test.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-22 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-22  0:18 [PATCH 0/1] Add KUnit tests for kfifo Diego Vieira
2024-07-22  0:18 ` [PATCH 1/1] lib/kfifo-test.c: add tests for the kfifo structure Diego Vieira
2024-07-22 14:19   ` Jeff Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox