Re: [PATCH] lib: hexdump: convert test to KUnit framework
From: Andy Shevchenko
Date: Fri Sep 04 2026 - 02:18:37 EST
On Thu, Sep 03, 2026 at 06:36:56PM -0300, Daniel Pereira wrote:
> The old test_hexdump module used the traditional kernel printing
> functions to verify hex dumping capabilities.
>
> This patch converts the existing test into the modern KUnit framework
> to allow standard automation, faster execution, and better integration
> with Kselftest CI.
...
> +++ b/lib/Kconfig.debug
> tristate "KUnit test for cpumask" if !KUNIT_ALL_TESTS
> depends on KUNIT
> default KUNIT_ALL_TESTS
> + default KUNIT_ALL_TESTS
> help
> Enable to turn on cpumask tests, running at boot or module load time.
>
> @@ -2289,6 +2290,7 @@ config TEST_LIST_SORT
> tristate "Linked list sorting test" if !KUNIT_ALL_TESTS
> depends on KUNIT
> default KUNIT_ALL_TESTS
> + default KUNIT_ALL_TESTS
> help
> Enable this to turn on 'list_sort()' function test. This test is
> executed only once during system boot (so affects only boot time),
> @@ -2300,6 +2302,7 @@ config TEST_SORT
> tristate "Array-based sort test" if !KUNIT_ALL_TESTS
> depends on KUNIT
> default KUNIT_ALL_TESTS
> + default KUNIT_ALL_TESTS
> This option enables the self-test function of 'sort()' at boot,
> or at module load time.
> @@ -2329,6 +2332,7 @@ config TEST_MULDIV64
> config TEST_IOV_ITER
> tristate "Test iov_iter operation" if !KUNIT_ALL_TESTS
> depends on KUNIT
> + default KUNIT_ALL_TESTS
> depends on MMU
> default KUNIT_ALL_TESTS
> help
> @@ -2343,6 +2347,7 @@ config KPROBES_SANITY_TEST
> depends on DEBUG_KERNEL
> depends on KPROBES
> depends on KUNIT
> + default KUNIT_ALL_TESTS
> select STACKTRACE if ARCH_CORRECT_STACKTRACE_ON_KRETPROBE
> default KUNIT_ALL_TESTS
> help
Have you read the patch before sending?
...
Please, take your time and check what you are sending next time.
This version is obviously no-go.
--
With Best Regards,
Andy Shevchenko