File tree Expand file tree Collapse file tree 11 files changed +132
-106
lines changed Expand file tree Collapse file tree 11 files changed +132
-106
lines changed Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ Do *not* use it from C.
661
661
Thanks
662
662
======
663
663
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.
666
666
667
667
Thank 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.
347
347
1. Create the test module
348
348
349
349
2. 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 ``
351
351
352
352
3. Add line to config file e.g. ``tools/testing/selftests/lib/config ``
353
353
Original file line number Diff line number Diff line change 25411
25411
S: Maintained
25412
25412
T: git git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git
25413
25413
F: Documentation/core-api/printk-formats.rst
25414
- F: lib/test_printf.c
25415
25414
F: lib/test_scanf.c
25415
+ F: lib/tests/printf_kunit.c
25416
25416
F: lib/vsprintf.c
25417
25417
25418
25418
VT1211 HARDWARE MONITOR DRIVER
Original file line number Diff line number Diff line change @@ -2427,6 +2427,15 @@ config ASYNC_RAID6_TEST
2427
2427
config TEST_HEXDUMP
2428
2428
tristate "Test functions located in the hexdump module at runtime"
2429
2429
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
+
2430
2439
config STRING_KUNIT_TEST
2431
2440
tristate "KUnit test string functions at runtime" if !KUNIT_ALL_TESTS
2432
2441
depends on KUNIT
@@ -2440,9 +2449,6 @@ config STRING_HELPERS_KUNIT_TEST
2440
2449
config TEST_KSTRTOX
2441
2450
tristate "Test kstrto*() family of functions at runtime"
2442
2451
2443
- config TEST_PRINTF
2444
- tristate "Test printf() family of functions at runtime"
2445
-
2446
2452
config TEST_SCANF
2447
2453
tristate "Test scanf() family of functions at runtime"
2448
2454
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ obj-$(CONFIG_TEST_RHASHTABLE) += test_rhashtable.o
77
77
obj-$(CONFIG_TEST_STATIC_KEYS) += test_static_keys.o
78
78
obj-$(CONFIG_TEST_STATIC_KEYS) += test_static_key_base.o
79
79
obj-$(CONFIG_TEST_DYNAMIC_DEBUG) += test_dynamic_debug.o
80
- obj-$(CONFIG_TEST_PRINTF) += test_printf.o
81
80
obj-$(CONFIG_TEST_SCANF) += test_scanf.o
82
81
83
82
obj-$(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
29
29
obj-$(CONFIG_MEMCPY_KUNIT_TEST) += memcpy_kunit.o
30
30
CFLAGS_overflow_kunit.o = $(call cc-disable-warning, tautological-constant-out-of-range-compare)
31
31
obj-$(CONFIG_OVERFLOW_KUNIT_TEST) += overflow_kunit.o
32
+ obj-$(CONFIG_PRINTF_KUNIT_TEST) += printf_kunit.o
32
33
obj-$(CONFIG_SIPHASH_KUNIT_TEST) += siphash_kunit.o
33
34
obj-$(CONFIG_SLUB_KUNIT_TEST) += slub_kunit.o
34
35
obj-$(CONFIG_TEST_SORT) += test_sort.o
You can’t perform that action at this time.
0 commit comments