linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] unicode: kunit: refactor selftest to kunit tests
@ 2024-09-28 23:58 Pedro Orlando
  2024-09-28 23:58 ` [PATCH v2 1/2] " Pedro Orlando
  2024-09-28 23:58 ` [PATCH v2 2/2] unicode: kunit: change tests filename and path Pedro Orlando
  0 siblings, 2 replies; 12+ messages in thread
From: Pedro Orlando @ 2024-09-28 23:58 UTC (permalink / raw)
  To: Gabriel Krisman Bertazi, David Gow, Shuah Khan, linux-fsdevel,
	~lkcamp/patches, linux-kselftest, kunit-dev
  Cc: Pedro Orlando, Gabriela Bittencourt, Danilo Pereira

Hey all,

We are making these changes as part of a KUnit Hackathon at LKCamp [1].

This patch sets out to refactor fs/unicode/utf8-selftest.c to KUnit tests.

The main benefit of this change is that we can leverage KUnit's
test suite for quickly compiling and testing the functions in utf8,
instead of compiling the kernel and loading the previous utf8-selftest
module, as well as adopting a pattern across all kernel tests.

The first commit is the refactoring itself from self test into KUnit,
which kept the original test logic intact -- maintaining the purpose
of the original tests -- with the added benefit of including these
tests into the KUnit test suite.

The second commit applies the naming style and file path conventions
defined on Documentation/dev-tools/kunit/style.rst

We appreciate any feedback and suggestions. :)

[1] https://lkcamp.dev/about/

Co-developed-by: Pedro Orlando <porlando@lkcamp.dev>
Signed-off-by: Pedro Orlando <porlando@lkcamp.dev>
Co-developed-by: Danilo Pereira <dpereira@lkcamp.dev>
Signed-off-by: Danilo Pereira <dpereira@lkcamp.dev>
Signed-off-by: Gabriela Bittencourt <gbittencourt@lkcamp.dev>

Gabriela Bittencourt (2):
  unicode: kunit: refactor selftest to kunit tests
  unicode: kunit: change tests filename and path

 fs/unicode/Kconfig                            |   5 +-
 fs/unicode/Makefile                           |   2 +-
 fs/unicode/tests/.kunitconfig                 |   3 +
 .../{utf8-selftest.c => tests/utf8_kunit.c}   | 149 ++++++++----------
 4 files changed, 76 insertions(+), 83 deletions(-)
 create mode 100644 fs/unicode/tests/.kunitconfig
 rename fs/unicode/{utf8-selftest.c => tests/utf8_kunit.c} (64%)

-- 
2.34.1


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

end of thread, other threads:[~2025-02-12 22:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-28 23:58 [PATCH v2 0/2] unicode: kunit: refactor selftest to kunit tests Pedro Orlando
2024-09-28 23:58 ` [PATCH v2 1/2] " Pedro Orlando
2024-10-03  6:53   ` David Gow
2024-10-04 19:02   ` Gabriel Krisman Bertazi
2024-09-28 23:58 ` [PATCH v2 2/2] unicode: kunit: change tests filename and path Pedro Orlando
2024-10-02 13:08   ` André Almeida
2024-10-03  6:54   ` David Gow
2024-10-04 19:00   ` Gabriel Krisman Bertazi
2025-02-12  6:45     ` Thorsten Leemhuis
2025-02-12  9:31       ` David Gow
2025-02-12 22:09         ` Kees Cook
2025-02-12 13:56       ` Thorsten Leemhuis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).