linux/tools/testing/selftests/riscv
Bala-Vignesh-Reddy f68cd7ddd0 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>
2025-09-18 19:26:07 -06:00
..
abi riscv: selftests: Fix warnings pointer masking test 2024-12-17 14:23:18 -08:00
hwprobe RISC-V: selftests: Add TEST_ZICBOM into CBO tests 2025-03-18 12:44:17 +00:00
mm riscv: selftests: Remove mmap hint address checks 2024-08-29 06:03:28 -07:00
sigreturn riscv: selftests: Fix vsetivli args for clang 2024-07-03 13:04:54 -07:00
vector selftests: riscv: fix v_exec_initval_nolibc.c 2025-04-01 07:03:04 +00:00
Makefile riscv: selftests: Add a pointer masking test 2024-10-24 14:12:58 -07:00
README selftests: riscv: Add README for RISC-V KSelfTest 2025-09-18 19:26:07 -06:00

README

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