Skip to content

Add two tests and improve SBIUnit

Ivan Orlov opensbi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib: tests: Add test suite init functioninclude/sbi/sbi_unit_test.h lib/sbi/tests/sbi_unit_test.c+5 -01 reply
2/3lib: tests: Add test for atomic_tlib/sbi/tests/objects.mk lib/sbi/tests/riscv_atomic_test.c+146 -01 reply
3/3lib: tests: Add test for spinlockslib/sbi/tests/objects.mk lib/sbi/tests/riscv_locks_test.c+44 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAnup Patel
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Add two tests and improve SBIUnit

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
Signature · 1 line
2.34.1