[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6992CHS0VHSRR8MGCTREB6X":3,"skill-same:01M6992CHS0VHSRR8MGCTREB6X":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6992CHS0VHSRR8MGCTREB6X","crosvm-testing",null,"Skill to assist with running tests and managing test VMs in the crosvm repository.","google\u002Fcrosvm","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M69926BCXV63W79JPA18Y40G",1365,"BSD-3-Clause","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fcrosvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcrosvm_testing\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32],"testing","crosvm testing","test","running tests","repository","tests","with","vms","running","2026-11-10 10:12:30",false,"---\nname: crosvm-testing\ndescription: Skill to assist with running tests and managing test VMs in the crosvm repository.\n---\n\n# Crosvm Testing (`tools\u002Frun_tests` & `tools\u002Ftestvm`)\n\nThis skill covers running the `crosvm` test suite and managing the virtual machines used for\nintegration testing.\n\n> [!TIP] When you have completed your code changes and are ready to commit or upload, please run the\n> overall presubmit checks according to the crosvm-contribution-workflow\n> [SKILL.md](..\u002Fcrosvm_contribution_workflow\u002FSKILL.md).\n\n## Running Tests (`tools\u002Frun_tests`)\n\nThe `tools\u002Frun_tests` script is the primary test runner. It supports unit tests (running on the host\nor via emulators) and integration tests (running on a test VM or the host).\n\n### 1. Unit Tests\n\n- **Run host native unit tests**:\n  ```bash\n  .\u002Ftools\u002Frun_tests\n  ```\n- **Run unit tests for a specific platform (via emulator)**:\n  ```bash\n  .\u002Ftools\u002Frun_tests -p \u003Cplatform>\n  ```\n  Supported platforms: `x86_64`, `aarch64`, `armhw`, `mingw64`, `riscv64`. *Example for ARM64*:\n  `.\u002Ftools\u002Frun_tests -p aarch64` *Example for Windows (via Wine)*: `.\u002Ftools\u002Frun_tests -p mingw64`\n\n### 2. Integration Tests\n\nIntegration tests require a Device Under Test (DUT).\n\n- **Run integration tests on a Test VM (Recommended)**:\n  ```bash\n  .\u002Ftools\u002Frun_tests --dut=vm\n  ```\n  This will automatically start a test VM, run the tests inside it, and keep the VM running for\n  subsequent runs.\n- **Run integration tests on the Host**:\n  ```bash\n  .\u002Ftools\u002Frun_tests --dut=host\n  ```\n  *Note: This may not work on all host configurations and might require root.*\n\n### 3. Test Filtering\n\nThe runner supports `nextest` filter expressions using the `-E` or `--filter-expr` flag. See\n[nextest documentation](https:\u002F\u002Fnexte.st\u002Fbook\u002Ffilter-expressions.html) for details.\n\n- **Run tests for a specific package**:\n  ```bash\n  .\u002Ftools\u002Frun_tests -E 'package(devices)'\n  ```\n- **Run a specific test by name**:\n  ```bash\n  .\u002Ftools\u002Frun_tests -E 'test(test_send_cmd_not_ready)'\n  ```\n- **Run tests for a package and its dependencies**:\n  ```bash\n  .\u002Ftools\u002Frun_tests -E 'deps(vm_control)'\n  ```\n\n### 4. Useful Flags\n\n- `--no-unit-tests`: Skip unit tests and only run integration tests.\n- `--no-integration-tests`: Skip integration tests.\n- `--run-root-tests`: Enable integration tests that require root privileges.\n- `--retries \u003CN>`: Retry failed tests N times.\n- `--repetitions \u003CN>`: Repeat all tests N times (useful for detecting flakiness).\n\n______________________________________________________________________\n\n## Managing Test VMs (`tools\u002Ftestvm`, `tools\u002Fx86vm`, `tools\u002Faarch64vm`)\n\nFor integration testing (`--dut=vm`), `crosvm` uses test VMs. You can manage these VMs using\n`tools\u002Fx86vm` (for x86_64) or `tools\u002Faarch64vm` (for ARM64). These are wrappers around\n`tools\u002Ftestvm`.\n\nReplace `x86vm` with `aarch64vm` in the commands below depending on the architecture you are\ntesting.\n\n- **Start the VM**:\n  ```bash\n  .\u002Ftools\u002Fx86vm up\n  ```\n- **Open an interactive SSH shell into the VM**:\n  ```bash\n  .\u002Ftools\u002Fx86vm shell\n  ```\n  *(This will start the VM if it is not already running).*\n- **Stop the VM gracefully**:\n  ```bash\n  .\u002Ftools\u002Fx86vm stop\n  ```\n- **Force kill the VM**:\n  ```bash\n  .\u002Ftools\u002Fx86vm kill\n  ```\n- **View VM console logs**:\n  ```bash\n  .\u002Ftools\u002Fx86vm logs\n  ```\n- **Clean\u002FReset the VM (deletes images)**:\n  ```bash\n  .\u002Ftools\u002Fx86vm clean\n  ```\n","# Crosvm Testing (`tools\u002Frun_tests` & `tools\u002Ftestvm`)\n\nThis skill covers running the `crosvm` test suite and managing the virtual machines used for\nintegration testing.\n\n> [!TIP] When you have completed your code changes and are ready to commit or upload, please run the\n> overall presubmit checks according to the crosvm-contribution-workflow\n> [SKILL.md](..\u002Fcrosvm_contribution_workflow\u002FSKILL.md).\n\n## Running Tests (`tools\u002Frun_tests`)\n\nThe `tools\u002Frun_tests` script is the primary test runner. It supports unit tests (running on the host\nor via emulators) and integration tests (running on a test VM or the host).\n\n### 1. Unit Tests\n\n- **Run host native unit tests**:\n  ```bash\n  .\u002Ftools\u002Frun_tests\n  ```\n- **Run unit tests for a specific platform (via emulator)**:\n  ```bash\n  .\u002Ftools\u002Frun_tests -p \u003Cplatform>\n  ```\n  Supported platforms: `x86_64`, `aarch64`, `armhw`, `mingw64`, `riscv64`. *Example for ARM64*:\n  `.\u002Ftools\u002Frun_tests -p aarch64` *Example for Windows (via Wine)*: `.\u002Ftools\u002Frun_tests -p mingw64`\n\n### 2. Integration Tests\n\nIntegration tests require a Device Under Test (DUT).\n\n- **Run integration tests on a Test VM (Recommended)**:\n  ```bash\n  .\u002Ftools\u002Frun_tests --dut=vm\n  ```\n  This will automatically start a test VM, run the tests inside it, and keep the VM running for\n  subsequent runs.\n- **Run integration tests on the Host**:\n  ```bash\n  .\u002Ftools\u002Frun_tests --dut=host\n  ```\n  *Note: This may not work on all host configurations and might require root.*\n\n### 3. Test Filtering\n\nThe runner supports `nextest` filter expressions using the `-E` or `--filter-expr` flag. See\n[nextest documentation](https:\u002F\u002Fnexte.st\u002Fbook\u002Ffilter-expressions.html) for details.\n\n- **Run tests for a specific package**:\n  ```bash\n  .\u002Ftools\u002Frun_tests -E 'package(devices)'\n  ```\n- **Run a specific test by name**:\n  ```bash\n  .\u002Ftools\u002Frun_tests -E 'test(test_send_cmd_not_ready)'\n  ```\n- **Run tests for a package and its dependencies**:\n  ```bash\n  .\u002Ftools\u002Frun_tests -E 'deps(vm_control)'\n  ```\n\n### 4. Useful Flags\n\n- `--no-unit-tests`: Skip unit tests and only run integration tests.\n- `--no-integration-tests`: Skip integration tests.\n- `--run-root-tests`: Enable integration tests that require root privileges.\n- `--retries \u003CN>`: Retry failed tests N times.\n- `--repetitions \u003CN>`: Repeat all tests N times (useful for detecting flakiness).\n\n______________________________________________________________________\n\n## Managing Test VMs (`tools\u002Ftestvm`, `tools\u002Fx86vm`, `tools\u002Faarch64vm`)\n\nFor integration testing (`--dut=vm`), `crosvm` uses test VMs. You can manage these VMs using\n`tools\u002Fx86vm` (for x86_64) or `tools\u002Faarch64vm` (for ARM64). These are wrappers around\n`tools\u002Ftestvm`.\n\nReplace `x86vm` with `aarch64vm` in the commands below depending on the architecture you are\ntesting.\n\n- **Start the VM**:\n  ```bash\n  .\u002Ftools\u002Fx86vm up\n  ```\n- **Open an interactive SSH shell into the VM**:\n  ```bash\n  .\u002Ftools\u002Fx86vm shell\n  ```\n  *(This will start the VM if it is not already running).*\n- **Stop the VM gracefully**:\n  ```bash\n  .\u002Ftools\u002Fx86vm stop\n  ```\n- **Force kill the VM**:\n  ```bash\n  .\u002Ftools\u002Fx86vm kill\n  ```\n- **View VM console logs**:\n  ```bash\n  .\u002Ftools\u002Fx86vm logs\n  ```\n- **Clean\u002FReset the VM (deletes images)**:\n  ```bash\n  .\u002Ftools\u002Fx86vm clean\n  ```\n",{"name":5,"description":7},"main","678337f67da6ca6d661ad97cf1e9926fa1b75cba",".agents\u002Fskills\u002Fcrosvm_testing",191,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fcrosvm","https:\u002F\u002Fcrosvm.dev\u002Fbook\u002F","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 21:28:40",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add google\u002Fcrosvm --skill crosvm-testing",{"tool":54,"command":55},"bunx","bunx skills add google\u002Fcrosvm --skill crosvm-testing",{"tool":57,"command":58},"pnpm","pnpm dlx skills add google\u002Fcrosvm --skill crosvm-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fcrosvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcrosvm_testing\u002FSKILL.md",true,[],[63,79,96],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":33},"01M6992B6MYXZ96A8QKTW1CTKM","crosvm-dev-container","Skill to assist with using the `dev_container` tool for running builds, tests, and other tools in a consistent containerized environment.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fcrosvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcrosvm_dev_container\u002FSKILL.md",[],[70,71,72,73,29,74,75,30,76,77,32,78],"dev","crosvm dev container","dev container","container","tool","environment","containerized","for","Tools",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":88,"publishedAt":33},"01M6992A56ZVS4J4P403GDXN3F","crosvm-contribution-workflow","Skill to assist with the contribution workflow for crosvm. ALL agents making code changes MUST use this skill to run presubmit checks before committing.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fcrosvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcrosvm_contribution_workflow\u002FSKILL.md",[85],{"categoryNo":86,"categoryName":87,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[89,90,91,77,92,30,93,94,95],"crosvm contribution workflow","workflow","contribution","changes","use","code","run",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":33},"01M699292R6S94P3Q1J81FT2T1","crosvm-cl-tool","Skill to assist with using the `.\u002Ftools\u002Fcl` tool for managing and uploading Gerrit CLs in the crosvm repository.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fcrosvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcrosvm_cl_tool\u002FSKILL.md",[],[74,103,104,77,30,78,28],"crosvm cl tool","cl"]