File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ Do *not* use it from C.
661661Thanks
662662======
663663
664- If you add other %p extensions, please extend <lib/test_printf .c> with
665- one or more test cases, if at all feasible.
664+ If you add other %p extensions, please extend <lib/tests/printf_kunit .c>
665+ with one or more test cases, if at all feasible.
666666
667667Thank you for your cooperation and attention.
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ kselftest. We use kselftests for lib/ as an example.
3473471. Create the test module
348348
3493492. Create the test script that will run (load/unload) the module
350- e.g. ``tools/testing/selftests/lib/printf .sh ``
350+ e.g. ``tools/testing/selftests/lib/bitmap .sh ``
351351
3523523. Add line to config file e.g. ``tools/testing/selftests/lib/config ``
353353
Original file line number Diff line number Diff line change @@ -25411,8 +25411,8 @@ R: Sergey Senozhatsky <senozhatsky@chromium.org>
2541125411S: Maintained
2541225412T: git git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git
2541325413F: Documentation/core-api/printk-formats.rst
25414- F: lib/test_printf.c
2541525414F: lib/test_scanf.c
25415+ F: lib/tests/printf_kunit.c
2541625416F: lib/vsprintf.c
2541725417
2541825418VT1211 HARDWARE MONITOR DRIVER
Original file line number Diff line number Diff line change @@ -2427,6 +2427,15 @@ config ASYNC_RAID6_TEST
24272427config TEST_HEXDUMP
24282428 tristate "Test functions located in the hexdump module at runtime"
24292429
2430+ config PRINTF_KUNIT_TEST
2431+ tristate "KUnit test printf() family of functions at runtime" if !KUNIT_ALL_TESTS
2432+ depends on KUNIT
2433+ default KUNIT_ALL_TESTS
2434+ help
2435+ Enable this option to test the printf functions at runtime.
2436+
2437+ If unsure, say N.
2438+
24302439config STRING_KUNIT_TEST
24312440 tristate "KUnit test string functions at runtime" if !KUNIT_ALL_TESTS
24322441 depends on KUNIT
@@ -2440,9 +2449,6 @@ config STRING_HELPERS_KUNIT_TEST
24402449config TEST_KSTRTOX
24412450 tristate "Test kstrto*() family of functions at runtime"
24422451
2443- config TEST_PRINTF
2444- tristate "Test printf() family of functions at runtime"
2445-
24462452config TEST_SCANF
24472453 tristate "Test scanf() family of functions at runtime"
24482454
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ obj-$(CONFIG_TEST_RHASHTABLE) += test_rhashtable.o
7777obj-$(CONFIG_TEST_STATIC_KEYS) += test_static_keys.o
7878obj-$(CONFIG_TEST_STATIC_KEYS) += test_static_key_base.o
7979obj-$(CONFIG_TEST_DYNAMIC_DEBUG) += test_dynamic_debug.o
80- obj-$(CONFIG_TEST_PRINTF) += test_printf.o
8180obj-$(CONFIG_TEST_SCANF) += test_scanf.o
8281
8382obj-$(CONFIG_TEST_BITMAP) += test_bitmap.o
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o
2929obj-$(CONFIG_MEMCPY_KUNIT_TEST) += memcpy_kunit.o
3030CFLAGS_overflow_kunit.o = $(call cc-disable-warning, tautological-constant-out-of-range-compare)
3131obj-$(CONFIG_OVERFLOW_KUNIT_TEST) += overflow_kunit.o
32+ obj-$(CONFIG_PRINTF_KUNIT_TEST) += printf_kunit.o
3233obj-$(CONFIG_SIPHASH_KUNIT_TEST) += siphash_kunit.o
3334obj-$(CONFIG_SLUB_KUNIT_TEST) += slub_kunit.o
3435obj-$(CONFIG_TEST_SORT) += test_sort.o
You can’t perform that action at this time.
0 commit comments