mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 07:44:49 +01:00
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>
|
||
|---|---|---|
| .. | ||
| module | ||
| base64_kunit.c | ||
| bitfield_kunit.c | ||
| blackhole_dev_kunit.c | ||
| checksum_kunit.c | ||
| cmdline_kunit.c | ||
| cpumask_kunit.c | ||
| ffs_kunit.c | ||
| fortify_kunit.c | ||
| hashtable_test.c | ||
| is_signed_type_kunit.c | ||
| kfifo_kunit.c | ||
| kunit_iov_iter.c | ||
| list-test.c | ||
| longest_symbol_kunit.c | ||
| Makefile | ||
| memcpy_kunit.c | ||
| min_heap_kunit.c | ||
| overflow_kunit.c | ||
| printf_kunit.c | ||
| randstruct_kunit.c | ||
| scanf_kunit.c | ||
| seq_buf_kunit.c | ||
| siphash_kunit.c | ||
| slub_kunit.c | ||
| stackinit_kunit.c | ||
| string_helpers_kunit.c | ||
| string_kunit.c | ||
| test_bits.c | ||
| test_fprobe.c | ||
| test_hash.c | ||
| test_kprobes.c | ||
| test_linear_ranges.c | ||
| test_list_sort.c | ||
| test_ratelimit.c | ||
| test_sort.c | ||
| usercopy_kunit.c | ||
| util_macros_kunit.c | ||
| uuid_kunit.c | ||