mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
Add a KUnit test suite for the polynomial_calc() function, which had no in-kernel test coverage. The tests verify correct evaluation of constant, linear, quadratic, and cubic polynomials, including negative coefficients, negative input data, zero-coefficient terms. The Kconfig entry uses 'select POLYNOMIAL' rather than 'depends on POLYNOMIAL' because POLYNOMIAL is a promptless tristate that cannot be manually enabled on UML without an explicit selector. Link: https://lore.kernel.org/[email protected] Signed-off-by: Adi Nata <[email protected]> Cc: Maxim Kaurkin <[email protected]> Cc: Serge Semin <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Brendan Higgins <[email protected]> Cc: David Gow <[email protected]> Cc: Rae Moar <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
10 lines
420 B
Makefile
10 lines
420 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
obj-$(CONFIG_GCD_KUNIT_TEST) += gcd_kunit.o
|
|
obj-$(CONFIG_INT_LOG_KUNIT_TEST) += int_log_kunit.o
|
|
obj-$(CONFIG_INT_POW_KUNIT_TEST) += int_pow_kunit.o
|
|
obj-$(CONFIG_INT_SQRT_KUNIT_TEST) += int_sqrt_kunit.o
|
|
obj-$(CONFIG_POLYNOMIAL_KUNIT_TEST) += polynomial_kunit.o
|
|
obj-$(CONFIG_PRIME_NUMBERS_KUNIT_TEST) += prime_numbers_kunit.o
|
|
obj-$(CONFIG_RATIONAL_KUNIT_TEST) += rational_kunit.o
|