microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
.github/instructions/vmm-tests.instructions.md
20lines · modecode
| 1 | --- |
| 2 | applyTo: "vmm_tests/**,petri/**" |
| 3 | --- |
| 4 | |
| 5 | # Running VMM Tests |
| 6 | |
| 7 | VMM tests are **not** regular unit tests. Do NOT run them with |
| 8 | `cargo nextest run -p vmm_tests` or `cargo test -p vmm_tests` — they require |
| 9 | external artifacts (disk images, firmware, OpenHCL binaries) that won't be |
| 10 | present, causing confusing failures. |
| 11 | |
| 12 | Use `cargo xflowey vmm-tests-run` instead. It automatically discovers |
| 13 | artifacts, builds dependencies, and runs tests in a single command: |
| 14 | |
| 15 | ```bash |
| 16 | cargo xflowey vmm-tests-run --filter "test(my_test_name)" --dir /tmp/vmm-tests-run |
| 17 | ``` |
| 18 | |
| 19 | To learn the full workflow (filter syntax, cross-compilation, logging, common |
| 20 | pitfalls), load the `vmm-tests` skill. |
| 21 | |