用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/google/crosvm --skill crosvm-testing命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Skill to assist with the contribution workflow for crosvm. ALL agents making code changes MUST use this skill to run presubmit checks before committing.
Skill to assist with using the `dev_container` tool for running builds, tests, and other tools in a consistent containerized environment.
Skill to assist with using the `./tools/cl` tool for managing and uploading Gerrit CLs in the crosvm repository.
基于 SOC 职业分类
正在显示 SKILL.md
| name | crosvm-testing |
| description | Skill to assist with running tests and managing test VMs in the crosvm repository. |
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.
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).
./tools/run_tests
./tools/run_tests -p <platform>
Supported platforms: x86_64, aarch64, armhw, mingw64, riscv64. Example for ARM64:
./tools/run_tests -p aarch64 Example for Windows (via Wine): ./tools/run_tests -p mingw64Integration tests require a Device Under Test (DUT).
./tools/run_tests --dut=vm
This will automatically start a test VM, run the tests inside it, and keep the VM running for
subsequent runs../tools/run_tests --dut=host
Note: This may not work on all host configurations and might require root.The runner supports nextest filter expressions using the -E or --filter-expr flag. See
nextest documentation for details.
./tools/run_tests -E 'package(devices)'
./tools/run_tests -E 'test(test_send_cmd_not_ready)'
./tools/run_tests -E 'deps(vm_control)'
--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).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.
./tools/x86vm up
./tools/x86vm shell
(This will start the VM if it is not already running)../tools/x86vm stop
./tools/x86vm kill
./tools/x86vm logs
./tools/x86vm clean