]> git.ipfire.org Git - thirdparty/linux.git/commit
printf: convert self-test to KUnit
authorTamir Duberstein <tamird@gmail.com>
Fri, 7 Mar 2025 22:08:56 +0000 (17:08 -0500)
committerKees Cook <kees@kernel.org>
Thu, 13 Mar 2025 17:26:33 +0000 (10:26 -0700)
commit7a79e7daa84e230266184a2018507551086c2317
tree4c70bb9920d5d301e640f0e82d8466b38e930ca0
parent6ee149f61bcce39692f0335a01e99355d4cec8da
printf: convert self-test to KUnit

Convert the printf() self-test to a KUnit test.

In the interest of keeping the patch reasonably-sized this doesn't
refactor the tests into proper parameterized tests - it's all one big
test case.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250307-printf-kunit-convert-v6-1-4d85c361c241@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
Documentation/core-api/printk-formats.rst
Documentation/dev-tools/kselftest.rst
MAINTAINERS
lib/Kconfig.debug
lib/Makefile
lib/tests/Makefile
lib/tests/printf_kunit.c [moved from lib/test_printf.c with 85% similarity]
tools/testing/selftests/kselftest/module.sh
tools/testing/selftests/lib/Makefile
tools/testing/selftests/lib/config
tools/testing/selftests/lib/printf.sh [deleted file]