mirror-linux/arch
Ryota Sakamoto d30aca3eef lib/tests: convert test_min_heap module to KUnit
Move lib/test_min_heap.c to lib/tests/min_heap_kunit.c and convert it to
use KUnit.

This change switches the ad-hoc test code to standard KUnit test cases. 
The test data remains the same, but the verification logic is updated to
use KUNIT_EXPECT_* macros.

Also remove CONFIG_TEST_MIN_HEAP from arch/*/configs/* because it is no
longer used.  The new CONFIG_MIN_HEAP_KUNIT_TEST will be automatically
enabled by CONFIG_KUNIT_ALL_TESTS.

The reasons for converting to KUnit are:

1. Standardization:
    Switching from ad-hoc printk-based reporting to the standard
    KTAP format makes it easier for CI systems to parse and report test
    results

2. Better Diagnostics:
    Using KUNIT_EXPECT_* macros automatically provides detailed
    diagnostics on failure.

3. Tooling Integration:
    It allows the test to be managed and executed using standard
    KUnit tools.

Link: https://lkml.kernel.org/r/20251221133516.321846-1-sakamo.ryota@gmail.com
Signed-off-by: Ryota Sakamoto <sakamo.ryota@gmail.com>
Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: David Gow <davidgow@google.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-01-26 19:07:10 -08:00
..
alpha alpha updates for v6.19 2025-12-11 08:01:52 +09:00
arc
arm watchdog: softlockup: panic when lockup duration exceeds N thresholds 2026-01-20 19:44:20 -08:00
arm64 kallsyms/bpf: rename __bpf_address_lookup() to bpf_address_lookup() 2026-01-20 19:44:22 -08:00
csky csky 6.19 Release Notes 2025-12-10 12:17:29 +09:00
hexagon This update includes the following changes: 2025-12-03 11:28:38 -08:00
loongarch kallsyms/bpf: rename __bpf_address_lookup() to bpf_address_lookup() 2026-01-20 19:44:22 -08:00
m68k lib/tests: convert test_min_heap module to KUnit 2026-01-26 19:07:10 -08:00
microblaze
mips kernel.h: drop hex.h and update all hex.h users 2026-01-20 19:44:19 -08:00
nios2 arch/nios2: replace "__auto_type" and adjacent equivalent with "auto" 2025-12-08 15:32:15 -08:00
openrisc watchdog: softlockup: panic when lockup duration exceeds N thresholds 2026-01-20 19:44:20 -08:00
parisc TTY/Serial changes for 6.19-rc1 2025-12-06 18:38:19 -08:00
powerpc lib/tests: convert test_min_heap module to KUnit 2026-01-26 19:07:10 -08:00
riscv bpf-fixes 2026-01-13 21:21:13 -08:00
s390 lib/tests: convert test_min_heap module to KUnit 2026-01-26 19:07:10 -08:00
sh treewide: Update email address 2026-01-11 06:09:11 -10:00
sparc treewide: Update email address 2026-01-11 06:09:11 -10:00
um kernel.h: drop hex.h and update all hex.h users 2026-01-20 19:44:19 -08:00
x86 x86/kfence: avoid writing L1TF-vulnerable PTEs 2026-01-19 12:30:02 -08:00
xtensa kernel.h: drop hex.h and update all hex.h users 2026-01-20 19:44:19 -08:00
.gitignore
Kconfig