mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +00:00
Clarify offline validation vs live module-loading validate_all.sh in CONTRIBUTING.md
This commit is contained in:
@ -23,7 +23,7 @@ Thank you for contributing to `nvdriver` (`nvidia_rs.ko`)! This guide outlines o
|
||||
|
||||
## Local Validation Gate
|
||||
|
||||
Before opening a pull request, run the offline validation suite (or `sh tools/validate_all.sh` when testing on an isolated machine):
|
||||
Before opening a pull request, run the offline build and test commands (these do not require `sudo` or load any kernel module):
|
||||
|
||||
```sh
|
||||
cargo fmt --all -- --check
|
||||
@ -32,10 +32,16 @@ cargo test --workspace
|
||||
make modules
|
||||
make -C src/nvidia audit-codegen
|
||||
python3 tools/check_native_codegen.py
|
||||
python3 tests/kernel-module-gate/test_gate_cases.py
|
||||
NV_RS_KERNEL_IBT=1 python3 -m unittest tests/kernel-module-gate/test_gate_cases.py
|
||||
python3 tests/kernel-module-gate/test_kernel_archive.py
|
||||
```
|
||||
|
||||
On a dedicated/disposable test machine where loading experimental kernel modules is acceptable, you can run the full validation suite including live `sudo insmod`/`rmmod` of `nvidia_rs.ko` and `/dev/nvidia-rsctl` smoke tests:
|
||||
|
||||
```sh
|
||||
sh tools/validate_all.sh
|
||||
```
|
||||
|
||||
When modifying kernel C adapters (`kernel-open/`), DMA/IOMMU paths, or PCI/owner lifecycle code, also run the software QEMU EDU guest tests (no physical GPU required):
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user