All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] printf: convert self-test to KUnit
@ 2025-02-07 11:30 Tamir Duberstein
  2025-02-07 11:30 ` [PATCH v2 1/2] " Tamir Duberstein
  2025-02-07 11:30 ` [PATCH v2 2/2] printf: break kunit into test cases Tamir Duberstein
  0 siblings, 2 replies; 8+ messages in thread
From: Tamir Duberstein @ 2025-02-07 11:30 UTC (permalink / raw)
  To: Arpitha Raghunandan, David Gow, Petr Mladek, Steven Rostedt,
	Andy Shevchenko, Rasmus Villemoes, Sergey Senozhatsky,
	Andrew Morton, Shuah Khan, Brendan Higgins
  Cc: linux-kernel, linux-kselftest, Tamir Duberstein,
	Geert Uytterhoeven

This is one of just 3 remaining "Test Module" kselftests (the others
being bitmap and scanf), the rest having been converted to KUnit.

I tested this using:

$ tools/testing/kunit/kunit.py run --arch arm64 --make_options LLVM=1 printf

I have also sent out a series converting scanf[0].

Link: https://lore.kernel.org/all/20250204-scanf-kunit-convert-v3-0-386d7c3ee714@gmail.com/T/#u [0]

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
---
Changes in v2:
- Incorporate code review from prior work[0] by Arpitha Raghunandan.
- Link to v1: https://lore.kernel.org/r/20250204-printf-kunit-convert-v1-0-ecf1b846a4de@gmail.com

Link: https://lore.kernel.org/lkml/20200817043028.76502-1-98.arpi@gmail.com/t/#u [0]

---
Tamir Duberstein (2):
      printf: convert self-test to KUnit
      printf: break kunit into test cases

 Documentation/core-api/printk-formats.rst |   2 +-
 MAINTAINERS                               |   2 +-
 arch/m68k/configs/amiga_defconfig         |   1 -
 arch/m68k/configs/apollo_defconfig        |   1 -
 arch/m68k/configs/atari_defconfig         |   1 -
 arch/m68k/configs/bvme6000_defconfig      |   1 -
 arch/m68k/configs/hp300_defconfig         |   1 -
 arch/m68k/configs/mac_defconfig           |   1 -
 arch/m68k/configs/multi_defconfig         |   1 -
 arch/m68k/configs/mvme147_defconfig       |   1 -
 arch/m68k/configs/mvme16x_defconfig       |   1 -
 arch/m68k/configs/q40_defconfig           |   1 -
 arch/m68k/configs/sun3_defconfig          |   1 -
 arch/m68k/configs/sun3x_defconfig         |   1 -
 arch/powerpc/configs/ppc64_defconfig      |   1 -
 lib/Kconfig.debug                         |  20 +-
 lib/Makefile                              |   2 +-
 lib/{test_printf.c => printf_kunit.c}     | 400 ++++++++++++------------------
 tools/testing/selftests/lib/config        |   1 -
 tools/testing/selftests/lib/printf.sh     |   4 -
 20 files changed, 182 insertions(+), 262 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250131-printf-kunit-convert-fd4012aa2ec6

Best regards,
-- 
Tamir Duberstein <tamird@gmail.com>


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07 11:30 [PATCH v2 0/2] printf: convert self-test to KUnit Tamir Duberstein
2025-02-07 11:30 ` [PATCH v2 1/2] " Tamir Duberstein
2025-02-07 14:37   ` Tamir Duberstein
2025-02-10 13:00   ` Rasmus Villemoes
2025-02-10 14:36     ` Tamir Duberstein
2025-02-10 14:52       ` Geert Uytterhoeven
2025-02-10 15:22         ` Tamir Duberstein
2025-02-07 11:30 ` [PATCH v2 2/2] printf: break kunit into test cases Tamir Duberstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.