Add two tests and improve SBIUnit
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | lib: tests: Add test suite init functioninclude/ lib/ | +5 | 1 reply | |
| 2/3 | lib: tests: Add test for atomic_tlib/ lib/ | +146 | 1 reply | |
| 3/3 | lib: tests: Add test for spinlockslib/ lib/ | +44 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Anup Patel |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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