提供意見
使用 VTS 進行系統測試
供應商測試套件 (VTS) 可自動執行 HAL 和操作系統內核測試。要使用 VTS 測試 Android 原生系統實現,請設置測試環境,然後使用 VTS 計劃測試補丁。
建立測試環境 要設置測試環境:
安裝 Python 開發包:
sudo apt-get install python-dev
安裝 Protocol Buffer 工具(用於 Python):
sudo apt-get install python-protobuf
sudo apt-get install protobuf-compiler
安裝Python虛擬環境相關工具:
sudo apt-get install python-virtualenv
sudo apt-get install python-pip
測試補丁 測試補丁:
構建 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 內核 對於默認 VTS 內核測試
要查看所有計劃的列表,請參閱/test/vts/tools/vts-tradefed/res/config.md
。
支持 您可以在/test/vts/doc
查看用戶手冊。有關 VTS 的問題,請加入android-vts@googlegroups.com 。
提供意見
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-03 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
想進一步說明嗎?