OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add two tests and improve SBIUnit
@ 2024-04-23 15:52 Ivan Orlov
  2024-04-23 15:52 ` [PATCH 1/3] lib: tests: Add test suite init function Ivan Orlov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ivan Orlov @ 2024-04-23 15:52 UTC (permalink / raw)
  To: opensbi

This patch series intriduces two more tests for OpenSBI:

- spinlocks test (for functions from `riscv_locks.h`)
- atomics test (for functions from `riscv_atomic.h`)

Also, it adds a functionality of defining the init function for the
test suite. It allows us to initialize global variables used in the
multiple test cases (see the atomic test in this patch series).


Ivan Orlov (3):
  lib: tests: Add test suite init function
  lib: tests: Add test for atomic_t
  lib: tests: Add test for spinlocks

 include/sbi/sbi_unit_test.h       |   2 +
 lib/sbi/tests/objects.mk          |   6 ++
 lib/sbi/tests/riscv_atomic_test.c | 143 ++++++++++++++++++++++++++++++
 lib/sbi/tests/riscv_locks_test.c  |  41 +++++++++
 lib/sbi/tests/sbi_unit_test.c     |   3 +
 5 files changed, 195 insertions(+)
 create mode 100644 lib/sbi/tests/riscv_atomic_test.c
 create mode 100644 lib/sbi/tests/riscv_locks_test.c

-- 
2.34.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-07  6:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-23 15:52 [PATCH 0/3] Add two tests and improve SBIUnit Ivan Orlov
2024-04-23 15:52 ` [PATCH 1/3] lib: tests: Add test suite init function Ivan Orlov
2024-05-07  6:02   ` Anup Patel
2024-04-23 15:52 ` [PATCH 2/3] lib: tests: Add test for atomic_t Ivan Orlov
2024-05-07  6:02   ` Anup Patel
2024-04-23 15:52 ` [PATCH 3/3] lib: tests: Add test for spinlocks Ivan Orlov
2024-05-07  6:02   ` Anup Patel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox