2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/lib/math/tests
Tamir Duberstein 313b38a6ec lib/prime_numbers: convert self-test to KUnit
Extract a private header and convert the prime_numbers self-test to a
KUnit test. I considered parameterizing the test using
`KUNIT_CASE_PARAM` but didn't see how it was possible since the test
logic is entangled with the test parameter generation logic.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250208-prime_numbers-kunit-convert-v5-2-b0cb82ae7c7d@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
2025-02-12 14:00:11 -08:00
..
gcd_kunit.c lib/math: Add Kunit test suite for gcd() 2025-02-12 14:00:11 -08:00
int_log_kunit.c lib/math: Add int_log test suite 2025-02-10 18:25:37 -08:00
int_pow_kunit.c lib/math: Add int_pow test suite 2024-09-12 10:03:00 -06:00
int_sqrt_kunit.c lib/math: add int_sqrt test suite 2025-01-12 20:21:08 -08:00
Makefile lib/prime_numbers: convert self-test to KUnit 2025-02-12 14:00:11 -08:00
prime_numbers_kunit.c lib/prime_numbers: convert self-test to KUnit 2025-02-12 14:00:11 -08:00
rational_kunit.c lib: math: Move KUnit tests into tests/ subdir 2025-02-10 18:24:57 -08:00