crosvm-testing
Skill1.3k starsChanged 5 months agoBSD-3-ClauseView on GitHub
Skill to assist with running tests and managing test VMs in the crosvm repository.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about google/crosvm
- A Hacker News story“Crosvm – The Chrome OS Virtual Machine Monitor”Hacker News · Oct 27, 2021 · 6 points
- A Hacker News story“crosvm: The ChromeOS Virtual Machine Monitor”Hacker News · May 31, 2023 · 3 points
- termux/termux-packages“[Package]: crosvm”GitHub · Feb 10, 2024 · 2 reactions
- google/android-cuttlefish“Increase nofile limits to be able to use --gpu_mode="guest_swiftshader"”GitHub · Aug 13, 2024
- oasis-tcs/virtio-spec“virtio-sound: add latency_bytes definition”GitHub · Jun 21, 2024
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub and Hacker News (9 times).
On GitHub · 7
- Feb 10, 2024[Package]: crosvm — termux/termux-packages2 reactions · 127 comments
- Aug 13, 2024Increase nofile limits to be able to use --gpu_mode="guest_swiftshader" — google/android-cuttlefish0 reactions · 3 comments
- Jun 21, 2024virtio-sound: add latency_bytes definition — oasis-tcs/virtio-spec0 reactions · 2 comments
- May 21, 2024Stack overflow from opening qcow files with backing file pointing to itself — cloud-hypervisor/cloud-hypervisor0 reactions · 1 comment
- Aug 28, 2023refactor: refactor platform dependant code and fix windows tests — kubewarden/policy-fetcher0 reactions · 1 comment
2 more on GitHub
- Mar 8, 2023Potential missing INTx interrupt while handling EOI with IOAPIC — cloud-hypervisor/cloud-hypervisor0 reactions · 4 comments
- Jun 10, 2022fusedev: Fixed some issues about EINTR and EAGIN handled incorrectly — cloud-hypervisor/fuse-backend-rs0 reactions · 1 comment
On Hacker News · 2
- Oct 27, 2021Crosvm – The Chrome OS Virtual Machine Monitor6 points
- May 31, 2023crosvm: The ChromeOS Virtual Machine Monitor3 points · 1 comment
In this repository4 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- crosvm-cl-toolSkill
- crosvm-contribution-workflowSkill
- crosvm-dev-containerSkill
The file
Files
Crosvm Testing (tools/run_tests & tools/testvm)
This skill covers running the crosvm test suite and managing the virtual machines used for
integration testing.
[!TIP] When you have completed your code changes and are ready to commit or upload, please run the overall presubmit checks according to the crosvm-contribution-workflow SKILL.md.
Running Tests (tools/run_tests)
The tools/run_tests script is the primary test runner. It supports unit tests (running on the host
or via emulators) and integration tests (running on a test VM or the host).
1. Unit Tests
- Run host native unit tests:
./tools/run_tests - Run unit tests for a specific platform (via emulator):
Supported platforms:./tools/run_tests -p <platform>x86_64,aarch64,armhw,mingw64,riscv64. Example for ARM64:./tools/run_tests -p aarch64Example for Windows (via Wine):./tools/run_tests -p mingw64
2. Integration Tests
Integration tests require a Device Under Test (DUT).
- Run integration tests on a Test VM (Recommended):
This will automatically start a test VM, run the tests inside it, and keep the VM running for subsequent runs../tools/run_tests --dut=vm - Run integration tests on the Host:
Note: This may not work on all host configurations and might require root../tools/run_tests --dut=host
3. Test Filtering
The runner supports nextest filter expressions using the -E or --filter-expr flag. See
nextest documentation for details.
- Run tests for a specific package:
./tools/run_tests -E 'package(devices)' - Run a specific test by name:
./tools/run_tests -E 'test(test_send_cmd_not_ready)' - Run tests for a package and its dependencies:
./tools/run_tests -E 'deps(vm_control)'
4. Useful Flags
--no-unit-tests: Skip unit tests and only run integration tests.--no-integration-tests: Skip integration tests.--run-root-tests: Enable integration tests that require root privileges.--retries <N>: Retry failed tests N times.--repetitions <N>: Repeat all tests N times (useful for detecting flakiness).
Managing Test VMs (tools/testvm, tools/x86vm, tools/aarch64vm)
For integration testing (--dut=vm), crosvm uses test VMs. You can manage these VMs using
tools/x86vm (for x86_64) or tools/aarch64vm (for ARM64). These are wrappers around
tools/testvm.
Replace x86vm with aarch64vm in the commands below depending on the architecture you are
testing.
- Start the VM:
./tools/x86vm up - Open an interactive SSH shell into the VM:
(This will start the VM if it is not already running)../tools/x86vm shell - Stop the VM gracefully:
./tools/x86vm stop - Force kill the VM:
./tools/x86vm kill - View VM console logs:
./tools/x86vm logs - Clean/Reset the VM (deletes images):
./tools/x86vm clean
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

