forked from Mirrors/opensbi

Implement the test which covers some of the functions from the `riscv_locks.h` file. This test consists of 3 test cases: 1) For lock/unlock functions 2) Unsuccessful trylock (the lock was previously taken) 3) Successful trylock (the lock is free and can be taken) Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org>
15 lines
591 B
Makefile
15 lines
591 B
Makefile
libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_unit_test.o
|
|
libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_unit_tests.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
|