Skip to content

Commit f68cd7d

Browse files
Bala-Vignesh-ReddyPaul Walmsley
authored andcommitted
selftests: riscv: Add README for RISC-V KSelfTest
Add a README file for RISC-V specific kernel selftests under tools/testing/selftests/riscv/. This mirrors the existing README for arm64, providing clear guidance on how the tests are architecture specific and skipped on non-riscv systems. It also includes standard make commands for building, running and installing the tests, along with a reference to general kselftest documentation. Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20250815180724.14459-1-reddybalavignesh9979@gmail.com Signed-off-by: Paul Walmsley <pjw@kernel.org>
1 parent 70ddf86 commit f68cd7d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

  • tools/testing/selftests/riscv
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
KSelfTest RISC-V
2+
================
3+
4+
- These tests are riscv specific and so not built or run but just skipped
5+
completely when env-variable ARCH is found to be different than 'riscv'.
6+
7+
- Holding true the above, RISC-V KSFT tests can be run within the
8+
KSelfTest framework using standard Linux top-level-makefile targets:
9+
10+
$ make TARGETS=riscv kselftest-clean
11+
$ make TARGETS=riscv kselftest
12+
13+
or
14+
15+
$ make -C tools/testing/selftests TARGETS=riscv \
16+
INSTALL_PATH=<your-installation-path> install
17+
18+
or, alternatively, only specific riscv/ subtargets can be picked:
19+
20+
$ make -C tools/testing/selftests TARGETS=riscv RISCV_SUBTARGETS="mm vector" \
21+
INSTALL_PATH=<your-installation-path> install
22+
23+
Further details on building and running KSFT can be found in:
24+
Documentation/dev-tools/kselftest.rst

0 commit comments

Comments
 (0)