aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>2025-08-15 23:37:24 +0530
committerPaul Walmsley <pjw@kernel.org>2025-09-18 19:26:07 -0600
commitf68cd7ddd014b60451922207bff2ea3beea0d8cb (patch)
tree05e189482eb09aaa34d5314bede5139684209f70
parentriscv: sbi: Switch to new sys-off handler API (diff)
downloadlinux-f68cd7ddd014b60451922207bff2ea3beea0d8cb.tar.gz
linux-f68cd7ddd014b60451922207bff2ea3beea0d8cb.zip
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>
-rw-r--r--tools/testing/selftests/riscv/README24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/testing/selftests/riscv/README b/tools/testing/selftests/riscv/README
new file mode 100644
index 000000000000..443da395da68
--- /dev/null
+++ b/tools/testing/selftests/riscv/README
@@ -0,0 +1,24 @@
+KSelfTest RISC-V
+================
+
+- These tests are riscv specific and so not built or run but just skipped
+ completely when env-variable ARCH is found to be different than 'riscv'.
+
+- Holding true the above, RISC-V KSFT tests can be run within the
+ KSelfTest framework using standard Linux top-level-makefile targets:
+
+ $ make TARGETS=riscv kselftest-clean
+ $ make TARGETS=riscv kselftest
+
+ or
+
+ $ make -C tools/testing/selftests TARGETS=riscv \
+ INSTALL_PATH=<your-installation-path> install
+
+ or, alternatively, only specific riscv/ subtargets can be picked:
+
+ $ make -C tools/testing/selftests TARGETS=riscv RISCV_SUBTARGETS="mm vector" \
+ INSTALL_PATH=<your-installation-path> install
+
+ Further details on building and running KSFT can be found in:
+ Documentation/dev-tools/kselftest.rst