mcpbeat Sign in

Crosvm Testing Agent Skill

Skill to assist with running tests and managing test VMs in the crosvm repository.

847 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
1270
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/google/crosvm --skill crosvm-testing

The instruction itself

7 sections, as written by the author

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):
  ./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 mingw64

2. Integration Tests

Integration tests require a Device Under Test (DUT).

  • Run integration tests on a Test VM (Recommended):
  ./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.

  • Run integration tests on the Host:
  ./tools/run_tests --dut=host

*Note: This may not work on all host configurations and might require root.*

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:
  ./tools/x86vm shell

*(This will start the VM if it is not already running).*

  • 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

Other skills for the same job

different authors, same section of the catalogue
Webapp Testing
by anthropics
vendor ×12

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

6k tokens scripts
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
Test Driven Development
by w95
×7

Use when implementing any feature or bugfix, before writing implementation code

2k tokens
Systematic Debugging
by ratacat
×7

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

10k tokens scripts
Verification Before Completion
by ZhanlinCui
×6

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

1k tokens
Backtest Expert
by BaggaT236
×3

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

15k tokens scripts
Adaptyv
by christophacham
×3

Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.

16k tokens
Aeon
by christophacham
×3

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

19k tokens

How to use it

Copy the folder

Take google/crosvm-testing from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.