Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bala-Vignesh-Reddy and committed by
Paul Walmsley
f68cd7dd 70ddf86d

+24
+24
tools/testing/selftests/riscv/README
··· 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