自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
使用 VTS 進行系統測試
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
供應商測試套件 (VTS) 可自動執行 HAL 和 OS 核心測試。如要使用 VTS 測試 Android 原生系統實作項目,請先設定測試環境,然後使用 VTS 計畫測試修補程式。
建立測試環境
如要瞭解如何設定 Android 10 以下版本的測試環境,請參閱「供應商測試套件 (VTS) 與 Android 10 以下版本的基礎架構」。
測試修補程式
如何測試修補程式:
- 建構 VTS 主機端套件:
. build/envsetup.sh
lunch aosp_arm64-userdebug
make vts -j
- 執行預設的 VTS 測試:
vts-tradefed
tf> run vts // where vts is the test plan name
VTS 方案
可用的 VTS 測試計畫包括:
指令 |
說明 |
> 執行 vts |
如為預設 VTS 測試 |
> 執行 vts-hal |
針對預設的 VTS HAL (硬體抽象層) 測試 |
> 執行 vts-kernel |
針對預設的 VTS 核心測試 |
如要查看所有方案的清單,請參閱 /test/vts/tools/vts-tradefed/res/config.md
。
支援
您可以在 /test/vts/doc
中查看使用手冊。如有 VTS 相關問題,請加入 android-vts@googlegroups.com。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Systems testing with VTS\n\nThe Vendor Test Suite (VTS) automates HAL and OS kernel testing. To use VTS\nto test an Android native system implementation, set up a testing environment\nthen test a patch using a VTS plan.\n\nEstablish a test environment\n----------------------------\n\nFor information on setting up a testing environment for Android 10 or lower, see\n[Vendor Test Suite (VTS) \\& infrastructure for Android 10\nand lower](/docs/core/tests/vts/index10).\n\nTest a patch\n------------\n\nTo test a patch:\n\n1. Build a VTS host-side package: \n\n . build/envsetup.sh\n lunch aosp_arm64-userdebug\n make vts -j\n\n2. Run the default VTS tests: \n\n vts-tradefed\n tf\u003e run vts // where vts is the test plan name\n\nVTS plans\n---------\n\nAvailable VTS test plans include:\n\n| Command | Description |\n|-------------------|--------------------------------------------------------|\n| \\\u003e run vts | For default VTS tests |\n| \\\u003e run vts-hal | For default VTS HAL (hardware abstraction layer) tests |\n| \\\u003e run vts-kernel | For default VTS kernel tests |\n\nTo view a list of all plans, refer to\n[/test/vts/tools/vts-tradefed/res/config.md](https://android.googlesource.com/platform/test/vts/+/refs/heads/android10-dev/tools/vts-tradefed/res/config/plans.md).\n\nSupport\n-------\n\nYou can view a user manual at\n[/test/vts/doc](https://android.googlesource.com/platform/test/vts/+/fb7d768d295720d9edfca8c9c1e215ac631f3bc6/README.md).\nFor questions on VTS, please join\n[android-vts@googlegroups.com](https://groups.google.com/forum/#!forum/android-vts)."]]