forked from Mirrors/opensbi

This patch introduces a new math test suite to the SBI unit tests. The changes include: * Updating lib/sbi/tests/objects.mk to include math_test_suite and sbi_math_test.o. * Adding a new file lib/sbi/tests/sbi_math_test.c which contains tests for log2roundup function using various cases. The addition of this test suite ensures that mathematical functions are verified and work as expected. Signed-off-by: Dongdong Zhang <zhangdongdong@eswincomputing.com> Reviewed-by: Anup Patel <anup@brainfault.org>
17 lines
712 B
Makefile
17 lines
712 B
Makefile
libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_unit_test.o
|
|
libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_unit_tests.carray.o
|
|
|
|
carray-sbi_unit_tests-$(CONFIG_SBIUNIT) += bitmap_test_suite
|
|
libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_bitmap_test.o
|
|
|
|
carray-sbi_unit_tests-$(CONFIG_SBIUNIT) += console_test_suite
|
|
libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_console_test.o
|
|
|
|
carray-sbi_unit_tests-$(CONFIG_SBIUNIT) += atomic_test_suite
|
|
libsbi-objs-$(CONFIG_SBIUNIT) += tests/riscv_atomic_test.o
|
|
|
|
carray-sbi_unit_tests-$(CONFIG_SBIUNIT) += locks_test_suite
|
|
libsbi-objs-$(CONFIG_SBIUNIT) += tests/riscv_locks_test.o
|
|
|
|
carray-sbi_unit_tests-$(CONFIG_SBIUNIT) += math_test_suite
|
|
libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_math_test.o
|